
Great "patch". Twould be nice to have it commited. Is there interest for a patch file? I could offer one (I'ld just have to take out some of my own patches beforehand). On 19.02.2011 18:30, Torsten Leistikow wrote:
Moin,
I have taken a look at the add-pois-to-areas function: The function is implemented in MAPMaker.java (makeAreaPOIs), which means, it is active, AFTER the processing of the osm-data. So without a greater change this function can not be modified to be controlled by action rules during the style controlled osm-data processing.
So I tried a limited modification, its not perfekt but for me it is an improvement over the actual implementation. This does not allow to create POIs for areas without the creation of a polygon (as a workaround a transparent polygon can be created). But the modification allows to control the POI generation for each polygon type on its own, i.e. via the style file single polygon types can be selected for the POI generation.
My modification disables the add-pois-to-areas command line option, instead the POI generation is now triggered by a new command "add_poi" in the element type definition in the polygon style, e.g.: amenity=bank [0x2f06 level 3 add_poi]
Since I am not really familiar with my java environment, I can not provide my modification as a patch, instead you will find the modified files attached to this mail. I have marked my changes with "//TTT-start" and "//TTT-end".
Gruss Torsten
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev