[Geoserver-users] FW: Misaligned Map Problem

Hi guys,

We am working for a mapping project for UNICEF and we are planning to use Geoserver for displaying info on maps using shape files. The idea is same as the Google map overlay example which comes with Geoserver.
I have the shape files of Uganda. And I am using them to show the administrative districts on top of Google maps. The overlay seems to be showing up on the map but it seems to be off the mark.

I have attached a screen shot of the map which uses Metacarta as the base map layer.

Following are the featuretype editor details
SRS - 32636
SRS Wkt - PROJCS[“WGS 84 / UTM zone 36N”, GEOGCS[“WGS 84”, DATUM[“World Geodetic System 1984”, SPHEROID[“WGS 84”, 6378137.0, 298.257223563, AUTHORITY[“EPSG”,“7030”]], AUTHORITY[“EPSG”,“6326”]], PRIMEM[“Greenwich”, 0.0, AUTHORITY[“EPSG”,“8901”]], UNIT[“degree”, 0.017453292519943295], AXIS[“Geodetic longitude”, EAST], AXIS[“Geodetic latitude”, NORTH], AUTHORITY[“EPSG”,“4326”]], PROJECTION[“Transverse Mercator”, AUTHORITY[“EPSG”,“9807”]], PARAMETER[“central_meridian”, 33.0], PARAMETER[“latitude_of_origin”, 0.0], PARAMETER[“scale_factor”, 0.9996], PARAMETER[“false_easting”, 500000.0], PARAMETER[“false_northing”, 0.0], UNIT[“m”, 1.0], AXIS[“Easting”, EAST], AXIS[“Northing”, NORTH], AUTHORITY[“EPSG”,“32636”]]
Min Long - 29.554490551812258
Min Lat - 0.32791450455053306
Max Long - 35.01046421854283
Max Lat - 6.04398958609871

I have uploaded the shape file for download here - http://miscellaneous-downloads.googlecode.com/files/uganda_county2006.zip
Any help on how to solve this problem or insight will be highly appreciated. Please let me know if you need more info.
Thank you


Regards,
Sai

http://developer-in-test.blogspot.com
http://code.google.com/p/chrome-watir
http://twitter.com/sai_venkat

uganda.png

Hi guys,

We am working for a mapping project for UNICEF and we are planning to use Geoserver for displaying info on maps using shape files. The idea is same as the Google map overlay example which comes with Geoserver.
I have the shape files of Uganda. And I am using them to show the administrative districts on top of Google maps. The overlay seems to be showing up on the map but it seems to be off the mark.

I have attached a screen shot of the map which uses Metacarta as the base map layer.

Following are the featuretype editor details
SRS - 32636
SRS Wkt - PROJCS[“WGS 84 / UTM zone 36N”, GEOGCS[“WGS 84”, DATUM[“World Geodetic System 1984”, SPHEROID[“WGS 84”, 6378137.0, 298.257223563, AUTHORITY[“EPSG”,“7030”]], AUTHORITY[“EPSG”,“6326”]], PRIMEM[“Greenwich”, 0.0, AUTHORITY[“EPSG”,“8901”]], UNIT[“degree”, 0.017453292519943295], AXIS[“Geodetic longitude”, EAST], AXIS[“Geodetic latitude”, NORTH], AUTHORITY[“EPSG”,“4326”]], PROJECTION[“Transverse Mercator”, AUTHORITY[“EPSG”,“9807”]], PARAMETER[“central_meridian”, 33.0], PARAMETER[“latitude_of_origin”, 0.0], PARAMETER[“scale_factor”, 0.9996], PARAMETER[“false_easting”, 500000.0], PARAMETER[“false_northing”, 0.0], UNIT[“m”, 1.0], AXIS[“Easting”, EAST], AXIS[“Northing”, NORTH], AUTHORITY[“EPSG”,“32636”]]
Min Long - 29.554490551812258
Min Lat - 0.32791450455053306
Max Long - 35.01046421854283
Max Lat - 6.04398958609871

I have uploaded the shape file for download here - http://miscellaneous-downloads.googlecode.com/files/uganda_county2006.zip
Any help on how to solve this problem or insight will be highly appreciated. Please let me know if you need more info.
Thank you


Regards,
Sai

http://developer-in-test.blogspot.com
http://code.google.com/p/chrome-watir
http://twitter.com/sai_venkat


