[Talk-ca] Setting up RoadMatcher and creating shapefiles

Steven Singer sjsinger at alumni.uwaterloo.ca
Sun Sep 27 04:52:09 BST 2009


On Fri, 25 Sep 2009, Sam Vekemans wrote:

Sam + Sam

The attached script (some form of unix/linux required) should take the 
various raw shapefiles (which you will have to download from statscan, 
geobase and nrcan and the cloudmade osm extract) and populate a postgis 
database with the required data.

You can then run the create-shapefile.sh script to generate stored shpfiles 
for your NTS tiles.

Your steps will be

1. Install postgis + osm2pgsql
2. Get the datafiles for the province you want to work in
3. Make sure the environment variables at the top of the populate-db.sh 
script are correct (ie point to the files you've gotten etc...)
4. Run the populate-db.sh script.
5. Create a file listing the NTS tiles you want, see the top of 
create-shapefiles.sh for the format
6. Run create-shapefiles.sh

Let me know how this works, I suspect this script will need a bit of 
tweaking before you can run it in an environment different than my own, nor 
have I done much testing of this assembled script.


Hope this helps.



> Hi Steve,
> (or others?)
>
> Perhaps you can the process of converting the .gml files into .osm and
> skip explaination of the road matcher process.
> This way, we will have instructions on how to create these .complete.osm files,
> and let the local people manually 'copy/paste' the roads that they want.
>
> Albiet slow, but effective.
>
> And making these big-complete-osm province-size (or smaller) files available.
>
> Sorry if im beating a horse here, on Wednesday on uStream.tv i can
> explain the concept better :-)
>
> cheers,
> Sam V
>
> On 9/25/09, Sam Dyck <samueldyck at gmail.com> wrote:
>> Hi
>>
>> It's fine, I just keep using Potlatch and JOSM and the Yahoo! Aerial
>> Imagery. I live in Winnipeg, which is Geobase tile 62 (sorry if you mean
>> something else or that is not specific enough). The City of Winnipeg should
>> have all roads named (along with many other things) soon thanks to some
>> great people who have worked hard, but many of the smaller towns will be
>> difficult to do beacuse of the poor quality of the Ariel imagry I have
>> started to experiment with street numbers since there is no source (yet)
>> for
>> Manitoba (unless these are in the StatsCan data).
>>
>> Sam
>>
>> On Fri, Sep 25, 2009 at 10:03 PM, Sam Vekemans
>> <acrosscanadatrails at gmail.com
>>> wrote:
>>
>>> (wish i could help with those gml files, but cant :(
>>>
>>> fortunatly, its just a matter of time, now that we have 5 or so people
>>> who know how. :)
>>>
>>> were all volunteers, i guess i need to be more patient :), but i still
>>> want it done yesterday :)
>>>
>>> anyway, what tile area are you in?
>>> sorry if i already asked before.
>>>
>>> Cheers,
>>> Sam V.
>>>
>>>
>>> On 9/25/09, Sam Dyck <samueldyck at gmail.com> wrote:
>>>> Hi
>>>>
>>>> Sorry to ask for help, but I really want to start importing Geobase
>>>> data
>>> for
>>>> Manitoba and Saskatchewan. If someone is able to help me install
>>> RoadMatcher
>>>> on (open)JUMP and create Shapefiles from OSM data on a Debian GNU/Linux
>>>> system. Again, if it is such an odious task forget it. But to the best
>>>> of
>>>> knowledge there is no one importing data for these provinces, and it
>>> would
>>>> allow me to focus on other features of the map if this data was
>>>> imported.
>>>> Thanks
>>>>
>>>> Sam D.
>>>>
>>>
>>>
>>> --
>>> Twitter: @Acrosscanada
>>> Facebook: http://www.facebook.com/sam.vekemans
>>>
>>
>
>
> -- 
> Twitter: @Acrosscanada
> Facebook: http://www.facebook.com/sam.vekemans
>
> _______________________________________________
> Talk-ca mailing list
> Talk-ca at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk-ca
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: populate-db.sh
Type: application/x-sh
Size: 2395 bytes
Desc: 
URL: <http://lists.openstreetmap.org/pipermail/talk-ca/attachments/20090926/3bb742ca/attachment.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: populate-db.sh
Type: application/x-sh
Size: 2395 bytes
Desc: 
URL: <http://lists.openstreetmap.org/pipermail/talk-ca/attachments/20090926/3bb742ca/attachment-0001.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: create_shapefiles.sh
Type: application/x-sh
Size: 1164 bytes
Desc: 
URL: <http://lists.openstreetmap.org/pipermail/talk-ca/attachments/20090926/3bb742ca/attachment-0002.sh>


More information about the Talk-ca mailing list