[Talk-ca] GeoBase2osm & canvec2osm script making

Sam Vekemans acrosscanadatrails at gmail.com
Fri Feb 13 10:52:00 GMT 2009


Thanks,Well, it might not help as much as i thought.
Anyway, I'm wondering about weather or not your planning on having  another
script that would be able to import the road names? .. . or you think it
would be better off that they get manually entered in, from survey?

I guess that as long as the data shows the same tag reference, it doesn't
really matter what method was used. Right? I think so.

As im going through the process for creating the Canvec2osm script, im
wondering about the usefulness for the NID, with respect to weather or not
buildings / railways... (all relevant CanVec), different than GeoBase, this
source tag would need to be "Geogratis.ca CanVec Import 2009"

So the big question:  is there really a point to adding the NID for this
CanVec data?
... since we will be adding and enhancing the maps after the import, the
imported data will become meshed and melded into to OSM Map.
...
Ie.  I import all the buildings, then add in more buildings that weren't in
the set.  There is No need to try to figure out what the NID is of it. .. as
the update set would be used as a reference and imported the same way.  >
 having both layers visible, then copying the features that need to be added
to OSM, then add more tags to make the feature more relevant.
<open question: Is this issue discussed enough on the wiki??>

Cheers,
Sam


On Fri, Feb 13, 2009 at 2:31 AM, John Peterson <jdp at ix.netcom.com> wrote:

>  I'm writing scripts in Ab Initio a proprietary dataflow language.
>
> It has the ability to pull apart xml, manipulate it and put it back
> together.
>
> So if I have two xml streams, I can join them by a common key, and move
> attributes from one to another and then recreate a file like the original
> but with the new attributes.
>
> I use shp2text to pull the id and the srcstate (matched/alone/uknown) from
> the RoadMatcher results which are in Shape file format (that my scripting
> language can't read) and write scripts to merge them with the originals.
>
> I think this kind of thing can be done in python too -- and when I'm happy
> with my scripts (they produce correct results with less manual fixup) I'll
> make a stab at translating them.
>
> Not sure that this solves your problem though ....
>
> John Peterson
>
> ----- Original Message -----
> *From:* Sam Vekemans <acrosscanadatrails at gmail.com>
> *To:* jdp at ix.netcom.com ; talk-ca at openstreetmap.org ; Ian Dees<ian.dees at gmail.com>
> *Sent:* Thursday, February 12, 2009 11:44 PM
> *Subject:* GeoBase2osm & canvec2osm script making
>
> Hi John, Great work, :)
>
> So i'm working with Ian Dees, (who created) shp2osm
> and trying to figure out how to make this happen.
>
> The CanVec shape files are similar, in that it's the same process of
> converting, accept that there are no duplicated to contend with.
>
> My approach is this:
>
> I can now convert the Shape file to OSM, i then have both the newly created
> OSM file, and the CurrentData.osm. ... i then, just copy and past the data
> to the osm layer.
> So the purpose is just to create an OSM file from the CanVec.shp file.
>
> What i still need to learn todo is automatically apply tags to this created
> OSM file.  any idea?
>
> CanVec uses numbers instead of words like GeoBase does, so my script would
> have the # = osm tag.
>
>
> re:
> 9) shp2text to extract the columns I need in xml form
> 10) homebrew scripts to create standalone, matched, and unknown files from
> the geobase original
> 11) bulk_upload.pl to upload the new alone sections
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-ca/attachments/20090213/dcaf9e2a/attachment.html>


More information about the Talk-ca mailing list