Regards,
Sai

http://developer-in-test.blogspot.com
http://code.google.com/p/chrome-watir
http://twitter.com/sai_venkat

uganda.png

Hi guys,

We am working for a mapping project for UNICEF and we are planning to use Geoserver for displaying info on maps using shape files. The idea is same as the Google map overlay example which comes with Geoserver.
I have the shape files of Uganda. And I am using them to show the administrative districts on top of Google maps. The overlay seems to be showing up on the map but it seems to be off the mark.

The screen shot of the map which uses Metacarta as the base map layer and geoserver showing the shape file (misaligned) is attached here. http://miscellaneous-downloads.googlecode.com/files/uganda.png

Following are the featuretype editor details
SRS - 32636
SRS Wkt - PROJCS[“WGS 84 / UTM zone 36N”, GEOGCS[“WGS 84”, DATUM[“World Geodetic System 1984”, SPHEROID[“WGS 84”, 6378137.0, 298.257223563, AUTHORITY[“EPSG”,“7030”]], AUTHORITY[“EPSG”,“6326”]], PRIMEM[“Greenwich”, 0.0, AUTHORITY[“EPSG”,“8901”]], UNIT[“degree”, 0.017453292519943295], AXIS[“Geodetic longitude”, EAST], AXIS[“Geodetic latitude”, NORTH], AUTHORITY[“EPSG”,“4326”]], PROJECTION[“Transverse Mercator”, AUTHORITY[“EPSG”,“9807”]], PARAMETER[“central_meridian”, 33.0], PARAMETER[“latitude_of_origin”, 0.0], PARAMETER[“scale_factor”, 0.9996], PARAMETER[“false_easting”, 500000.0], PARAMETER[“false_northing”, 0.0], UNIT[“m”, 1.0], AXIS[“Easting”, EAST], AXIS[“Northing”, NORTH], AUTHORITY[“EPSG”,“32636”]]
Min Long - 29.554490551812258
Min Lat - 0.32791450455053306
Max Long - 35.01046421854283
Max Lat - 6.04398958609871

I have uploaded the shape file for download here - http://miscellaneous-downloads.googlecode.com/files/uganda_county2006.zip
Any help on how to solve this problem or insight will be highly appreciated. Please let me know if you need more info.
Thank you

Sorry if you receive this mail multiple times. There seems to be a problem with my account and the message got rejected twice. Thank you for your help :slight_smile:

Regards,
Sai

http://developer-in-test.blogspot.com
http://code.google.com/p/chrome-watir
http://twitter.com/sai_venkat


Regards,
Sai

http://developer-in-test.blogspot.com
http://code.google.com/p/chrome-watir
http://twitter.com/sai_venkat

Sai Venkatakrishnan ha scritto:

Hi guys,

We am working for a mapping project for UNICEF and we are planning to use Geoserver for displaying info on maps using shape files. The idea is same as the Google map overlay example which comes with Geoserver.
I have the shape files of Uganda. And I am using them to show the administrative districts on top of Google maps. The overlay seems to be showing up on the map but it seems to be off the mark.

The screen shot of the map which uses Metacarta as the base map layer and geoserver showing the shape file (misaligned) is attached here. http://miscellaneous-downloads.googlecode.com/files/uganda.png

