I do web work with a local government. We are wanting to put a lot of GIS related data on the web, and I'd like to use Google Maps before we lobby for a larger solution like ArcServer. I'm specifically having a problem with drawing polygons/polylines and the ordering of points.
Here's how I usually get the Lat/Lng:
- Ask guy in GIS department. He fires up Arc Software, and exports.
- I take .DBF file that Arc generated, and manipulate it to generate the javascript needed to be used by Google Maps API.
- I draw a polyline, but it looks very jumbled, like
this
I think it is related to the order that the points are being driven. Does anyone have ideas about getting the data returned to me so the points get drawn correctly?
note: the URL in this post is supposed to be a bike path in the city. I'm using GPolyline. If anyone wants to see code, I'm more than happy to share...
This might be a heckuva lot easier.
But personally, if the path is relatively direct, I'd sort the dbf by the lat/long fields.
posted by desjardins at 2:51 PM on March 8, 2007