[Talk-GB] OpenHants - doing something with the Hants CC data in the meantime
Nick Whitelegg
Nick.Whitelegg at solent.ac.uk
Thu Jun 14 08:32:04 BST 2012
Hello Rob,
Sorry for the late reply on this. Basically how it works is:
- the shapefile was converted to Postgres SQL using shp2pgsql;
- the data was imported into a PostGIS database;
- some custom code (actually same underlying code as Freemap) was written to fetch data as GeoJSON from the database by bounding box;
- Leaflet was used to produce the overlay; this is quite easy as Leaflet automatically handles GeoJSON.
I'll try and write it up as a blog post. Some (old) code for doing this is on the Freemap github site; I'll try and update it in the next few days.
Nick
-----Rob Nickerson <rob.j.nickerson at gmail.com> wrote: -----
To: talk-gb at openstreetmap.org, Nick.Whitelegg at solent.ac.uk
From: Rob Nickerson <rob.j.nickerson at gmail.com>
Date: 09/06/2012 12:02AM
Subject: Re: [Talk-GB] OpenHants - doing something with the Hants CC data in the meantime
Fantastic use of the data Nick!
Is there any guides for how to do something similar? I was trying to visualise the Natural England data using Leaflet but failed miserably as the shapefile is too big. Your website appears to load just the bit needed. Would I be able to use some of your code?
Cheers,
RobJN
p.s I'm not hugely tech savy, but with a simple set of steps (e.g. Load data in x, tweak code where there are references to y&z, etc) should be enough to get me started as I can research the details on google.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-gb/attachments/20120614/804f3c49/attachment.html>
More information about the Talk-GB
mailing list