[Talk-ca] [Talk-us] Automatch for importing NHD
Sam Vekemans
acrosscanadatrails at gmail.com
Fri Feb 20 19:46:15 GMT 2009
yupee!!!
That's so cool :-)
I got it to work, i was able to grab the NID (as well as the rest of the
CanVec ID's) which are so desperately needed. and so i can customize and add
whatever tags that are needed.
I still need to do a little more testing to see if it detects shp files with
multiple ID's... but i think it will.
(my little eee pc over heats and needs to cool down... and my head hurts and
also needs to cool down) :-)
I should have the BAT file im using ready to share soon, I will be
following the wiki chart, and watching for changes. .. and what's cool is
that i'll be also updating the wiki as i go along.
There is only 300 map features, so it will probably take a week or less,
to get the rules.txt all in line.
Although it doesn't do any AutoMatching, selecting & deleting 4 times around
the region your working on isn't that bad.
Cheers,
And thanks SOO much :)
P.S. I'll be sure to note your names on the readme.txt for it.
Sam Vekemans
Across Canada Trails
On Fri, Feb 20, 2009 at 10:08 AM, Dale Puch <dale.puch at gmail.com> wrote:
> I managed to download and compile the latest code Ian has in the
> repository. It throws up a warning or two about not finding extra
> libraries, but seems to be working fine.
> just change the run.bat to referance this file (0.3 instead of 0.2) and let
> me (and Ian) know how it works for you.
>
> Dale
>
>
> On Thu, Feb 19, 2009 at 6:25 PM, Dale Puch <dale.puch at gmail.com> wrote:
>
>> I guess we are going to need some feedback from Ian to get it working, or
>> to go digging in the java.
>>
>> For your ready made GIS needs...
>> Try http://www.gisvm.com/ It should be a ready made GIS OS. No OSM
>> specific stuff though, but it still makes it a little easier if you don't
>> already have everything installed.
>> Or if you prefer windows, http://www.archaeogeek.com/blog/portable-gis/gives a lot of the same stuff setup for a USB thumbdrive.
>>
>> Dale
>>
>>
>> On Wed, Feb 18, 2009 at 11:02 AM, Sam Vekemans <
>> acrosscanadatrails at gmail.com> wrote:
>>
>>> Thanks,
>>> good to know that you got the same result from the java script.
>>>
>>> For this effort, I'm not to concerned about roads (its not part of the
>>> canvec data import)
>>>
>>> i probably might have to get ibuntu installed, and start learning that.
>>>
>>> -though i dont want to give up the effort to make this java script work.
>>> Is there a technical reason why it wont work?
>>> Does it HAVE to get processed in postGIS? (i have to learn what that
>>> means :-)
>>>
>>> thanks for the help,
>>> Sam
>>>
>>> On 2/18/09, Dale Puch <dale.puch at gmail.com> wrote:
>>> > Ian's java app seems to fit, but playing with it I have not gotten any
>>> tags
>>> > applied to the resulting OSM files. Just blank ways or polys without
>>> tags.
>>> > My changes to the rules.txt match my shp data...
>>> >
>>> > It seems to simplify what the scripts did with few disadvantages for
>>> basic
>>> > data like rivers, lakes, buildings ect. Roads may still need to be
>>> done
>>> > with scripts (added logic) to get the most out of some of the shape
>>> files
>>> > but will work either way.
>>> >
>>> > And yes java is MUCH easier to get started with for finished
>>> programs...
>>> > but perl and python isn't out of reach. Not as simple as it should be
>>> > though. There is a GIS on a stick (windows USB based GIS apps) as well
>>> as
>>> > a
>>> > GIS linux virtual machine that can make working with a lot of scripts a
>>> lot
>>> > easier to get started.
>>> >
>>> > Dale
>>> >
>>> > On Wed, Feb 18, 2009 at 9:12 AM, Sam Vekemans
>>> > <acrosscanadatrails at gmail.com>wrote:
>>> >
>>> >>
>>> http://wiki.openstreetmap.org/wiki/Geobase_NRN_-_OSM_Map_Featurehere's<http://wiki.openstreetmap.org/wiki/Geobase_NRN_-_OSM_Map_Featurehere%27s>
>>> >> the
>>> >> link... for the shp2osm wiki
>>> >> http://wiki.openstreetmap.org/wiki/Shp2osm
>>> >>
>>> >> Basically, im looking at making a simple script that will simply take
>>> the
>>> >> shape file from whatever source, and convert it to OSM... not even
>>> >> looking
>>> >> at what the current OSM file looks like.
>>> >>
>>> >> The script would be used for importing shape files that the users
>>> knows
>>> >> FOR
>>> >> SURE that there wont be any duplicates... ie. importing buildings in
>>> an
>>> >> area, where no buildings currently exist. .. or importing
>>> >> property boundaries..
>>> >> .... so i need a script that DOES NOT look for duplicates. ...
>>> >>
>>> >> I prefer making it Java Friendly, as it's simple and i don't need to
>>> >> know
>>> >> how to do perl or python. I want to be able to open up the file in
>>> >> notepad
>>> >> and change the values.
>>> >>
>>> >> I'll look at those other links you sent.
>>> >> Thanks,
>>> >> Sam
>>> >>
>>> >> On Wed, Feb 18, 2009 at 12:33 AM, Dale Puch <dale.puch at gmail.com>
>>> wrote:
>>> >>
>>> >>> Ahh, I remember Ian talking about the java version he wanted to work
>>> on,
>>> >>> but never saw it before.
>>> >>> Now I have two things to play with. :)
>>> >>>
>>> >>> FYI List of shp 2 osm files I have found, lots of versions of each
>>> >>> other.
>>> >>> also the ones already listed in the wiki. We need a genealogy for
>>> >>> these.
>>> >>>
>>> >>> http://svn.yellowbkpk.com/geo/trunk/shp_to_osm.py
>>> >>> http://boston.freemap.in/osm/files/mgis_to_osm.py
>>> >>> http://raumplanung.tobwen.de/OSM/scripts/shp2osm_080814.pls
>>> >>>
>>> >>>
>>> http://svn.openstreetmap.org/applications/utils/import/shp2osm/polyshp2osm.py
>>> >>>
>>> http://svn.openstreetmap.org/applications/utils/import/shp2osm/shp2osm.pl
>>> >>> I have a version for Japanese trains somewhere too.
>>> >>> there are also some versions by Dave Hansen for the tiger imports.
>>> >>> And of course a few modified/butchered versions I made...
>>> >>>
>>> >>> The biggest issue with these is matching up the shp data to good OSM
>>> >>> tags. Otherwise it is pretty easy to modify them.
>>> >>>
>>> >>> Dale
>>> >>>
>>> >>>
>>> >>> On Wed, Feb 18, 2009 at 7:05 AM, Sam Vekemans <
>>> >>> acrosscanadatrails at gmail.com> wrote:
>>> >>>
>>> >>>> Its search "geobase import" an its under NRN
>>> >>>> (on my cell, i dont have acess to full internet)
>>> >>>> -part of the geobase2osm routeen
>>> >>>>
>>> >>>> Actually, its "shp-to-osm" Ian Dees' script, but im trying to figure
>>> >>>> it out, using java.
>>> >>>> I found another version from Italy (i think), i'm collecting all the
>>> >>>> versions of shp 2/to osm to try to make sence of it. Wiki - shp2osm
>>> >>>>
>>> >>>> On 2/17/09, Dale Puch <dale.puch at gmail.com> wrote:
>>> >>>> > ohh automatch sounds interesting, available from... where? :)
>>> >>>> >
>>> >>>> > Problems where to find the shp2osm script, or get it working?
>>> >>>> > See http://wiki.openstreetmap.org/wiki/User:Dalep for my dabbling
>>> in
>>> >>>> > shp2osm
>>> >>>> > conversion and importing.
>>> >>>> >
>>> >>>> > Dale
>>> >>>> >
>>> >>>> >
>>> >>>> > On Mon, Feb 16, 2009 at 9:18 PM, Sam Vekemans
>>> >>>> > <acrosscanadatrails at gmail.com>wrote:
>>> >>>> >
>>> >>>> >> Hi,
>>> >>>> >> fyi, the automatch script for importing canada's NRN datasets is
>>> >>>> >> available to copy from - hopefully it can help. (to deal with
>>> >>>> >> duplicates)
>>> >>>> >>
>>> >>>> >> I still havent figured out how to get the .txt file that converts
>>> >>>> >> the
>>> >>>> >> database file to osm tags. -the shp2osm script.
>>> >>>> >>
>>> >>>> >> Thanks,
>>> >>>> >> Sam
>>> >>>> >>
>>> >>>> >> ps hopefully the talk-ca can learn from the talk-us list.
>>> >>>> >>
>>> >>>> >> _______________________________________________
>>> >>>> >> Talk-us mailing list
>>> >>>> >> Talk-us at openstreetmap.org
>>> >>>> >> http://lists.openstreetmap.org/listinfo/talk-us
>>> >>>> >>
>>> >>>> >
>>> >>>> >
>>> >>>> >
>>> >>>> > --
>>> >>>> > Dale Puch
>>> >>>> >
>>> >>>>
>>> >>>
>>> >>>
>>> >>>
>>> >>> --
>>> >>> Dale Puch
>>> >>>
>>> >>
>>> >>
>>> >
>>> >
>>> > --
>>> > Dale Puch
>>> >
>>>
>>
>>
>>
>> --
>> Dale Puch
>>
>
>
>
> --
> Dale Puch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-ca/attachments/20090220/78a14068/attachment.html>
More information about the Talk-ca
mailing list