Re: [Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-10-01 Thread Frank Steggink
Hi,

A while back I created a python script to split a NRN GML file into 
smaller parts. This was done to speed up the conversion of geobase2osm. 
The updated version can be here, and it is very alpha: 
http://www.steggink.org/temp/nrn_splitter_02.py.txt

1st parameter (mandatory, no error handling): GML file to split up
2nd parameter: level
Level = 1 (default): file gets split up in 1:5 NTS tiles (2 deg x 1 
deg, 999X99)
Level = 2: file gets split up in 1:25 NTS tiles (8 deg x 4 deg, 999X)
This app only works below 68 deg latitude, because the tiling is 
different up north. This is not a big issue, because the few roads there 
are already in OSM (right?).

So far I haven't seen any serious issues with it, but better handle with 
care. I hope it fits your purpose.

Regards,

Frank

Emilie Laffray wrote:
> Hum,
> ok, where can I find the gml files? What size do you want your slice 
> to be?
> The solution would be to use ogr2ogr first to transform into a 
> shapefile. The next step is to transform the shapefile into an osm 
> file. Finally, you would be using Osmosis to cut using bounding box.
> No need for Postgis in this case. Postgis would be needed if you 
> wanted to have something more complicated. In this case, command line 
> tools are available. I could probably create a small python script 
> doing this in a few hours.
> Potential problem here is that shapefile contains only one layer of 
> the same type by default. Any GML files with different kind of 
> geometries like Linestring or polygone would need to be put into 
> separate shapefiles.
>
> Emilie Laffray
>
> 2009/10/1 Sam Vekemans  >
>
> Nothing, actually. :)
>
> Just for a volunteer to take each whole province gml file and slice it
> in a couple chunks, and make the .osm files available, (on a server
> somewhere)
> so then newbies like me, can run with it and just copy in the roads
> that we need. (doing so in a tileBYtile area, claiming our working
> area)
> i have the rectangle areas available as .osm files and .shp files (its
> included in the canvec-to-osm converted zip file for each area).
>
>
>  But we are all volunteers, so there is no rush, and its just a
> request i keep bugging the smart PostGIS people about :)
>
> Probably for round 2 (next year) a GUI might be helpful, but the
> concept is the same, files on a website directory works just fine. imo
>
> Sam
>
> p.s, any special requests for a tile area to be converted from canvec?
> Otherwise, i'll go with 082 area.
>
> On 10/1/09, Emilie Laffray  > wrote:
> > 2009/9/27 Sam Vekemans  >
> >
> >> Thanks,
> >> Slowely but surely it's getting easier.   Awesome :)
> >> I'm a newbie at this, but im sure there is a VisualBasic programmer
> >> out there who can make a handy GUI with a bare-bones program.
> If thats
> >> technically possable? I dont know.   ... if there's a way to avoid
> >> installing other programs. .. maybe not. :-)
> >>
> >
> > Yuck Visual basic really stinks :)
> > What is needed actually?
> >
> > Emilie Laffray
> >
>
>
> --
> Twitter: @Acrosscanada
> Facebook: http://www.facebook.com/sam.vekemans
>
>


___
Talk-ca mailing list
Talk-ca@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-10-01 Thread Sam Vekemans
Yup, its slighty more complicated. so with the effort to make the .osm
files available, roadmatcher 'aught' to be run.

My own ignorance for not wanting to learn, is just bugging others. So
should really stop that :-)

On the wiki 'geobase import' steveS did a great job of explaining it
and the steps to take, and others could probably help further.

The steps to 'omit roadmatcher, and omit downloading the current osm
area' is not yet listed. But im sure it can be worked out.

Btw, 'slicing the gml file' is only done because the resulting .osm
files are over 50 megs (no bigger than the greater-victoria.osm) is
fine to work with. the sq km size doesnt matter. (since its manual
copying), and using the NTS boxes as guides is only needed so we dont
trip over eachother.

Sam

