protected void addImplicitRelationInformation ( TDWay tdWay ) { if ( ! this . tagValues ) { return ; } // FEATURE Remove this to add id to all elements (increase of space around 1/8) if ( ! this . partRootRelations . containsKey ( tdWay . getId ( ) ) ) { return ; } Long rootId = this . partRootRelations . get ( tdWay . getId ( ) ) ; if ( rootId == null ) { OSMTagMapping mapping = OSMTagMapping . getInstance ( ) ; // Remove accidentally written ids in OSM for ( Short aShort : tdWay . getTags ( ) . keySet ( ) ) { if ( mapping . getWayTag ( aShort ) . getKey ( ) . equals ( "id" ) ) { tdWay . getTags ( ) . remove ( aShort ) ; break ; } } // Add id to root element (respecting tag-mapping file) OSMTag idTag = mapping . getWayTag ( "id" , String . valueOf ( tdWay . getId ( ) ) ) ; assert idTag != null ; tdWay . getTags ( ) . put ( idTag . getId ( ) , OSMUtils . getObjectFromWildcardAndValue ( idTag . getValue ( ) , String . valueOf ( tdWay . getId ( ) ) ) ) ; } else { // Add reference id to part element tdWay . setRef ( String . valueOf ( rootId ) ) ; } // #HDstoreData: Removing not possible, because HD' tiles need them multiple times (for count and processing) // partRootRelations.remove(tdWay.getId()); }
Add tags to ways which describe the geo - inheritance .