From NatanaelA at gmx.de Tue Jan 20 19:45:04 2009 From: NatanaelA at gmx.de (Natanael Arndt) Date: Wed, 21 Jan 2009 01:45:04 +0100 Subject: [Osmlib-user] Export Citynodes Message-ID: <200901210145.05007.NatanaelA@gmx.de> Hello, I've tried to export the citynodes into a shapefile with the following rules-file: setup :Shp do point :staedte do string :type, 8 string :id, 20 string :name, 300 end end nodes do if place == 'city' || place == 'town' || place == 'village' :staedte << {:id => id, :name => name[0,300], :type => place} end end I ran this on the Saarland-File [http://download.geofabrik.de/osm/europe/germany/saarland.osm.bz2], but when I opened the .shp in openjump I got the error: "Keine Beschreibung vorhanden (EOF Exception)" How else can I check the shapefile, or is there something with my rules-file wrong? be blessed Natanael -- Web: http://natanael.comiles.eu E-Mail: NatanaelA at gmx.de Jabber/XMPP: natanael at comiles.eu ICQ: 168210209 Skype: white_gecko From jochen at remote.org Wed Jan 21 03:58:48 2009 From: jochen at remote.org (Jochen Topf) Date: Wed, 21 Jan 2009 09:58:48 +0100 Subject: [Osmlib-user] Export Citynodes In-Reply-To: <200901210145.05007.NatanaelA@gmx.de> References: <200901210145.05007.NatanaelA@gmx.de> Message-ID: <20090121085848.GA8597@eldorado.topf.org> On Wed, Jan 21, 2009 at 01:45:04AM +0100, Natanael Arndt wrote: > I've tried to export the citynodes into a shapefile with the following > rules-file: > > setup :Shp do > point :staedte do > string :type, 8 > string :id, 20 > string :name, 300 > end > end > > nodes do > if place == 'city' || place == 'town' || place == 'village' > :staedte << {:id => id, :name => name[0,300], :type => place} > end > end > > I ran this on the Saarland-File > [http://download.geofabrik.de/osm/europe/germany/saarland.osm.bz2], but when > I opened the .shp in openjump I got the error: > "Keine Beschreibung vorhanden (EOF Exception)" > How else can I check the shapefile, or is there something with my rules-file > wrong? Can't see any obvious errors. Try to check the shapefile with ogrinfo. Jochen -- Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298