[Talk-ca] Python version of canvec-to-osm

Michel Gilbert michcasa at gmail.com
Thu Nov 12 11:57:16 GMT 2009


Thank you Frank. I'll download and test it. I will give you some feedbacks
in shortly. Does it work on a Mac ?

Michel

2009/11/12 Sam Vekemans <acrosscanadatrails at gmail.com>

> Cool,
> thanks Frank,
> i also saw you worked on the wiki a bit more too. Great!
>
> Reading over it, that 'glomKey' is supposed to fix that
> 'non-connecting-rivers-bug' i have.
> Has anyone made work?
>
> Also, the note that 'type' cannot be used in the rules.txt, yet 'type'
> is a valid OSM tag and actively used to list the 'sub-values' of the
> tag above.
>
> Also, the dos bat file has a VERY basic GUI, where it now lets you
> process each group of tile letter (16 tiles) separatly or download 256
> tiles and let the whole thing just run.
>
> I'll take another at running python wizardry, but its 'most probably'
> someone else who will let the whole routeen run on their computer.
> & upload the .zip file to the NRCan ftp 'incomming' folder.
> ... Once the last geometry bugs get fixed.
>
> ... Anyway, lots to chat about.
>
> Great job,
> cheers,
> Sam
>
> On 11/11/09, Frank Steggink <steggink at steggink.org> wrote:
> > Hi,
> >
> > I have created a python version of canvec-to-osm. It does basically the
> > same as Sam's batch files. With it, 1 or 16 tiles are downloaded,
> > converted, and put in a ZIP file.
> >
> > The script can be found here:
> > http://www.steggink.org/osm/Canvec/Canvec-to-osm_v0.1.zip
> >
> > Requirements:
> > - Python 2.6 (recommended) or 2.5: http://www.python.org/
> > - Java Runtime Environment: http://www.java.com/
> > - recent version of shp-to-osm:
> > http://redmine.yellowbkpk.com/projects/list_files/geo
> >
> > I've tested the script both on Windows and Linux (Ubuntu) with
> > shp-to-osm 0.7.1 - 0.7.3.
> > The rules files come from Sam's canvec-to-osm script, version 0.9.6.0.
> > They are not the final rules files which should be available in a few
> > weeks. If you want to add more features, or exclude some features from
> > being processed, you can easily add / remove lines from
> > canvec_to_osm_features.py.
> >
> > The configuration of this script is part of the script itself (for now).
> > The default should be enough to get you going, so it is not necessary to
> > change the configuration. You can do this, if you already have an
> > existing directory to store Canvec SHP data. The script does not attempt
> > to modify the feature geometries. This should be done by more
> > specialized scripts / applications. I haven't looked in that.
> >
> > Detailed instructions can be found in the readme. Questions and feedback
> > are welcome.
> >
> > Regards,
> >
> > Frank
> >
> > _______________________________________________
> > Talk-ca mailing list
> > Talk-ca at openstreetmap.org
> > http://lists.openstreetmap.org/listinfo/talk-ca
> >
>
>
> --
> Twitter: @Acrosscanada
> Blog:  http://Acrosscanadatrails.blogspot.com
> Facebook: http://www.facebook.com/sam.vekemans
> OpenStreetMap IRC: http://irc.openstreetmap.org
> @Acrosscanadatrails
>
> _______________________________________________
> Talk-ca mailing list
> Talk-ca at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk-ca
>



-- 
Michel Gilbert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-ca/attachments/20091112/4df435c2/attachment.html>


More information about the Talk-ca mailing list