[OSM-dev] extract_polygon_0.5.pl bugs

Sascha Silbe sascha-ml-gis-osm-dev at silbe.org
Tue Oct 9 12:11:01 BST 2007


On Tue, Oct 09, 2007 at 01:45:07AM +0200, Frederik Ramm wrote:

> I think you're being a bit too harsh with the script. It does not
> contain explicit regular expressions for the tags you mention but it
> doesn't need them.
Well, it produces broken output for me:

sascha.silbe at cube:/cdtemp$ head -n 4 osm-germany-api05-070927.osm
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.5" generator="extract-polygon.pl">
   <node id="2" lat="50.1360074" lon="8.3023717" 
timestamp="2007-02-12T19:43:01+01:00">
   <node id="104936" lat="50.0411359" lon="8.5703368" 
timestamp="2007-06-11T03:32:28+02:00"/>
sascha.silbe at cube:/cdtemp$ zcat planet-api05-070927.osm.gz |head -n 8
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.5" generator="OpenStreetMap planet.rb">
   <node id="2" lat="50.1360074" lon="8.3023717" 
timestamp="2007-02-12T19:43:01+01:00">
     <tag k="name" v="Wiesbaden-Naurod" />
     <tag k="place" v="village" />
     <tag k="is_in" v="Wiesbaden,Hesse,Germany,Europe" />
   </node>
   <node id="4" lat="51.5220733" lon="-0.1458135" 
timestamp="2007-01-29T09:48:14+01:00"/>
sascha.silbe at cube:/cdtemp$ zgrep '<tag' 
osm-germany-api05-070927.osm.n.gz
sascha.silbe at cube:/cdtemp$

Neither <tag>'s nor </node> has been copied to the output file. There's 
not a single <tag> inside the node file.

>> Will try planetosm-excerpt-area.pl now.
> I think that one hasn't been made 0.5 compliant but you can of course
> do that if you prefer.
The version currently in SVN has some bits about relations, so I guess 
it has already been done. Haven't tested it yet, though, since it needs 
special OSM perl modules installed.

> I had originally thought that the polygon script could supersede that 
> one.
Supposed so, but currently it's unusable.

CU Sascha

-- 
http://sascha.silbe.org/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20071009/8960f9b8/attachment.pgp>


More information about the dev mailing list