Hi,
My data is predominantly in wgs84 for ease of use with google /osm layers in the web client.
How would I enable downloads from my client in a different coordinate system? Is this something I can set up in geoserver or is it a webclient thing?
yours,
Rob
On 13 July 2011 10:59, Robert Buckley <robertdbuckley@anonymised.com> wrote:
Hi,
My data is predominantly in wgs84 for ease of use with google /osm layers in
the web client.
Do you mean 900913 Web mercator (which is what Google/OSM etc use) or
wgs84 (4326)? It's not important for this question but you really need
to keep this sort of detail straight in your head as your maps won't
line up if you mess it up.
How would I enable downloads from my client in a different coordinate
system? Is this something I can set up in geoserver or is it a webclient
thing?
By default GeoServer will serve up WMS in pretty much any projection
you can think of (check the capabilities response to see exactly how
many). So it is up to your client to make the request in the
projection it needs. Things are a bit more complicated if you are
using a WFS to request vectors from the server but if you can still
request the data in any projection you need (this is part of the WFS
1.1 standard but GeoServer will support it in 1.0 too though
technically not standard). I'm not completely sure about WCS but I
would expect that it can do reprojection too.
Ian
Hi,
My geodata are all in EPSG:4326. Which is then transformed in the client to EPSG:900913 as you said.
I was thinking more about serving data through geoserver using this…
http://DOMAINgeoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=zgb:wea_wgs84&maxFeatures=500&outputFormat=SHAPE-ZIP
Can I just put the crs parameter in the string to request a specific coordinate system?
yours,
Rob
Von: Ian Turton <ijturton@anonymised.com.84…>
An: Robert Buckley robertdbuckley@anonymised.com
CC: geoserver-users@lists.sourceforge.net
Gesendet: Mittwoch, den 13. Juli 2011, 13:22:46 Uhr
Betreff: Re: [Geoserver-users] How can I download data in different crs?
On 13 July 2011 10:59, Robert Buckley <robertdbuckley@anonymised.com> wrote:
Hi,
My data is predominantly in wgs84 for ease of use with google /osm layers in
the web client.
Do you mean 900913 Web mercator (which is what Google/OSM etc use) or
wgs84 (4326)? It’s not important for this question but you really need
to keep this sort of detail straight in your head as your maps won’t
line up if you mess it up.
How would I enable downloads from my client in a different coordinate
system? Is this something I can set up in geoserver or is it a webclient
thing?
By default GeoServer will serve up WMS in pretty much any projection
you can think of (check the capabilities response to see exactly how
many). So it is up to your client to make the request in the
projection it needs. Things are a bit more complicated if you are
using a WFS to request vectors from the server but if you can still
request the data in any projection you need (this is part of the WFS
1.1 standard but GeoServer will support it in 1.0 too though
technically not standard). I’m not completely sure about WCS but I
would expect that it can do reprojection too.
Ian
If the service you use for downloading is WFS (like in your SHAPE-ZIP
example), the parameter is srsName. If the service is WMS, then it is
srs for WMS versions < 1.3 and crs for versions >= 1.3.
Regards,
Andreas.
On Wed, Jul 13, 2011 at 1:35 PM, Robert Buckley
<robertdbuckley@anonymised.com> wrote:
Hi,
My geodata are all in EPSG:4326. Which is then transformed in the client to
EPSG:900913 as you said.
I was thinking more about serving data through geoserver using this....
http://DOMAINgeoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=zgb:wea_wgs84&maxFeatures=500&outputFormat=SHAPE-ZIP
Can I just put the crs parameter in the string to request a specific
coordinate system?
yours,
Rob
________________________________
Von: Ian Turton <ijturton@anonymised.com>
An: Robert Buckley <robertdbuckley@anonymised.com>
CC: geoserver-users@lists.sourceforge.net
Gesendet: Mittwoch, den 13. Juli 2011, 13:22:46 Uhr
Betreff: Re: [Geoserver-users] How can I download data in different crs?
On 13 July 2011 10:59, Robert Buckley <robertdbuckley@anonymised.com> wrote:
Hi,
My data is predominantly in wgs84 for ease of use with google /osm layers
in
the web client.
Do you mean 900913 Web mercator (which is what Google/OSM etc use) or
wgs84 (4326)? It's not important for this question but you really need
to keep this sort of detail straight in your head as your maps won't
line up if you mess it up.
How would I enable downloads from my client in a different coordinate
system? Is this something I can set up in geoserver or is it a webclient
thing?
By default GeoServer will serve up WMS in pretty much any projection
you can think of (check the capabilities response to see exactly how
many). So it is up to your client to make the request in the
projection it needs. Things are a bit more complicated if you are
using a WFS to request vectors from the server but if you can still
request the data in any projection you need (this is part of the WFS
1.1 standard but GeoServer will support it in 1.0 too though
technically not standard). I'm not completely sure about WCS but I
would expect that it can do reprojection too.
Ian
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
Robert,
SRS is specified in the client request.
Reprojection can (and should) be done by the server. WFS and WMS servers are obliged to publish the SRSs they support and deliver data in the SRS requested by the client.
In a GET URL, you can specify this as an option, SRSNAME for WFS and SRS for WMS. For example:
WFS: SRSNAME=EPSG:4283
WMS: SRS=EPSG:4283
You must read these two pages to learn about these services, and axis ordering in particular:
http://docs.geoserver.org/latest/en/user/services/wfs/basics.html
http://docs.geoserver.org/latest/en/user/services/wms/basics.html
I haven't tried WFS with shapefile output, but I expect it does The Most Sensible Thing.
Kind regards,
Ben.
On 13/07/11 17:59, Robert Buckley wrote:
Hi,
My data is predominantly in wgs84 for ease of use with google /osm layers in the web client.
How would I enable downloads from my client in a different coordinate system? Is this something I can set up in geoserver or is it a webclient thing?
yours,
Rob
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineering Team Leader
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre
On Thu, Jul 14, 2011 at 4:17 AM, Ben Caradoc-Davies
<Ben.Caradoc-Davies@anonymised.com> wrote:
I haven't tried WFS with shapefile output, but I expect it does The Most
Sensible Thing.
Nope, the shapefile output format just writes the feature collection
as it gets it from WFS,
in WFS 1.1 we follow the spec by the letter, lat/lon order. Compliant,
but so not sensible...
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------