[Tilesathome] Maplint
Ed Loach
ed at loach.me.uk
Fri Sep 26 16:17:39 BST 2008
OK, ignore all I wrote last time. I've had a quick look at
not-in-map_features.pl
Firstly the instructions are wrong, as they talk about
mapfeatures.pl and .xml rather than not-in-map_features. I caught on
to that relatively quickly...
Next, while it has some code in the .pl script to cope with "User
defined" this doesn't generate particularly elegant XML where we
have, for example "construction=*" or more commonly where "Other
Values" has been used in the values column. I think that this bit
could be amended to improve things:
if( $value =~ /user defined|defined by editor/i ){
$value = 'userdef';
}
Also, I notice that while amenity=grave_yard looks like it used to
be in MapFeatures both both node and area, it is now only for node
(with a note in the wiki that landuse=cemetery should be used for
larger areas), and similarly landuse=farm and landuse=cemetery are
no longer valid in the note checks.
Anyway, generally I think it looks OK, so the next steps in the
instructions state:
# If it looks fine, then do:
# $ mv tests/strict/mapfeatures.xml.new tests/strict/mapfeatures.xml
# And build maplint as usual
Even allowing for the invalid filenames, I don’t know how to "build
maplint as usual". Any pointers?
Thanks
Ed
More information about the Tilesathome
mailing list