On 10/1/09, Emilie Laffray  wrote:
> Hum,
> ok, where can I find the gml files? What size do you want your slice to be?
> The solution would be to use ogr2ogr first to transform into a shapefile.
> The next step is to transform the shapefile into an osm file. Finally, you
> would be using Osmosis to cut using bounding box.
> No need for Postgis in this case. Postgis would be needed if you wanted to
> have something more complicated. In this case, command line tools are
> available. I could probably create a small python script doing this in a
> few
> hours.
> Potential problem here is that shapefile contains only one layer of the
> same
> type by default. Any GML files with different kind of geometries like
> Linestring or polygone would need to be put into separate shapefiles.
>
> Emilie Laffray
>
> 2009/10/1 Sam Vekemans 
>
>> Nothing, actually. :)
>>
>> Just for a volunteer to take each whole province gml file and slice it
>> in a couple chunks, and make the .osm files available, (on a server
>> somewhere)
>> so then newbies like me, can run with it and just copy in the roads
>> that we need. (doing so in a tileBYtile area, claiming our working
>> area)
>> i have the rectangle areas available as .osm files and .shp files (its
>> included in the canvec-to-osm converted zip file for each area).
>>
>>
>>  But we are all volunteers, so there is no rush, and its just a
>> request i keep bugging the smart PostGIS people about :)
>>
>> Probably for round 2 (next year) a GUI might be helpful, but the
>> concept is the same, files on a website directory works just fine. imo
>>
>> Sam
>>
>> p.s, any special requests for a tile area to be converted from canvec?
>> Otherwise, i'll go with 082 area.
>>
>> On 10/1/09, Emilie Laffray  wrote:
>> > 2009/9/27 Sam Vekemans 
>> >
>> >> Thanks,
>> >> Slowely but surely it's getting easier.   Awesome :)
>> >> I'm a newbie at this, but im sure there is a VisualBasic programmer
>> >> out there who can make a handy GUI with a bare-bones program. If thats
>> >> technically possable? I dont know.   ... if there's a way to avoid
>> >> installing other programs. .. maybe not. :-)
>> >>
>> >
>> > Yuck Visual basic really stinks :)
>> > What is needed actually?
>> >
>> > Emilie Laffray
>> >
>>
>>
>> --
>> Twitter: @Acrosscanada
>> Facebook: http://www.facebook.com/sam.vekemans
>>
>


-- 
Twitter: @Acrosscanada
Facebook: http://www.facebook.com/sam.vekemans

___
Talk-ca mailing list
Talk-ca@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-10-01 Thread Emilie Laffray
Hum,
ok, where can I find the gml files? What size do you want your slice to be?
The solution would be to use ogr2ogr first to transform into a shapefile.
The next step is to transform the shapefile into an osm file. Finally, you
would be using Osmosis to cut using bounding box.
No need for Postgis in this case. Postgis would be needed if you wanted to
have something more complicated. In this case, command line tools are
available. I could probably create a small python script doing this in a few
hours.
Potential problem here is that shapefile contains only one layer of the same
type by default. Any GML files with different kind of geometries like
Linestring or polygone would need to be put into separate shapefiles.

Emilie Laffray

2009/10/1 Sam Vekemans 

> Nothing, actually. :)
>
> Just for a volunteer to take each whole province gml file and slice it
> in a couple chunks, and make the .osm files available, (on a server
> somewhere)
> so then newbies like me, can run with it and just copy in the roads
> that we need. (doing so in a tileBYtile area, claiming our working
> area)
> i have the rectangle areas available as .osm files and .shp files (its
> included in the canvec-to-osm converted zip file for each area).
>
>
>  But we are all volunteers, so there is no rush, and its just a
> request i keep bugging the smart PostGIS people about :)
>
> Probably for round 2 (next year) a GUI might be helpful, but the
> concept is the same, files on a website directory works just fine. imo
>
> Sam
>
> p.s, any special requests for a tile area to be converted from canvec?
> Otherwise, i'll go with 082 area.
>
> On 10/1/09, Emilie Laffray  wrote:
> > 2009/9/27 Sam Vekemans 
> >
> >> Thanks,
> >> Slowely but surely it's getting easier.   Awesome :)
> >> I'm a newbie at this, but im sure there is a VisualBasic programmer
> >> out there who can make a handy GUI with a bare-bones program. If thats
> >> technically possable? I dont know.   ... if there's a way to avoid
> >> installing other programs. .. maybe not. :-)
> >>
> >
> > Yuck Visual basic really stinks :)
> > What is needed actually?
> >
> > Emilie Laffray
> >
>
>
> --
> Twitter: @Acrosscanada
> Facebook: http://www.facebook.com/sam.vekemans
>
___
Talk-ca mailing list
Talk-ca@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-10-01 Thread Sam Vekemans
Nothing, actually. :)

