hello List,
Does anybody have any idea how to overlay postgis layers on google maps in geoserver
thank you all
Khaoula MIMID
Élève ingénieur - 3ème Sciences d’Information Géographique
Ecole Hassania des Travaux Publics
Tél : (+212) 06 11 95 37 52
E-mail : khaoula.mimid@anonymised.com
Hello,
thank you Jacinto for your answer.
I am sorry my question wasn’t clear. In fact, i am trying to develop a web page where i can show the 2 layers (google maps and a postgis layer) in java. i know how to show a googlemaps base map in web page and how to publish a postgis layer in geoserver. what i need is how to develop a web page to show 2 layers : google maps as baselayer and the postgis layer served by the geoserver as an overlay layer i found this tutoriel http://enterprisegeospatial.blogspot.com/2012/11/working-with-google-maps-api-v3-and.html, and i don’t know if it is the right one to follow, i am still a newbie in webmapping.
thank you very much.
···
2013/3/7 Khaoula MIMID <khaoula.mimid@anonymised.com.>
hello List,
Does anybody have any idea how to overlay postgis layers on google maps in geoserver
thank you all
Khaoula MIMID
Élève ingénieur - 3ème Sciences d’Information Géographique
Ecole Hassania des Travaux Publics
Tél : (+212) 06 11 95 37 52
E-mail : khaoula.mimid@anonymised.com
–
Khaoula MIMID
Élève ingénieur - 3ème Sciences d’Information Géographique
Ecole Hassania des Travaux Publics
Tél : (+212) 06 11 95 37 52
E-mail : khaoula.mimid@anonymised.com
Hi Khaoula,
Then you need to publish your postgis layer in geoserver through wms and add it on top of google base map through google.maps.ImageMapType. Make sure you use the url for GeoWebCache instead of geoserver wms url directly.
You will have to tweak the coordinates you get from google map a bit to avoid offset of wms image overlay. Try to use epsg: 3857 instead of 4326.
Or if you think this is too much for you, using OpenLayers directly, which has off shelf integration of Google map with other map services.
Thanks,
Guan
From: Khaoula MIMID [mailto:khaoula.mimid@anonymised.com]
Sent: Thursday, March 07, 2013 12:24 PM
To: geoserver-users
Subject: Re: [Geoserver-users] overlay postgis layers on google maps
Hello,
thank you Jacinto for your answer.
I am sorry my question wasn’t clear. In fact, i am trying to develop a web page where i can show the 2 layers (google maps and a postgis layer) in java. i know how to show a googlemaps base map in web page and how to publish a postgis layer in geoserver. what i need is how to develop a web page to show 2 layers : google maps as baselayer and the postgis layer served by the geoserver as an overlay layer i found this tutoriel http://enterprisegeospatial.blogspot.com/2012/11/working-with-google-maps-api-v3-and.html, and i don’t know if it is the right one to follow, i am still a newbie in webmapping.
thank you very much.
2013/3/7 Khaoula MIMID <khaoula.mimid@anonymised.com>
hello List,
Does anybody have any idea how to overlay postgis layers on google maps in geoserver
thank you all
–
Khaoula MIMID
Élève ingénieur - 3ème Sciences d’Information Géographique
Ecole Hassania des Travaux Publics
Tél : (+212) 06 11 95 37 52
E-mail : khaoula.mimid@anonymised.com
–
Khaoula MIMID
Élève ingénieur - 3ème Sciences d’Information Géographique
Ecole Hassania des Travaux Publics
Tél : (+212) 06 11 95 37 52
E-mail : khaoula.mimid@anonymised.com
Both google and WMS supply png images to the browser. Its is usual to put them together on the client not on the server. I would strongly recommend you use Openlayers for your webpage. If you look at their examples you will find numerous pages doing just what you want.
Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.
I couldn't find an example to show google + wms on same map in openlayers
examples website, so here you can use this example (right click, view
source)
http://onderaltintas.byethost16.com/olgoogbasic.html
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/overlay-postgis-layers-on-google-maps-tp5039018p5039309.html
Sent from the GeoServer - User mailing list archive at Nabble.com.