public void indexRelations(Entity e, OsmDbAccessorContext ctx) throws SQLException {
   if (e instanceof Relation && e.getTag(OSMTagKey.ROUTE_MASTER) != null) {
     ctx.loadEntityRelation((Relation) e);
     for (Entry<Entity, String> child : ((Relation) e).getMemberEntities().entrySet()) {
       Entity entity = child.getKey();
       masterRoutes.put(entity.getId(), (Relation) e);
     }
   }
 }
 public void visitEntityMainStep(Entity e, OsmDbAccessorContext ctx) throws SQLException {
   if (e instanceof Relation && e.getTag(OSMTagKey.ROUTE) != null) {
     ctx.loadEntityRelation((Relation) e);
     TransportRoute route = indexTransportRoute((Relation) e);
     if (route != null) {
       insertTransportIntoIndex(route);
     }
   }
 }
예제 #3
0
 @Override
 public boolean findStreetNode(Entity e) {
   return addressStreetNodeLocalSet.contains(e.getId());
 }
예제 #4
0
 @Override
 public boolean findBuilding(Entity e) {
   return addressBuildingLocalSet.contains(e.getId());
 }