Just for a volunteer to take each whole province gml file and slice it
in a couple chunks, and make the .osm files available, (on a server
somewhere)
so then newbies like me, can run with it and just copy in the roads
that we need. (doing so in a tileBYtile area, claiming our working
area)
i have the rectangle areas available as .osm files and .shp files (its
included in the canvec-to-osm converted zip file for each area).


 But we are all volunteers, so there is no rush, and its just a
request i keep bugging the smart PostGIS people about :)

Probably for round 2 (next year) a GUI might be helpful, but the
concept is the same, files on a website directory works just fine. imo

Sam

p.s, any special requests for a tile area to be converted from canvec?
Otherwise, i'll go with 082 area.

On 10/1/09, Emilie Laffray  wrote:
> 2009/9/27 Sam Vekemans 
>
>> Thanks,
>> Slowely but surely it's getting easier.   Awesome :)
>> I'm a newbie at this, but im sure there is a VisualBasic programmer
>> out there who can make a handy GUI with a bare-bones program. If thats
>> technically possable? I dont know.   ... if there's a way to avoid
>> installing other programs. .. maybe not. :-)
>>
>
> Yuck Visual basic really stinks :)
> What is needed actually?
>
> Emilie Laffray
>


-- 
Twitter: @Acrosscanada
Facebook: http://www.facebook.com/sam.vekemans

___
Talk-ca mailing list
Talk-ca@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-10-01 Thread Emilie Laffray
2009/9/27 Sam Vekemans 

> Thanks,
> Slowely but surely it's getting easier.   Awesome :)
> I'm a newbie at this, but im sure there is a VisualBasic programmer
> out there who can make a handy GUI with a bare-bones program. If thats
> technically possable? I dont know.   ... if there's a way to avoid
> installing other programs. .. maybe not. :-)
>

Yuck Visual basic really stinks :)
What is needed actually?

Emilie Laffray
___
Talk-ca mailing list
Talk-ca@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-10-01 Thread Steven Singer

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  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

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  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@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca



populate-db.sh
Description: Bourne shell script


populate-db.sh
Description: Bourne shell script


create_shapefiles.sh
Description: Bourne shell script
___
Talk-ca mailing list
Talk-ca@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-09-26 Thread Sam Vekemans
Thanks,
Slowely but surely it's getting easier.   Awesome :)
I'm a newbie at this, but im sure there is a VisualBasic programmer
out there who can make a handy GUI with a bare-bones program. If thats
technically possable? I dont know.   ... if there's a way to avoid
installing other programs. .. maybe not. :-)

In the mean time, Austin,  is there time to meet-up in the next few
weeks or so, to run through this?

