From Kai-Behncke at gmx.de Wed Jun 11 05:59:15 2008 From: Kai-Behncke at gmx.de (Kai Behncke) Date: Wed, 11 Jun 2008 11:59:15 +0200 Subject: [Osmlib-user] How to create POINT-Shapes? Message-ID: <20080611095915.282090@gmx.net> Dear list, I try to use osmlib-export to get POINT and POLYGON-Shapes with the Open Street Map-Data. I need to admit that I never worked with ruby-scripts....... I have downloaded osmlib-export 0.1.2 and I work on Windows XP. I have my little osm file "krimpenfort.osm" and would like to get all the POINT-objects, but how do I start osmlib-export-0.1.2.gem?? Can anyone give me please a short introduction or an example how to do so? I knwo the page at:http://osmlib.rubyforge.org/osmlib-export/rdoc/files/doc/format-shp.html but I don`t know in generally how to start the ruby-File. Thank you very much, Kai -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf at gmx From jochen at remote.org Fri Jun 13 02:26:32 2008 From: jochen at remote.org (Jochen Topf) Date: Fri, 13 Jun 2008 08:26:32 +0200 Subject: [Osmlib-user] How to create POINT-Shapes? In-Reply-To: <20080611095915.282090@gmx.net> References: <20080611095915.282090@gmx.net> Message-ID: <20080613062632.GA10001@eldorado.topf.org> On Wed, Jun 11, 2008 at 11:59:15AM +0200, Kai Behncke wrote: > I try to use osmlib-export to get POINT and POLYGON-Shapes with the Open Street Map-Data. > I need to admit that I never worked with ruby-scripts....... > > I have downloaded osmlib-export 0.1.2 and I work on Windows XP. > > I have my little osm file "krimpenfort.osm" and would like to get all the POINT-objects, but how do I start osmlib-export-0.1.2.gem?? > Can anyone give me please a short introduction or an example how to do so? > > I knwo the page at:http://osmlib.rubyforge.org/osmlib-export/rdoc/files/doc/format-shp.html > > but I don`t know in generally how to start the ruby-File. I don't work on Windows so can't help much. See www.ruby-lang.org for info about Ruby and http://www.rubygems.org/ for info about gems, which is the Ruby packaging mechanism. In short you need to install Ruby and Rubygems, download the .gem and install it. But you'll need more than just one gem, there are some dependencies. Jochen -- Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298 From Kai-Behncke at gmx.de Thu Jun 19 06:28:56 2008 From: Kai-Behncke at gmx.de (Kai Behncke) Date: Thu, 19 Jun 2008 12:28:56 +0200 Subject: [Osmlib-user] How to create POINT-Shapes? In-Reply-To: <20080613062632.GA10001@eldorado.topf.org> References: <20080611095915.282090@gmx.net> <20080613062632.GA10001@eldorado.topf.org> Message-ID: <20080619102856.152660@gmx.net> Dear Jochen, thank you for answering. I try to get to run it on Debian Etch. The following steps I did: apt-get install ruby1.8 irb1.8 rdoc1.8 apt-get install rubygems apt-get install libxml-ruby mkdir home/ruby_shape_bau cd /home/ruby_shape_bau wget http://rubyforge.org/frs/download.php/32557/osmlib-base-0.1.2.gem wget http://rubyforge.org/frs/download.php/32558/osmlib-export-0.1.2.gem gem install osmlib-base-0.1.2.gem gem install osmlib-export Then I set a symbolic link: ln -s /var/lib/gems/1.8/bin/osmexport created a rulefile, downloaded osm-data and tried: ./osmexport regel.oxr krimpenfort.osm output.osm But then I get that message: /usr/lib/ruby/1.8/xml/libxml.rb:6: warning: method redefined; discarding old empty? /usr/lib/ruby/1.8/xml/libxml.rb:10: warning: method redefined; discarding old first /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- geo_ruby (LoadError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require' from /var/lib/gems/1.8/gems/osmlib-export-0.1.2/bin/osmexport:18 from ./osmexport:18:in `load' from ./osmexport:18 ...what might cause that error? Thank you very much, Kai -------- Original-Nachricht -------- > Datum: Fri, 13 Jun 2008 08:26:32 +0200 > Von: Jochen Topf > An: Kai Behncke > CC: osmlib-user at rubyforge.org > Betreff: Re: [Osmlib-user] How to create POINT-Shapes? > On Wed, Jun 11, 2008 at 11:59:15AM +0200, Kai Behncke wrote: > > I try to use osmlib-export to get POINT and POLYGON-Shapes with the Open > Street Map-Data. > > I need to admit that I never worked with ruby-scripts....... > > > > I have downloaded osmlib-export 0.1.2 and I work on Windows XP. > > > > I have my little osm file "krimpenfort.osm" and would like to get all > the POINT-objects, but how do I start osmlib-export-0.1.2.gem?? > > Can anyone give me please a short introduction or an example how to do > so? > > > > I knwo the page > at:http://osmlib.rubyforge.org/osmlib-export/rdoc/files/doc/format-shp.html > > > > but I don`t know in generally how to start the ruby-File. > > I don't work on Windows so can't help much. See www.ruby-lang.org for > info about Ruby and http://www.rubygems.org/ for info about gems, which > is the Ruby packaging mechanism. > > In short you need to install Ruby and Rubygems, download the .gem and > install it. But you'll need more than just one gem, there are some > dependencies. > > Jochen > -- > Jochen Topf jochen at remote.org http://www.remote.org/jochen/ > +49-721-388298 -- Psssst! Schon vom neuen GMX MultiMessenger geh?rt? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger From jochen at remote.org Tue Jun 24 06:37:49 2008 From: jochen at remote.org (Jochen Topf) Date: Tue, 24 Jun 2008 12:37:49 +0200 Subject: [Osmlib-user] New version 0.1.3 Message-ID: <20080624103749.GA29771@eldorado.topf.org> I have just released version 0.1.3 of the OSMlib library. The most important change is that the XML parsing code has been restructured to support multiple parsers. Many people had problems with the Libxml C-based parser. So the new code uses the Ruby standard REXML parser by default. The Libxml or Expat parsers (which should be faster) can be used by changing an environment variable. Jochen -- Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298 From jochen at remote.org Tue Jun 24 07:11:29 2008 From: jochen at remote.org (Jochen Topf) Date: Tue, 24 Jun 2008 13:11:29 +0200 Subject: [Osmlib-user] How to create POINT-Shapes? In-Reply-To: <20080619102856.152660@gmx.net> References: <20080611095915.282090@gmx.net> <20080613062632.GA10001@eldorado.topf.org> <20080619102856.152660@gmx.net> Message-ID: <20080624111129.GC30376@eldorado.topf.org> Hi! Libxml is hard to get working right. I also had many problems with it. Please try the just released OSMLib version 0.1.3 which works with REXML by default, which will be slower but at least work. Jochen On Thu, Jun 19, 2008 at 12:28:56PM +0200, Kai Behncke wrote: > Date: Thu, 19 Jun 2008 12:28:56 +0200 > From: Kai Behncke > Subject: Re: [Osmlib-user] How to create POINT-Shapes? > To: Jochen Topf , osmlib-user at rubyforge.org > > Dear Jochen, thank you for answering. > > I try to get to run it on Debian Etch. > The following steps I did: > > > apt-get install ruby1.8 irb1.8 rdoc1.8 > apt-get install rubygems > apt-get install libxml-ruby > > mkdir home/ruby_shape_bau > cd /home/ruby_shape_bau > > wget http://rubyforge.org/frs/download.php/32557/osmlib-base-0.1.2.gem > > wget http://rubyforge.org/frs/download.php/32558/osmlib-export-0.1.2.gem > > > gem install osmlib-base-0.1.2.gem > gem install osmlib-export > > Then I set a symbolic link: > ln -s /var/lib/gems/1.8/bin/osmexport > > created a rulefile, downloaded osm-data and tried: > > ./osmexport regel.oxr krimpenfort.osm output.osm > > But then I get that message: > > /usr/lib/ruby/1.8/xml/libxml.rb:6: warning: method redefined; discarding old empty? > /usr/lib/ruby/1.8/xml/libxml.rb:10: warning: method redefined; discarding old first > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- geo_ruby (LoadError) > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require' > from /var/lib/gems/1.8/gems/osmlib-export-0.1.2/bin/osmexport:18 > from ./osmexport:18:in `load' > from ./osmexport:18 > > > ...what might cause that error? > > Thank you very much, Kai > > > > > -------- Original-Nachricht -------- > > Datum: Fri, 13 Jun 2008 08:26:32 +0200 > > Von: Jochen Topf > > An: Kai Behncke > > CC: osmlib-user at rubyforge.org > > Betreff: Re: [Osmlib-user] How to create POINT-Shapes? > > > On Wed, Jun 11, 2008 at 11:59:15AM +0200, Kai Behncke wrote: > > > I try to use osmlib-export to get POINT and POLYGON-Shapes with the Open > > Street Map-Data. > > > I need to admit that I never worked with ruby-scripts....... > > > > > > I have downloaded osmlib-export 0.1.2 and I work on Windows XP. > > > > > > I have my little osm file "krimpenfort.osm" and would like to get all > > the POINT-objects, but how do I start osmlib-export-0.1.2.gem?? > > > Can anyone give me please a short introduction or an example how to do > > so? > > > > > > I knwo the page > > at:http://osmlib.rubyforge.org/osmlib-export/rdoc/files/doc/format-shp.html > > > > > > but I don`t know in generally how to start the ruby-File. > > > > I don't work on Windows so can't help much. See www.ruby-lang.org for > > info about Ruby and http://www.rubygems.org/ for info about gems, which > > is the Ruby packaging mechanism. > > > > In short you need to install Ruby and Rubygems, download the .gem and > > install it. But you'll need more than just one gem, there are some > > dependencies. > > > > Jochen > > -- > > Jochen Topf jochen at remote.org http://www.remote.org/jochen/ > > +49-721-388298 > > -- > Psssst! Schon vom neuen GMX MultiMessenger geh?rt? > Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger > -- Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298