<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">halo All..<br>i'm sorry with my english...<br><br>i'm new in postgis and gmaps<br>my
mini-project are: convert shp data into postgreSQL then display
(marking and make a pop_up)  the data on google maps as dynamicly.<br><br>i have been, convert data.shp into postgreSQL using shp2pgsql, type of data are point, line, and polygon.<br>then, i want to display this data on google maps, using php and the output file in XML, like on the article <a rel="nofollow" target="_blank" href="http://code.google.com/support/bin/answer.py?answer=65622"><i>Using
PHP/MySQL with Google Maps</i></a> written by Pamela Fox.<br><br>To
marker data on gmaps, the sintax need GLatLng, but the position
geometry (the_geom) in postgis not in Lat,Lng but in Lng,Lat..<br>if, the type data is a point, it doesn't matter. In my query i used:<br>$sql = "SELECT  id_bgnan, nm_gedung, (y(the_geom)), (x(the_geom)) FROM bangunan_geo where nm_gedung='$detail'";<br>to arrange the position geometry/coordinat(the_geom) into Lat, Lng.<br>then i parse the xml using:<br>echo '<plotting>';<br>    while ($row=pg_fetch_array($hasil))<br>    {<br>        echo '<plot ';<br>        echo 'id="' . parseToXML($row['0']) . '" ';<br>        echo 'nama="' . parseToXML($row['1']) . '" ';<br>        echo 'lat="' . parseToXML($row['2']) . '" ';<br>        echo
 'lng="' . parseToXML($row['3']) . '" ';<br>        echo '/>';<br>        <br>    }<br>    echo '</plotting>';<br><br>My question is, how if the type data not in point, but in polygon?<br>Regards<br><br>___Eli___</td></tr></table><br>
      <hr size=1>Lebih Bersih, Lebih Baik, Lebih Cepat - <a href="http://id.mail.yahoo.com"> Rasakan Yahoo! Mail baru yang Lebih Cepat hari ini!</a>