Does anyone (Frank?) know of a way to create a txt.file listing all of
the NTS Tiles (coordinates) available?  Then the script would just run
through the whole list and just use whatever tiles have actual data in
them.
Similar to now my canvec2osm.bat  file runs through and checks for the
existence of all 16 tiles, even though only a few of the 16 may be
present.(it you don't know what i mean, please ask :)   ...

Cheers,
Sam

On 9/26/09, Steven Singer  wrote:
> 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  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
>>> >>> 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  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@openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/talk-ca
>>
>


-- 
Twitter: @Acrosscanada
Facebook: http://www.facebook.com/sam.vekemans

___
Talk-ca mailing list
Talk-ca@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-09-25 Thread Sam Dyck
Thanks for your help, when I did all that I got the message:
Could not find the main class:
com.vividsolutions.jump.workbench.JUMPWorkbench.
It looks like I have some problems with JAVA. I have both JAVA and OpenJDK
installed.
So I will install a new distro (which I've been meaning to do for months)
and try running it their without having to worry about the clutter with my
current setup. It is late, so I will retire now, but I will work on this in
this weekend.

Thanks

Sam

On Fri, Sep 25, 2009 at 10:36 PM, Adam Dunn  wrote:

> I know the installation of JUMP on Linux is a little ambiguous, as the
> documentation for jump says that you just unzip and run. Reading through the
> RoadMatcher-unix-2.sh startup script, I can see that it is not quite this
> simple (or there is some installation documentation that I missed). When you
> download the zip file for Roadmatcher, you can put that anywhere you like (I
> have it in my home directory). Then you have to copy the lib directory over
> to /usr/local/jump/ (meaning you will have to make an empty directory called
> jump, and then copy the lib directory into it. I'm assuming you know the
> basics of Debian, like how to run as root so that you can access /usr/local
> and how to move files around with root privileges. Finally, for some reason,
> the actual files for Roadmatcher are stored in lib/ext/roadmatcher, but they
> need to be in lib/ext/ instead. So you will have:
> Before:
> /usr/local/jump/lib/
>  |->bsh-2.0b1.jar
>  |->Jama-1.0.1.jar
>  |->etc
>  |->/ext
> |->/roadmatcher
>|->jcommon-0.8.4.jar
>|->jfreechart-0.9.9.jar
>|->roadmatcher-1.4.jar
>
> After:
> /usr/local/jump/lib/
>  |->bsh-2.0b1.jar
>  |->Jama-1.0.1.jar
>  |->etc
>  |->/ext
> |->jcommon-0.8.4.jar
> |->jfreechart-0.9.9.jar
> |->roadmatcher-1.4.jar
> You can then have the rest of the roadmatcher zip file anywhere you please,
> make bin/RoadMatcher-unix-2.sh set to be executable, and then all should
> run. Alternatively, you can edit the startup script to use directories that
> you choose (by changing the values for JUMPHOME= and for JUMP_PLUGIN_DIR=).
>
> This should get jump+roadmatcher working for you.
>
> I'm writing this all from memory, but I did this on an Ubuntu machine, and
> can hopefully answer other questions you may have.
>
> Adam
>
>  On Fri, Sep 25, 2009 at 6:19 PM, Sam Dyck  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.
>>
>> ___
>> Talk-ca mailing list
>> Talk-ca@openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/talk-ca
>>
>>
>
___
Talk-ca mailing list
Talk-ca@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-09-25 Thread Sam Vekemans
I'll try to explain:

The older versions of the geobaseNRN.gml files will not be available
to use for comparison to new geobaseNRN.gml files as they are
available.

Having this complete.osm file available, we can compare the 2 and get
a 'geobaseNRN-results.osm file.

We can then (later on) compare latest.osm with whats available and copy it over.
(the file will be smaller)

BTW, GML files are 'better' than SHP files.

And those of us without a ArchGIS background, can deal with .osm much easier :-)

Cheers,
Sam V.

On 9/25/09, Sam Vekemans  wrote:
> 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  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
>> >> 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  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
>


-- 
Twitter: @Acrosscanada
Facebook: http://www.facebook.com/sam.vekemans

___
Talk-ca mailing list
Talk-ca@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-09-25 Thread Sam Vekemans
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  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
> > 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  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@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-09-25 Thread Sam Dyck
Hi

Thanks

I'll break it down


   1. Obtain the NRN data files from Geobase as a shapefile (SHP). *Quite
   easy to do, just a simple download*
   2. Generate a shapefile for the NRN data in an area (converted to WGS84),
   and a second shapefile based on existing OSM roads in the area. Ensure that
   both the OSM and NRN data are using the same geographic coordinate system.
   This can be done in a number of ways (See below). *Have no idea how to
   begin doing this*
   3. Import the shapefiles into
RoadMatcherand
run the AutoMatch routine using the NRN as the base data set.
   * I can download both programs but can't get them to work together. I
   also don't understand the purpose postgresql, but can and have installed it.
   *
   4. Export the results *Haven't gotten to this point.*
   5. Run the geobase2osm
script against the NRN
GML file for the area passing the RoadMatcher results
   with the -e flag. This will generate a .osm file with the complete NRN road
   network in the area and a second .standalone.osm file that only contains
   roads that RoadMatcher has determined are not already in OSM* It's a
   python script, I can proabably run that easily*
   6. Import the resulitng .standalone.osm file using
bulk_upload.py

Thanks, but again, I don't want to inconvenience everyone (I understand
saying this may make it more tempting to help me, so please don't think you
have to)

Sam

On Fri, Sep 25, 2009 at 10:17 PM, Steve Singer wrote:

> On Fri, 25 Sep 2009, Sam Dyck wrote:
>
>
> Can you give me an idea as to which parts/steps of the instructions at
> http://wiki.openstreetmap.org/wiki/Geobase_NRN_-_OSM_Map_Feature your
> having problems with? I'm can try to clarify/provide more info on any steps
> that are unclear.
>
> Basically you need to
>
> 1. Load the NRN data into postgis (using shp2pgsql which is included with
> postgis)
> 2. Load the OSM data into postgis with osm2pgsql
> 3. Generate shapefiles with the NRN and OSM data using stored procedures
> similar to those posted on the wiki page
>
> Then you need to import the files into OpenJump/road matcher (The wiki has
> some instructions on doing this, and I can try to answer if anything isn't
> that clear).
>
> Steve
>
>
>  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.
>>
>>
>
___
Talk-ca mailing list
Talk-ca@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-09-25 Thread Adam Dunn
I know the installation of JUMP on Linux is a little ambiguous, as the
documentation for jump says that you just unzip and run. Reading through the
RoadMatcher-unix-2.sh startup script, I can see that it is not quite this
simple (or there is some installation documentation that I missed). When you
download the zip file for Roadmatcher, you can put that anywhere you like (I
have it in my home directory). Then you have to copy the lib directory over
to /usr/local/jump/ (meaning you will have to make an empty directory called
jump, and then copy the lib directory into it. I'm assuming you know the
basics of Debian, like how to run as root so that you can access /usr/local
and how to move files around with root privileges. Finally, for some reason,
the actual files for Roadmatcher are stored in lib/ext/roadmatcher, but they
need to be in lib/ext/ instead. So you will have:
Before:
/usr/local/jump/lib/
 |->bsh-2.0b1.jar
 |->Jama-1.0.1.jar
 |->etc
 |->/ext
|->/roadmatcher
   |->jcommon-0.8.4.jar
   |->jfreechart-0.9.9.jar
   |->roadmatcher-1.4.jar

After:
/usr/local/jump/lib/
 |->bsh-2.0b1.jar
 |->Jama-1.0.1.jar
 |->etc
 |->/ext
|->jcommon-0.8.4.jar
|->jfreechart-0.9.9.jar
|->roadmatcher-1.4.jar
You can then have the rest of the roadmatcher zip file anywhere you please,
make bin/RoadMatcher-unix-2.sh set to be executable, and then all should
run. Alternatively, you can edit the startup script to use directories that
you choose (by changing the values for JUMPHOME= and for JUMP_PLUGIN_DIR=).

This should get jump+roadmatcher working for you.

I'm writing this all from memory, but I did this on an Ubuntu machine, and
can hopefully answer other questions you may have.

Adam

On Fri, Sep 25, 2009 at 6:19 PM, Sam Dyck  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.
>
> ___
> Talk-ca mailing list
> Talk-ca@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk-ca
>
>
___
Talk-ca mailing list
Talk-ca@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-09-25 Thread Sam Dyck
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  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  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
>
___
Talk-ca mailing list
Talk-ca@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-09-25 Thread Steve Singer
On Fri, 25 Sep 2009, Sam Dyck wrote:


Can you give me an idea as to which parts/steps of the instructions at
http://wiki.openstreetmap.org/wiki/Geobase_NRN_-_OSM_Map_Feature your having 
problems with? I'm can try to clarify/provide more info on any steps that 
are unclear.

Basically you need to

1. Load the NRN data into postgis (using shp2pgsql which is included with 
postgis)
2. Load the OSM data into postgis with osm2pgsql
3. Generate shapefiles with the NRN and OSM data using stored procedures 
similar to those posted on the wiki page

Then you need to import the files into OpenJump/road matcher (The wiki has 
some instructions on doing this, and I can try to answer if anything isn't 
that clear).

Steve

> 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.
>


___
Talk-ca mailing list
Talk-ca@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca


Re: [Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-09-25 Thread Sam Vekemans
(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  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

___
Talk-ca mailing list
Talk-ca@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca


[Talk-ca] Setting up RoadMatcher and creating shapefiles

2009-09-25 Thread Sam Dyck
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.
___
Talk-ca mailing list
Talk-ca@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-ca