
Hi Ben, in your rules you refer to name and alt_name, these are not set for most buildings. I think you have to refer to e.g. mkgmap:admin_level6 Gerd Ben Konrath wrote
Hi everybody,
Thanks for helping out with this issue. @Brian you can also just send me a message direct about issues related to the maps I make. I have some changes in the style file so the people on this list won't always be able to help out. But now that we're talking on this list, I hope other don't mind if we continue.
I do actually have some changes for the US and NYC that I have been meaning to contribute to mkgmap. Now's probably a good time to see if this it makes sense.
Here are my rules for the US:
# United States mkgmap:country=USA & mkgmap:region!=* & mkgmap:admin_level4=* { set mkgmap:region='${mkgmap:admin_level4}' } # New York City has different admin levels than the rest of the US. # https://wiki.openstreetmap.org/wiki/United_States_admin_level mkgmap:country=USA & mkgmap:city!=* & mkgmap:admin_level6=* & (name='Manhattan' | alt_name='Manhattan') { set mkgmap:city='New York' } mkgmap:country=USA & mkgmap:city!=* & mkgmap:admin_level6=* & (name='The Bronx' | alt_name='The Bronx') { set mkgmap:city='The Bronx' } mkgmap:country=USA & mkgmap:city!=* & mkgmap:admin_level6=* & (name='Brooklyn'| alt_name='Brooklyn') { set mkgmap:city='Brooklyn' } mkgmap:country=USA & mkgmap:city!=* & mkgmap:admin_level6=* & (name='Queens' | alt_name='Queens') { set mkgmap:city='Queens' } mkgmap:country=USA & mkgmap:city!=* & mkgmap:admin_level6=* & (name='Staten Island' | alt_name='Staten Island') { set mkgmap:city='Staten Island' } mkgmap:country=USA & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8|subst:City of }' }
I just tried to find 311 W 51 St. in New York but it didn't work as Brian pointed out. Can anybody see an obvious problem with my rules? Do I need to compile the bounds myself for this rule to work?
Once I get this working properly, I can make a proper patch.
Thanks, Ben
On Mon, Oct 20, 2014 at 2:37 PM, Greg Troxel <
gdt@.bbn
> wrote:
Gerd Petermann <
gpetermann_muenchen@
> writes:
[1] This is because we use so called "precompiled boundaries", and changing them like that would require hard coded rules in the source.
That might be the right place to fix this. Unfortunately New York really is a weird case (I don't know of any other such case in the US), but arguably it's important because a lot of people live there :-)
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
-- View this message in context: http://gis.19327.n5.nabble.com/mkgmap-in-NYC-tp5820682p5821056.html Sent from the Mkgmap Development mailing list archive at Nabble.com.