@Point(id = "1", coordinates = @Loc(value = ONE)), @Point(id = "2", coordinates = @Loc(value = TWO)), @Point(id = "100", coordinates = @Loc(value = ELEVEN)) @Point(id = "1", coordinates = @Loc(value = ONE)), @Point(id = "2", coordinates = @Loc(value = TWO)) @Point(id = "7", coordinates = @Loc(value = SEVEN)), @Point(id = "8", coordinates = @Loc(value = EIGHT)) @Point(id = "7", coordinates = @Loc(value = NINE)), @Point(id = "8", coordinates = @Loc(value = TEN))
private void handle(final PackedAtlasBuilder builder, final Point... points) { final FeatureIDGenerator pointIDGenerator = new FeatureIDGenerator(); for (final Point point : points) { builder.addPoint(pointIDGenerator.nextId(point.id()), convertLoc(point.coordinates()), parseTags(point.tags())); } }
@Point(id = "1", coordinates = @Loc(value = ONE)), @Point(id = "2", coordinates = @Loc(value = TWO)), @Point(id = "3", coordinates = @Loc(value = THREE)), @Point(id = "4", coordinates = @Loc(value = FOUR)), @Point(id = "5", coordinates = @Loc(value = FIVE)), @Point(id = "6", coordinates = @Loc(value = SIX)), @Point(id = "7", coordinates = @Loc(value = SEVEN)), @Point(id = "8", coordinates = @Loc(value = EIGHT)) @Point(id = "1", coordinates = @Loc(value = ONE)), @Point(id = "2", coordinates = @Loc(value = TWO)) @Point(id = "3", coordinates = @Loc(value = THREE)), @Point(id = "4", coordinates = @Loc(value = FOUR)) @Point(id = "5", coordinates = @Loc(value = FIVE)), @Point(id = "6", coordinates = @Loc(value = SIX)) @Point(id = "7", coordinates = @Loc(value = SEVEN)), @Point(id = "8", coordinates = @Loc(value = EIGHT))
points = { @Point(coordinates = @Loc(value = TEST_1), tags = { "iso_country_code=USA", "name=tEst TeSt" }) }) private Atlas invalidNamePointAtlas; points = { @Point(coordinates = @Loc(value = TEST_1), tags = { "iso_country_code=USA", "name=tEst" }) }) private Atlas invalidNamePointOneWordAtlas; points = { @Point(coordinates = @Loc(value = TEST_1), tags = { "iso_country_code=USA", "name=Test-Test" }) }) private Atlas validNamePointHyphenAtlas; points = { @Point(coordinates = @Loc(value = TEST_1), tags = { "iso_country_code=USA", "name=2test Test" }) }) private Atlas validNamePointNumberAtlas; points = { @Point(coordinates = @Loc(value = TEST_1), tags = { "iso_country_code=USA", "name=Test-TesT" }) }) private Atlas invalidNamePointHyphenAtlas; points = { @Point(coordinates = @Loc(value = TEST_1), tags = { "iso_country_code=USA", "name=McMan" }) }) private Atlas validNamePointAffixAtlas; points = { @Point(coordinates = @Loc(value = TEST_1), tags = { "iso_country_code=USA", "name=McMaN" }) }) private Atlas invalidNamePointAffixAtlas; points = { @Point(coordinates = @Loc(value = TEST_1), tags = { "iso_country_code=USA",
points = { @Point(id = "108752000000", coordinates = @Loc(value = LOCATION_1)), @Point(id = "108754000000", coordinates = @Loc(value = LOCATION_2)), @Point(id = "108756000000", coordinates = @Loc(value = LOCATION_3)), @Point(id = "108758000000", coordinates = @Loc(value = LOCATION_4)) }, points = { @Point(id = "108752000000", coordinates = @Loc(value = LOCATION_1)), @Point(id = "108754000000", coordinates = @Loc(value = LOCATION_5)), @Point(id = "108756000000", coordinates = @Loc(value = LOCATION_6)), @Point(id = "108758000000", coordinates = @Loc(value = LOCATION_2)) }, points = { @Point(id = "108752000000", coordinates = @Loc(value = LOCATION_1)), @Point(id = "108754000000", coordinates = @Loc(value = LOCATION_5)), @Point(id = "108756000000", coordinates = @Loc(value = LOCATION_6)), @Point(id = "108758000000", coordinates = @Loc(value = LOCATION_2)) }, points = { @Point(id = "108752000000", coordinates = @Loc(value = LOCATION_1)), @Point(id = "108754000000", coordinates = @Loc(value = LOCATION_2)), @Point(id = "108756000000", coordinates = @Loc(value = LOCATION_3)), @Point(id = "108758000000", coordinates = @Loc(value = LOCATION_4)) }, points = { @Point(id = "108752000000", coordinates = @Loc(value = LOCATION_1)), @Point(id = "108754000000", coordinates = @Loc(value = LOCATION_5)), @Point(id = "108756000000", coordinates = @Loc(value = LOCATION_6)), @Point(id = "108758000000", coordinates = @Loc(value = LOCATION_2)), @Point(id = "108759000000", coordinates = @Loc(value = LOCATION_4)), @Point(id = "108751000000", coordinates = @Loc(value = LOCATION_3)), @Point(id = "108753000000", coordinates = @Loc(value = LOCATION_7)), @Point(id = "108755000000", coordinates = @Loc(value = LOCATION_8)) },
@Node(coordinates = @Loc(value = TEST_101), tags = { "amenity=fuel" }) }, points = { @Point(coordinates = @Loc(value = TEST_101), tags = { "amenity=fuel" }) },
points = { @Point(id = "214776000000", coordinates = @Loc(value = LOCATION_30)), @Point(id = "214775000000", coordinates = @Loc(value = LOCATION_31)), @Point(id = "214774000000", coordinates = @Loc(value = LOCATION_32)), @Point(id = "214773000000", coordinates = @Loc(value = LOCATION_33)), @Point(id = "214772000000", coordinates = @Loc(value = LOCATION_34)), @Point(id = "214771000000", coordinates = @Loc(value = LOCATION_35)), @Point(id = "214770000000", coordinates = @Loc(value = LOCATION_36)), @Point(id = "214769000000", coordinates = @Loc(value = LOCATION_37)), @Point(id = "214768000000", coordinates = @Loc(value = LOCATION_38)) }, points = { @Point(id = "214602000000", coordinates = @Loc(value = LOCATION_1)), @Point(id = "214600000000", coordinates = @Loc(value = LOCATION_2)), @Point(id = "214598000000", coordinates = @Loc(value = LOCATION_3)), @Point(id = "214597000000", coordinates = @Loc(value = LOCATION_4)), @Point(id = "214593000000", coordinates = @Loc(value = LOCATION_5)), @Point(id = "214591000000", coordinates = @Loc(value = LOCATION_6)), @Point(id = "214589000000", coordinates = @Loc(value = LOCATION_7)), @Point(id = "214588000000", coordinates = @Loc(value = LOCATION_8)), @Point(id = "214584000000", coordinates = @Loc(value = LOCATION_9)), @Point(id = "214582000000", coordinates = @Loc(value = LOCATION_10)), @Point(id = "214580000000", coordinates = @Loc(value = LOCATION_11)), @Point(id = "214579000000", coordinates = @Loc(value = LOCATION_12)) }, points = { @Point(id = "106032000000", coordinates = @Loc(value = LOCATION_21)), @Point(id = "106031000000", coordinates = @Loc(value = LOCATION_22)), @Point(id = "106030000000", coordinates = @Loc(value = LOCATION_23)), @Point(id = "106029000000", coordinates = @Loc(value = LOCATION_24)), @Point(id = "106028000000", coordinates = @Loc(value = LOCATION_25)), @Point(id = "106027000000", coordinates = @Loc(value = LOCATION_26)),
@Node(id = "2", coordinates = @Loc(value = TEST_2)), @Node(id = "3", coordinates = @Loc(value = TEST_3)) }, points = { @Point(id = "24", coordinates = @Loc(value = TEST_4), tags = { "addr:housenumber=21", "name=John" }) }, @Node(id = "2", coordinates = @Loc(value = TEST_2)), @Node(id = "3", coordinates = @Loc(value = TEST_3)) }, points = { @Point(id = "24", coordinates = @Loc(value = TEST_4), tags = { "addr:housenumber=21" }) }, @Node(id = "2", coordinates = @Loc(value = TEST_2)), @Node(id = "3", coordinates = @Loc(value = TEST_3)) }, points = { @Point(id = "24", coordinates = @Loc(value = TEST_4), tags = { "addr:housenumber=21" }) }, @TestAtlas(points = { @Point(coordinates = @Loc(value = TEST_1), tags = { "addr:housenumber=20", "addr:street=Smith" }) }) private Atlas pointWithStreetNameStreetNumber; @Point(coordinates = @Loc(value = TEST_1), tags = { "addr:housenumber=20" }) }) private Atlas pointWithStreetNameNoStreetNumberNoCandidates; @Point(coordinates = @Loc(value = TEST_1), tags = { "addr:housenumber=20" }), @Point(coordinates = @Loc(value = TEST_2), tags = { "addr:housenumber=25", "addr:street=Smith" }) }) private Atlas pointWithStreetNameNoStreetNumberPointCandidatesNoDuplicates; @Point(coordinates = @Loc(value = TEST_1), tags = { "addr:housenumber=20" }),
@Point(id = "0", coordinates = @Loc(value = ONE), tags = { "addr:street=coco", "addr:housenumber=25" }), @Point(id = "1", coordinates = @Loc(value = TWO), tags = { "fixme=wrong name" }), @Point(id = "2", coordinates = @Loc(value = THREE), tags = { "landuse=basin" }), @Point(id = "3", coordinates = @Loc(value = FOUR), tags = { "amenity=school" }) @Point(id = "0", coordinates = @Loc(value = ONE), tags = { "addr:street=coco", "addr:housenumber=25" }), @Point(id = "1", coordinates = @Loc(value = TWO), tags = { "fixme=wrong name" }), @Point(id = "2", coordinates = @Loc(value = THREE), tags = { "landuse=basin" }), @Point(id = "3", coordinates = @Loc(value = FOUR), tags = { "amenity=school" })
@TestAtlas(points = { @Point(id = "39008", coordinates = @Loc(value = LOCATION_TWENTY)), @Point(id = "39009", coordinates = @Loc(value = LOCATION_THREE)), @Point(id = "39011", coordinates = @Loc(value = LOCATION_FOUR)), @Point(id = "39013", coordinates = @Loc(value = LOCATION_FIVE)), @Point(id = "39015", coordinates = @Loc(value = LOCATION_SIX)), @Point(id = "38985", coordinates = @Loc(value = LOCATION_ONE)), @Point(id = "39019", coordinates = @Loc(value = LOCATION_EIGHT)), @Point(id = "38988", coordinates = @Loc(value = LOCATION_TWO)), @Point(id = "39021", coordinates = @Loc(value = LOCATION_NINE)), @Point(id = "39023", coordinates = @Loc(value = LOCATION_TEN)), @Point(id = "38992", coordinates = @Loc(value = LOCATION_THIRTEEN)), @Point(id = "39025", coordinates = @Loc(value = LOCATION_ELEVEN)), @Point(id = "38994", coordinates = @Loc(value = LOCATION_FOURTEEN)), @Point(id = "39027", coordinates = @Loc(value = LOCATION_TWELVE)), @Point(id = "38996", coordinates = @Loc(value = LOCATION_FIFTEEN)), @Point(id = "38998", coordinates = @Loc(value = LOCATION_SIXTEEN)), @Point(id = "39017", coordinates = @Loc(value = LOCATION_SEVEN)), @Point(id = "39000", coordinates = @Loc(value = LOCATION_SEVENTEEN)), @Point(id = "39002", coordinates = @Loc(value = LOCATION_EIGHTEEN)), @Point(id = "39004", coordinates = @Loc(value = LOCATION_NINETEEN)) }, areas = { @Area(id = "39010", coordinates = { @Loc(value = LOCATION_TWENTY), @Loc(value = LOCATION_THREE), @Loc(value = LOCATION_FOUR), @TestAtlas(points = { @Point(id = "39008", coordinates = @Loc(value = LOCATION_TWENTY)), @Point(id = "39009", coordinates = @Loc(value = LOCATION_THREE)), @Point(id = "39011", coordinates = @Loc(value = LOCATION_FOUR)), @Point(id = "39013", coordinates = @Loc(value = LOCATION_FIVE)), @Point(id = "39015", coordinates = @Loc(value = LOCATION_SIX)), @Point(id = "38985", coordinates = @Loc(value = LOCATION_ONE)),
points = { @Point(id = "1", coordinates = @Loc(value = CIV_TOP_RIGHT)), @Point(id = "2", coordinates = @Loc(value = CIV_BOTTOM_RIGHT)), @Point(id = "3", coordinates = @Loc(value = CIV_BOTTOM_LEFT)), @Point(id = "4", coordinates = @Loc(value = CIV_TOP_LEFT)) }, points = { @Point(id = "1", coordinates = @Loc(value = AREA_CIV_SIDE_1)), @Point(id = "2", coordinates = @Loc(value = AREA_CIV_SIDE_2)), @Point(id = "3", coordinates = @Loc(value = AREA_LBR_SIDE_3)), @Point(id = "4", coordinates = @Loc(value = AREA_LBR_SIDE_4)) }, points = { @Point(id = "1", coordinates = @Loc(value = OUTSIDE_ALL_COUNTRIES_1)), @Point(id = "2", coordinates = @Loc(value = OUTSIDE_ALL_COUNTRIES_2)) }, points = { @Point(id = "1", coordinates = @Loc(value = IVORY_COAST_END)), @Point(id = "2", coordinates = @Loc(value = ON_LIBERIA_AND_IVORY_COAST_BORDER)) }, points = { @Point(id = "1", coordinates = @Loc(value = IVORY_COAST_1)), @Point(id = "2", coordinates = @Loc(value = LIBERIA_1)), @Point(id = "3", coordinates = @Loc(value = IVORY_COAST_2)), @Point(id = "4", coordinates = @Loc(value = IVORY_COAST_3)), @Point(id = "5", coordinates = @Loc(value = LIBERIA_2)) }, points = { @Point(id = "1", coordinates = @Loc(value = LIBERIA_END)), @Point(id = "2", coordinates = @Loc(value = IVORY_COAST_END)) }, points = { @Point(id = "1", coordinates = @Loc(value = IVORY_COAST_3)), @Point(id = "2", coordinates = @Loc(value = IVORY_COAST_2)) }, points = { @Point(id = "1", coordinates = @Loc(value = LIBERIA_END)),
@Point(id = "0", coordinates = @Loc(value = ONE), tags = { "addr:street=coco", "addr:housenumber=25" }), @Point(id = "1", coordinates = @Loc(value = TWO), tags = { "fixme=wrong name" }), @Point(id = "2", coordinates = @Loc(value = THREE), tags = { "landuse=basin" }), @Point(id = "3", coordinates = @Loc(value = FOUR), tags = { "amenity=school" })
@Point(id = "0", coordinates = @Loc(value = ONE), tags = { "addr:street=coco", "addr:housenumber=25" }), @Point(id = "1", coordinates = @Loc(value = ONE), tags = { "fixme=wrong name" }), @Point(id = "2", coordinates = @Loc(value = ONE), tags = { "landuse=basin" }), @Point(id = "3", coordinates = @Loc(value = ONE), tags = { "amenity=school" })
@Loc(value = POINT_2_LOCATION) }) }, points = { @Point(id = "33", coordinates = @Loc(value = POINT_1_LOCATION)) },