Following are the featuretype editor details
SRS - 32636
SRS Wkt - PROJCS["WGS 84 / UTM zone 36N", GEOGCS["WGS 84", DATUM["World Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse Mercator", AUTHORITY["EPSG","9807"]], PARAMETER["central_meridian", 33.0], PARAMETER["latitude_of_origin", 0.0], PARAMETER["scale_factor", 0.9996], PARAMETER["false_easting", 500000.0], PARAMETER["false_northing", 0.0], UNIT["m", 1.0], AXIS["Easting", EAST], AXIS["Northing", NORTH], AUTHORITY["EPSG","32636"]]
Min Long - 29.554490551812258
Min Lat - 0.32791450455053306
Max Long - 35.01046421854283
Max Lat - 6.04398958609871

I have uploaded the shape file for download here - http://miscellaneous-downloads.googlecode.com/files/uganda_county2006.zip
Any help on how to solve this problem or insight will be highly appreciated. Please let me know if you need more info.

The misalignment you're getting is huge. The most likely cause is that
your data is actually in a SRS other than EPSG:32636. You should double
check your data and the source of it and figure out what the actual native projection is.

Cheers
Andrea

Hi Sai,

Most likely it is just an issue with projections. In order to overlay on to a google maps you need to have your data reprojected properly into the spherical mercator projection. There is an example in the openlayers docs for doing this:

http://dev.openlayers.org/releases/OpenLayers-2.8/examples/wfs-reprojection.html

My guess is that the OL WFS layer does not have the projection specified.

You also might get some better help on the openalyers forum.

-Justin

Sai Venkatakrishnan wrote:

Hi guys,

We am working for a mapping project for UNICEF and we are planning to use Geoserver for displaying info on maps using shape files. The idea is same as the Google map overlay example which comes with Geoserver.
I have the shape files of Uganda. And I am using them to show the administrative districts on top of Google maps. The overlay seems to be showing up on the map but it seems to be off the mark.

I have attached a screen shot of the map which uses Metacarta as the base map layer.

Following are the featuretype editor details
SRS - 32636
SRS Wkt - PROJCS["WGS 84 / UTM zone 36N", GEOGCS["WGS 84", DATUM["World Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse Mercator", AUTHORITY["EPSG","9807"]], PARAMETER["central_meridian", 33.0], PARAMETER["latitude_of_origin", 0.0], PARAMETER["scale_factor", 0.9996], PARAMETER["false_easting", 500000.0], PARAMETER["false_northing", 0.0], UNIT["m", 1.0], AXIS["Easting", EAST], AXIS["Northing", NORTH], AUTHORITY["EPSG","32636"]]
Min Long - 29.554490551812258
Min Lat - 0.32791450455053306
Max Long - 35.01046421854283
Max Lat - 6.04398958609871

I have uploaded the shape file for download here - http://miscellaneous-downloads.googlecode.com/files/uganda_county2006.zip
Any help on how to solve this problem or insight will be highly appreciated. Please let me know if you need more info.
Thank you

--
Regards,
Sai

http://developer-in-test.blogspot.com
http://code.google.com/p/chrome-watir
http://twitter.com/sai_venkat

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

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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july

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

_______________________________________________
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.

HI Justin,
Thanks for the reply. You are right. The problem was with the project. The maps we got from UN OCHA weren't having projections data properly in prj files. We got a different set of shape files from GADM and it seems to be working fine for us.

Cheers,
Sai

Justin Deoliveira wrote:

Hi Sai,

Most likely it is just an issue with projections. In order to overlay on to a google maps you need to have your data reprojected properly into the spherical mercator projection. There is an example in the openlayers docs for doing this:

http://dev.openlayers.org/releases/OpenLayers-2.8/examples/wfs-reprojection.html

My guess is that the OL WFS layer does not have the projection specified.

You also might get some better help on the openalyers forum.

-Justin

Sai Venkatakrishnan wrote:

Hi guys,

We am working for a mapping project for UNICEF and we are planning to use Geoserver for displaying info on maps using shape files. The idea is same as the Google map overlay example which comes with Geoserver.
I have the shape files of Uganda. And I am using them to show the administrative districts on top of Google maps. The overlay seems to be showing up on the map but it seems to be off the mark.

I have attached a screen shot of the map which uses Metacarta as the base map layer.

Following are the featuretype editor details
SRS - 32636
SRS Wkt - PROJCS["WGS 84 / UTM zone 36N", GEOGCS["WGS 84", DATUM["World Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse Mercator", AUTHORITY["EPSG","9807"]], PARAMETER["central_meridian", 33.0], PARAMETER["latitude_of_origin", 0.0], PARAMETER["scale_factor", 0.9996], PARAMETER["false_easting", 500000.0], PARAMETER["false_northing", 0.0], UNIT["m", 1.0], AXIS["Easting", EAST], AXIS["Northing", NORTH], AUTHORITY["EPSG","32636"]]
Min Long - 29.554490551812258
Min Lat - 0.32791450455053306
Max Long - 35.01046421854283
Max Lat - 6.04398958609871

I have uploaded the shape file for download here - http://miscellaneous-downloads.googlecode.com/files/uganda_county2006.zip

Any help on how to solve this problem or insight will be highly appreciated. Please let me know if you need more info.
Thank you

--
Regards,
Sai

http://developer-in-test.blogspot.com
http://code.google.com/p/chrome-watir
http://twitter.com/sai_venkat

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

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

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

Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july

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

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users