how to succed.soton.ac.uk as a band作文

Writing CET Band 4_图文_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
评价文档:
Writing CET Band 4
上传于||暂无简介
大小:2.48MB
登录百度文库,专享文档复制特权,财富值每天免费拿!
你可能喜欢Geoserver&REST
The REST extenstion provides a RESTful interface through which
clients can configure a GeoServer instance through simple HTTP
calls. With it clients can programatically configure the data
served by GeoServer.
What is REST
REST is acronym for REpresentational State Transfer”. The basic
idea of a REST is to rely on a fixed set of operations on named
resources, where the representation of each resource is the same
for retrieving and setting information. In other words, if you
retrieve data in an XML format, you can send back to the server in
the same XML format to see it.
Operations on resources are implemented with the standard
primitives of HTTP: GET,DELETE,PUT,POST,HEAD, etc.
Each resource is represented as standard URI.
Formats and representations
A format specifies how a resource should be represented. And is
In an operation to specify what representation should be
returned to the client
In a POST or PUT operation to specify the representation being
sent to the server
In a GET operation the format can be specified in a number of
Accepts header
In a POST or PUT operation the format specifies
the representation of the content being sent to the server
---Content-type header
the representation of the response to be sent back
Content-type
application/xml
application/xml
application/html
application/vnd.ogc.sld+xml
Content-type
application/xml
application/xml
application/html
application/vnd.ogc.sld+xml
Get all workspace name
curl -u admin:geoserver -v -GET /workspaces
create a workspace
curl -u admin:geoserver -v -XPOST -H
"Content-type:text/xml" -d
"&workspace&&name&aaa&/name&&/workspace&"
create a coveragestore
G:\curl-7.19.5&curl -u
admin:geoserver -v -XPOST -H
"Content-type:text/xml" -d
"&coverageStore&&name
&landsattest&/name&&type&WorldImage&/type&&enable&true&/enable&&url&file:data/Chn-lands.jpg&/url&&/coverageStore&"
http:/
/159.226.13.203/geoserver/rest/workspaces/aaa/coveragestores
Create a coverage
G:\curl-7.19.5&curl -u
admin:geoserver -v -XPOST -H
"Content-type:text/xml" -d
"&coverage&&name&land
sattest&/name&&/coverage&"
ttest/coverages
G:\curl-7.19.5&curl -u
admin:geoserver -v -XPOST -H
"Content-type:text/xml" -d
"&coverage&&name&land
sattest&/name&&/coverage&"
ttest/coverages
coverage.xml
&coverage&
&name&landTest&/name&
& &namespace&
&name&aaa&/name&
& &/namespace&
&title&landTest&/title&
& &description&Generated from
WorldImage&/description&
& &keywords&
&string&WCS&/string&
&string&WorldImage&/string&
&string&landTest&/string&
& &/keywords&
&nativeCRS&GEOGCS[&WGS
& DATUM[&World Geodetic System
&&& SPHEROID[&WGS
84&, , 298.,
AUTHORITY[&EPSG&,&7030&]],
AUTHORITY[&EPSG&,&6326&]],
PRIMEM[&Greenwich&, 0.0,
AUTHORITY[&EPSG&,&8901&]],
& UNIT[&degree&,
0.943295],
& AXIS[&Geodetic
longitude&, EAST],
& AXIS[&Geodetic
latitude&, NORTH],
AUTHORITY[&EPSG&,&4326&]]&/nativeCRS&
&srs&EPSG:4326&/srs&
& &nativeBoundingBox&
&minx&68.871&/minx&
&maxx&137.822&/maxx&
&miny&2.214&/miny&
&maxy&59.786&/maxy&
&crs&EPSG:4326&/crs&
& &/nativeBoundingBox&
& &latLonBoundingBox&
&minx&68.871&/minx&
&maxx&137.822&/maxx&
&miny&2.214&/miny&
&maxy&59.786&/maxy&
&crs&EPSG:4326&/crs&
& &/latLonBoundingBox&
&projectionPolicy&REPROJECT_TO_DECLARED&/projectionPolicy&
&enabled&true&/enabled&
& &metadata&
&&& &entry
key="cachingEnabled"&false&/entry&
&&& &entry
key="dirName"&chn-landsat_Chn-landsat1&/entry&
& &/metadata&
class="coverageStore"&
&name&landsattest&/name&
& &/store&
&nativeFormat&WorldImage&/nativeFormat&
& &grid dimension="2"&
&&& &range&
&&&&& &low&0
&high&2030
1695&/high&
&&& &/range&
&&& &transform&
&scaleX&0.033966&/scaleX&
&scaleY&-0.033966&/scaleY&
&shearX&0.0&/shearX&
&shearX&0.0&/shearX&
&translateX&68.&/translateX&
&translateY&59.&/translateY&
&&& &/transform&
&crs&EPSG:4326&/crs&
& &supportedFormats&
&string&GEOTIFF&/string&
&string&GIF&/string&
&string&PNG&/string&
&string&JPEG&/string&
&string&TIFF&/string&
& &/supportedFormats&
& &interpolationMethods&
&string&bilinear&/string&
&string&bicubic&/string&
& &/interpolationMethods&
& &dimensions&
&coverageDimension&
&name&RED_BAND&/name&
&description&GridSampleDimension[-Infinity,Infinity]&/description&
&/coverageDimension&
&coverageDimension&
&name&GREEN_BAND&/name&
&description&GridSampleDimension[-Infinity,Infinity]&/description&
&/coverageDimension&
&coverageDimension&
&name&BLUE_BAND&/name&
&description&GridSampleDimension[-Infinity,Infinity]&/description&
&/coverageDimension&
& &/dimensions&
& &requestSRS&
&string&EPSG:4326&/string&
& &/requestSRS&
& &responseSRS&
&string&EPSG:4326&/string&
& &/responseSRS&
&/coverage&
Upload Shape file
curl -u admin:geoserver -XPUT -H
"Content-type:application/zip" --data-binary
@USA_States.zip
Note:@USA_States.zip& point to the zip file
which have same path with cURL
Upload Coverage
curl -u admin:geoserver -POST -H
"Content-type:application/Tiff" --data-binary
@us_pop22.tif
&Not succed!&
curl -u admin:geoserver -XPUT -H
"Content-type:image/tiff"& --data-binary
&Wang Yuwei tested it successfuly,
Create PostGIS Database Connection
&dataStore&
&name&cybergis&/name&
& &connectionParameters&
&port&5432&/port&
&passwd&****&/passwd&
&dbtype&postgis&/dbtype&
&host&ic.cn&/host&
&database&spdb2&/database&
&schema&public&/schema&
&user&postgres&/user&
& &/connectionParameters&
&/dataStore&
curl -u admin:geoserver -XPOST -T cybergis.xml
-H "Content-type: text/xml"
Add PostGIS table
E:\cyberViz\cURL\curl-7.19.5-win32-nossl-sspi\curl-7.19.5&curl
-u admin:geoserver -XPOST -H
"Content-type: text/xml" -d
"&featureType&&name&prov_new&/name&&/featureType&"
Changing a feature type style (not tested)
Upload SLD style
curl -u admin:geoserver -XPUT -H
'Content-type: application/vnd.ogc.sld+xml' \ -d
@roads.sld
To apply the new created style to the layer created in the
provious example:
curl -u admin:geoserver -XPUT -H
'Content-type: text/xml' \ -d
'&layer&&defaultStyle&&name&roads_style&/name&&/defaultStyle&&/layer&'
Create a layer group
create and edit an XML file like :
&layerGroup&
&name&grouptest&/name&
& &layers&
&layer&prov_new&/layer&
&layer&USA_States&/layer&
& &/layers&
& &styles&
&style&polygon&/style&
&style&polygon&/style&
& &/styles&
&/layerGroup&
curl -u admin:geoserver -XPOST -d @grouptest.xml
-H "Content-type: text/xml"
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

我要回帖

更多关于 how can we relax作文 的文章

 

随机推荐