Hello,
i looking to show a ShapeFile on a Google Maps with GeoServer WMS
functionality.
I have code that gets tiles from GeoServer but i can not find the right way
to calculate the bbox for the WMS url.
I can get out with Google Maps a Latitude and Longitude boundingbox values,
here is one example:
BBOX=5.625,55.7765730186677,8.4375,57.32652122521709
But when i trying the "Layer Preview" and shows the shapefile with OpenLayer
i finds in the calls to GeoServer the BBOX is like this:
BBOX=1562483.09425,2004362.9156249,1563547.292875,2005427.1142499
The "Native SRS" is set to "UNKOWN" on the Layer settings but on the right
side its says "World_Mercator" that i know the projection for ShapeFile is
and the "Declared SRS" is set to "EPSG:3395" whish says on the right side:
"EPSG:WGS 84 / World Mercator".
I know my BBOX i get from Google Maps is WGS84 position but how do i
calculate this to be "World_Mercator".
I even try to change in GeoServer to run WGS84 as SRS but then i get almost
the same BBOX as when i running it like "World_Mercator".
Someone has idea or code for this?
// Rickard
------------------------------------------------------------------------------
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware,
phishing sites, and compromised hosts - saving your company time,
money, and embarrassment. Learn More!
http://p.sf.net/sfu/hpdev2dev-nov
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users