[Geoserver-users] raster data addition via curl in geoserver

Hello,
I have started geoserver and added shape files in it via curl,but following
the same procedure as given below i am not able to load raster
data(.tif,.gtiff images).

http://docs.geoserver.org/1.7.x/user/extensions/rest/rest-config-examples-curl.html
so i want to know how can I add .tif images to geoserver using curl?
--
View this message in context: http://www.nabble.com/raster-data-addition-via-curl-in-geoserver-tp23941535p23941535.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,

So the .tif files are just georeferenced tif files? Or full geotiffs?

If they are the former, upload to the resource file.worldimage, if the latter use file.geotiff. A couple of examples:

GeoTiff:

curl -u admin:geoserver -XPUT -H 'Content-type: application/zip' --data-binary @sfdem.zip http://localhost:8080/geoserver/rest/workspaces/nurc/coveragestores/sfdem/file.geotiff

World image:

curl -u admin:geoserver -XPUT -H 'Content-type: application/zip' --data-binary @Pk50095.zip http://localhost:8080/geoserver/rest/workspaces/nurc/coveragestores/img_sample2/file.worldimage

-Justin

shashank520 wrote:

Hello,
I have started geoserver and added shape files in it via curl,but following
the same procedure as given below i am not able to load raster
data(.tif,.gtiff images).

http://docs.geoserver.org/1.7.x/user/extensions/rest/rest-config-examples-curl.html
so i want to know how can I add .tif images to geoserver using curl?

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

This link is also handy:
http://svn.codehaus.org/geoserver/branches/1.7.x/src/extension/restconfig/scripts/coveragestores.sh

BTW I played with REST these days, and succesfuly managed to create
ImageMosaic Coverages... I should write few lines about it because
there is not examples for Coverages in examples pages. Ill do it this
weekend, if I catch some time.

Cheers

On Wed, Jun 10, 2009 at 4:23 PM, Justin Deoliveira<jdeolive@anonymised.com> wrote:

Hi,

So the .tif files are just georeferenced tif files? Or full geotiffs?

If they are the former, upload to the resource file.worldimage, if the
latter use file.geotiff. A couple of examples:

GeoTiff:

curl -u admin:geoserver -XPUT -H 'Content-type: application/zip'
--data-binary @sfdem.zip
http://localhost:8080/geoserver/rest/workspaces/nurc/coveragestores/sfdem/file.geotiff

World image:

curl -u admin:geoserver -XPUT -H 'Content-type: application/zip'
--data-binary @Pk50095.zip
http://localhost:8080/geoserver/rest/workspaces/nurc/coveragestores/img_sample2/file.worldimage

-Justin

shashank520 wrote:

Hello,
I have started geoserver and added shape files in it via curl,but following
the same procedure as given below i am not able to load raster
data(.tif,.gtiff images).

http://docs.geoserver.org/1.7.x/user/extensions/rest/rest-config-examples-curl.html
so i want to know how can I add .tif images to geoserver using curl?

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Ivan Grcic