Arek,

Using the path you specified you are querying the geoserver catalog. This means 
that you are asking for information on how your data is configured and stored 
into geoserver.
You can download this information in different (ascii) formats:
http://docs.geoserver.org/stable/en/user/restconfig/rest-config-api.html#formats-and-representations

As far as I know there's no a rest api service to serve the file, probably 
because this is not so general purpose (many datastores are not file based).

If you want to download the data you have to use the getMap
http://docs.geoserver.org/stable/en/user/services/wms/reference.html#getmap
specifying the desired output format:
http://docs.geoserver.org/stable/en/user/services/wms/outputformats.html#wms-output-formats

Cheers,
Carlo
From: dumon...@gmail.com
Date: Fri, 30 Nov 2012 12:34:57 +0100
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Downloading GeoTIFF file via RESTApi (GeoServer      
2.2)

Hi, I am using GeoServer (Version 2.2 Git Revision 
f5b5c35076b52d02eb9cca3fa3232bc17b5f6d80 Build Date 19-Sep-2012 18:33 GeoTools 
Version 8.2 (rev 704570474295e339c08d1ca140d884f23a8a03a3)) and I've got 
workspace with name myTestWorkspace and store with name test and type GeoTIFF. 
This store has URL connection parameters as follows: file:coverages/test.tif. I 
would like to download *.tif file by GeoServer REST API.



I found in documentation 
(http://docs.geoserver.org/stable/en/user/restconfig/rest-config-api.html#coverage-stores)
 that it is possible using URL



/workspaces/<ws>/coveragestores/<cs>/file[.<extension>]



So in my case it will be 
/workspaces/myTestWorkspace/coveragestores/test/file.geotiff(am I right?). But 
when I paste this URL I've got HTTP status 404. In documentation above is 
information that in this case (getting 404) are two options: 



Exceptions:
GET for a data store that does not exist -> 404 


GET for a data store that is not file based -> 404
My data store exists (if for example I 
paste/workspaces/myTestWorkspace/coveragestores/test.xml then I get information 
about store: name, type etc.).


But is my data store file based? I thought that if data store has type GeoTIFF, 
then he is file based - am I right?



Any ideas why I cannot download TIFF file?Thanks, Arek





This are information about my configuration:



Geoserver: 
Build Information



    Version 2.2


    Git Revision f5b5c35076b52d02eb9cca3fa3232bc17b5f6d80

    Build Date 19-Sep-2012 18:33



    GeoTools Version 8.2 (rev 704570474295e339c08d1ca140d884f23a8a03a3)
----------------



JAVA: Oracle Corporation: 1.7.0_07 (Java HotSpot(TM) 64-Bit Server VM)



----------------




Native JAI      false   



Native JAI ImageIO      false

----------------
OS: Linux centos64 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 
x86_64 x86_64 x86_64 GNU/Linux



----------------Web container: Apache Tomcat/7.0.30





------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users                    
                  
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to