Effective ways of editting Google Map

1

I’ve created a bit of a mongrel cycle map http://bit.ly/9uCqn7 . It’s based on two FOI requests on cycle collisions, in January it started pulling in potholes. However now I want to tidy it up and do a separate pothole map and cycle collision map.

Does anyone know how to pull the potholes out of the map?
I tried downloading and editting the KML but simply removing the code stops displaying all the other pinpoints like this http://bit.ly/bkUVxU .

I suspect I’m approaching this the wrong way so any other suggestions for edditing the map with would be really helpful.

Tags: asked May 30, 2010
  1. Both of your links lead me to the middle of (i think) the Irish Sea. Presumably not a lot of bicycling going on there. Fix that link and I’ll be happy to take a peek.

Leave a Reply

1 Answer

2

How are you receiving the FOIA data?

There are command line tools which, while a bit esoteric, should be able to do what you need. There's a library called GDAL which includes something called ogr2ogr You can use ogr2ogr to convert KML to ESRI Shapefiles (.shp) and back again. You can also use it to extract a subset of points from a file using SQL-like syntax (see the documentation for the -select and -where tags)

You may also be interested in QGIS, a free mapping tool which is to ESRI's commercial ARCView software somwhat as OpenOffice is to Microsoft Office. I'm pretty novice at using QGIS, but I've been able to figure out a few things with it, and you can't beat the price. It's probably possible to use it to split a file up, but I haven't tried.

Editing the KML should work, but it's quite possible that you edited out something you shouldn't have! You might try validating your KML to verify that you haven't broken anything.

  1. Great! Thanks Joe.

    I’ll take a look GDAL and QGIS tomorrow. I’ve now managed to strip the code down and put the collisions on their own map (http://bit.ly/ciXxx2). I also realised afterwards I could just revisit the FOI data which worked pretty well once I’d run it through Mapalist then manually add the recent accidents.

    Now I’d like to put the pothole data into its own map suspect I just need to work out a bit of KML for that, and I’ll look at the things you sent me.

Leave a Reply

351

Your Answer

Please login to post questions.