Hi,
I've some spatial data hosted on WFS using geoserver. The getCapability
request shows feature details as:
<FeatureType>
<Name>topp:towns</Name>
<Title>towns_Type</Title>
<SRS>EPSG:26986</SRS>
<LatLongBoundingBox minx="-73.53333453432745" miny="41.23033742906437"
maxx="-69.89846130971732" maxy="42.888148148378136"/>
</FeatureType>
The MBR is present in Lat/Long format above.
The getfeature request on this feature shows MBR coordinates as
<gml:boundedBy>
<gml:Box srsName=26986>
<gml:coordinates cs="," decimal="." ts=" ">
33861.26171875,777514.25 330846.09375,959747.5
</gml:coordinates>
</gml:Box>
</gml:boundedBy>
Can anyone tell me how to make conversion between these coordinate
systems? Any standard formula or tool that calculates this?
Thanks,
Sanket Patle.
the proj library is the defacto tool for doing coordinate transformations:
http://trac.osgeo.org/proj/
GeoServer will also happily reproject data for you. For instance, if you want to reproject into 4326 in a getFeature add the parameter:
&srsName=EPSG:4326
to the request and you should see the bounds and the features in 4326.
-Justin
Sanket Chandulal Patle wrote:
Hi,
I've some spatial data hosted on WFS using geoserver. The getCapability
request shows feature details as:
<FeatureType>
<Name>topp:towns</Name>
<Title>towns_Type</Title>
<SRS>EPSG:26986</SRS>
<LatLongBoundingBox minx="-73.53333453432745" miny="41.23033742906437"
maxx="-69.89846130971732" maxy="42.888148148378136"/>
</FeatureType>
The MBR is present in Lat/Long format above.
The getfeature request on this feature shows MBR coordinates as
<gml:boundedBy>
<gml:Box srsName=26986>
<gml:coordinates cs="," decimal="." ts=" ">
33861.26171875,777514.25 330846.09375,959747.5
</gml:coordinates>
</gml:Box>
</gml:boundedBy>
Can anyone tell me how to make conversion between these coordinate
systems? Any standard formula or tool that calculates this?
Thanks,
Sanket Patle.
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.