No. Thank you. It is the third:) I just need to convert (using Javascript or Python) GPolygon to Polygon (or MultiPolygon) of WKT format.
On 30 янв, 21:19, marcelo <[email protected]> wrote: > Are you asking how to pass the data from the client to the server, or > how to do the SQL insert statement? > > If it is the first, then look at > GDownloadUrl()http://code.google.com/apis/maps/documentation/reference.html#GDownlo... > > If it is the second, then ask in a PostgreSQL group. > > -- > Marcelo -http://maps.forum.nu > -- > > On Jan 30, 4:42 pm, "[email protected]" > > <[email protected]> wrote: > > Hello > > I have a GPolygon on my map. I need to save it to my PostGIS DB. I get > > it coordinates in this way: > > > function get_polylatlng(polygon) { > > > var numPoints = polygon.getVertexCount(); > > > var latlng=[]; > > > for(var i=0; i < numPoints; i++) { > > var lat = polygon.getVertex(i).lat(); > > var lng = polygon.getVertex(i).lng(); > > > latlng[i]= lat + " " + lng; > > > } > > > return latlng; > > > }; > > > So I have an array of coordinates in latlng. BUT I need to save it as > > WKT Polygon! How can I convert it to WKT? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
