[Talk-ca] Importing NRN using geobase2osm

Sam Vekemans acrosscanadatrails at gmail.com
Mon May 11 02:09:33 BST 2009


Hi, (im still working on the reply from the last message, you made some good
points)

Anyway, i met up with Corey the other day (the guy who mapped Victoria &
showed me how to map).  And were interested in getting the RoadMatcher
Results for the 092B area.    So then groups such as the Bike/Walk victoria
can start adding in cyclelanes and paths etc.

I'm trying to follow the instructions given, but having a difficult time.

instructions are shown on the
http://wiki.openstreetmap.org/wiki/Geobase2osm
page, as well as the
http://wiki.openstreetmap.org/wiki/Geobase_NRN_-_OSM_Map_Feature

I know that it's A LOT of work, and i'd like to help out, as soon as i
figure out HOW to get the script to work. Then i could get BC done.
Im wondering if the others who have been importing, would be able to great a
longer stepBYstep instruction set.   (Geobase2osm for dummies) :-)


The BIG hickup for the canvec data is that 'duplicate nodes' bug.... so
really none of the features can be uploaded until that bug is fixed. ... so
in the mean time, i think that getting the geobase2osm NRN data imported for
BC would be a good idea, so then i can learn how to modify the script so
that it would look at the canvec shp files, and be able to automatch for
conflicts.

So far, ive been able to;
-load the gml file from
ftp://ftp2.cits.rncan.gc.ca/pub/geobase/official/nrn_rrn/bc/
-make python run from the command prompt.

-what name does the input OSM file need to have? and i assume that the file
needs to be in the same folder? .. does it matter how big (geometry) the
input OSM file is?

I could load the NTS tile, and then using JOSM grab all the OSM data, then
run the script.

Oh ya, i have a little program called 'Download.exe' it lets me download
stuff from the net with the specified URL, and gives a countdown timer % of
how much was downloaded.
handy for creating a BAT file so people can run.

***
cd\
d:
del /Q josm-latest.jar
download http://josm.openstreetmap.de/download/josm-latest.jar /update
java -Xmx500m -jar josm-latest.jar
****
So I use that to run JOSM :)

Anyway, here's what i have so far for geobase2osm.

****
REM START of FILE
assoc .py=Python.File
assoc .pyc=Python.CompiledFile
assoc .pyw=Python.NoConFile

ftype Python.File=D:\Python23\python.exe "%%1" %%*
ftype Python.CompiledFile=D:\Python23\python.exe "%%1" %%*
ftype Python.NoConFile=D:\Python23\pythonw.exe "%%1" %%*

rem this should be done in the system settings
set PATHEXT=%PATHEXT%;.py;.pyc;.pyw

cd\
d:
cd\geobase2osm
download.exe

geobase2osm.py -i NRN_BC_5_0_GEOM.gml -o output.osm

rem END of FILE
*****

Thanks,
Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-ca/attachments/20090510/5162ad8a/attachment.html>


More information about the Talk-ca mailing list