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:
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:
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
Save up to 84% on Windows 7 until Jan 3—eligible CDN College or University students only. Hurry—buy it now for $39.99!