[postgis-users] Any tutorials on integrating PostGIS data with the Google Maps API?

Andreas Neumann a.neumann at carto.net
Fri Jan 25 04:35:50 PST 2008


Google Maps now allows the use of the KML File Format, which is previously
only for Google Earth.

Postgis features the command AsKML() which outputs the geometry part of
KML and automatically transforms the data to the correct projections. I
used this successfully to visualize community GIS data. A few lines of PHP
did the job, but any scripting language can be used.

All you have to do is to write out the attribute data you want (HTML
syntax) along with the output of AsKML(), structure the data into groups
and attach styles. You can use network links to combine separate topics.

Andreas

> How easy is it to write a web app that can visualize
> PostGIS data using Google Maps?
>
> Is it common to have PostGIS as a backend, using
> Google Maps for map output? Seems like a powerful
> combination, because your basemap data (imagery and
> street centerlines) would be provided by Google.
>
> Thanks very much.
>
> Dana
>
>
>
>       ____________________________________________________________________________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>


-- 
Andreas Neumann
Böschacherstrasse 6, CH-8624 Grüt/Gossau, Switzerland
Email: a.neumann at carto.net, Web:
* http://www.carto.net/ (Carto and SVG resources)
* http://www.carto.net/neumann/ (personal page)
* http://www.svgopen.org/ (SVG Open Conference)
* http://www.geofoto.ch/ (Georeferenced Photos of Switzerland)




More information about the postgis-users mailing list