Hello
First I would like to understand how
rest api works.
I tried to upload a geotiff file via
rest api.
For example if I want to create a
layer of type coverage I upload the file with this
synthaxe:
http://localhost:8081/geoserver/rest/workspaces/namespaceName/coveragestores/coverageStoreName/url.geotiff
and I push the url of the file into
the httpurlconnection outputstream.
this atually create a folder in
/workspaceName/CoverageStoreName create a xml file named coverageStore.xml and
put et layer.xml and a coverage.xml.
The problem is that it also copies
the geotiff file into /data directory instead of putting it into
/data/layerName
inorder to be rendered by geoserver.
I don’t understand
why.
I found another
synthaxe:
http://localhost:8081/geoserver/rest/workspaces/namespaceName/coveragestores/coverageStoreName/file.geotiff
that put the right file in the
right folder in /data/LayerName but doesn’t create the configuration files
associated with the coverage.
Could you please explain how RestApi
works in this case .
I have another
question:
When I try to upload a big file, the
jvm returns an out of memory exception. Is there a limited data size to post by
restApi?
In this case, how can I post Big
files wich are pyramid-shaped with gdal.There is a utility that produce an
index
shapefile and a property file but How can I insert this in geoserver
layers.
Last
question:
How is it possible to update a layer
or a lyergroup for example via rest with method PUT but without writing all the
xml code into the httpUrlConnection outputStream.
Is it possible for exemple to add a
layer to a layergroup only with the xml code of the
layer.
I don’t have question anymore.
Thnank you for by advance for you answer.
Jean-Baptiste
_________________________________________________________________
CDN College or University student? Get Windows 7 for only $39.99 before Jan 3!
Buy it now!
http://go.microsoft.com/?linkid=9691636
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel