On 23/10/09 10:36, du pre jannot wrote:
> 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 .

You have to issue two requests: the first creating the coveragestore by posting 
the image, the second creating the coverage based on said coveragestore.


> 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?

I cannot help you on this.


> 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.

As far as I know, only the updated XML element(s) should be inserted in the 
request: for instance, to assign a default style to a layer you have to provide 
only the defaultStyle lement:
curl -u admin:geoserver -XPUT -H 'Content-type: text/xml' \
   -d '<layer><defaultStyle><name>roads_style</name></defaultStyle></layer>' \
   http://localhost:8080/geoserver/rest/layers/acme:roads


Regards,

P.S.
This kind of questions are better asked to the user list.

--------------------
    Luca Morandini
www.lucamorandini.it
--------------------


------------------------------------------------------------------------------
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

Reply via email to