I am trying to create a CoverageStore and Coverage layer from a TIF file
staged on the Geoserver server, using the REST API.  As per this suggestion
[1] I'm using an adaption of the technique in:

http://docs.geoserver.org/latest/en/user/rest/workspaces.html#adding-an-existing-shapefile

This works - almost.  The resulting coverage is created, but it has no
Declared SRS, probably because the backing raster file does not have SRS
information stored in it (i.e. it's a TIF, not a GeoTIFF).

Is there a way I can set the Declared SRS via the REST API?

I've tried the obvious route of POSTing the following partial resource:

<coverage><name>%COV%</name><srs>EPSG:3005</srs></coverage>

to

%HOST%/rest/workspaces/%WS%/coveragestores/%COV%/coverages

but this had no effect.

[1]
https://gis.stackexchange.com/questions/37779/adding-a-new-coveragestore-in-a-certain-workspace-by-rest
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to