Skip to content

Commit 7c7917b

Browse files
Remove --add-inverse-relation-direction
contains -> contains_nonarea intersects -> intersects_nonarea
1 parent 32f9263 commit 7c7917b

File tree

10 files changed

+168
-254
lines changed

10 files changed

+168
-254
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,28 +79,28 @@ docker-dirs:
7979

8080
docker-fr: docker-dirs input/freiburg-regbez-latest.osm.pbf
8181
${DOCKER} build -t osm2ttl .
82-
${DOCKER} run --rm -v `pwd`/input/:/input/ -v `pwd`/output/:/output/ -v `pwd`/scratch/:/scratch/ -it osm2ttl /input/freiburg-regbez-latest.osm.pbf -o /output/freiburg-regbez-latest.osm.ttl -t /scratch/ --add-inverse-relation-direction
82+
${DOCKER} run --rm -v `pwd`/input/:/input/ -v `pwd`/output/:/output/ -v `pwd`/scratch/:/scratch/ -it osm2ttl /input/freiburg-regbez-latest.osm.pbf -o /output/freiburg-regbez-latest.osm.ttl -t /scratch/
8383

8484
docker-bw: docker-dirs input/baden-wuerttemberg-latest.osm.pbf
8585
${DOCKER} build -t osm2ttl .
86-
${DOCKER} run --rm -v `pwd`/input/:/input/ -v `pwd`/output/:/output/ -v `pwd`/scratch/:/scratch/ -it osm2ttl /input/baden-wuerttemberg-latest.osm.pbf -o /output/baden-wuerttemberg-latest.osm.ttl -t /scratch/ --add-inverse-relation-direction
86+
${DOCKER} run --rm -v `pwd`/input/:/input/ -v `pwd`/output/:/output/ -v `pwd`/scratch/:/scratch/ -it osm2ttl /input/baden-wuerttemberg-latest.osm.pbf -o /output/baden-wuerttemberg-latest.osm.ttl -t /scratch/
8787

8888
docker-de: docker-dirs input/germany-latest.osm.pbf
8989
${DOCKER} build -t osm2ttl .
90-
${DOCKER} run --rm -v `pwd`/input/:/input/ -v `pwd`/output/:/output/ -v `pwd`/scratch/:/scratch/ -it osm2ttl /input/germany-latest.osm.pbf -o /output/germany-latest.osm.ttl -t /scratch/ --add-inverse-relation-direction
90+
${DOCKER} run --rm -v `pwd`/input/:/input/ -v `pwd`/output/:/output/ -v `pwd`/scratch/:/scratch/ -it osm2ttl /input/germany-latest.osm.pbf -o /output/germany-latest.osm.ttl -t /scratch/
9191

9292
docker-eu: docker-dirs input/europe-latest.osm.pbf
9393
${DOCKER} build -t osm2ttl .
94-
${DOCKER} run --rm -v `pwd`/input/:/input/ -v `pwd`/output/:/output/ -v `pwd`/scratch/:/scratch/ -it osm2ttl /input/europe-latest.osm.pbf -o /output/europe-latest.osm.ttl -t /scratch/ --add-inverse-relation-direction
94+
${DOCKER} run --rm -v `pwd`/input/:/input/ -v `pwd`/output/:/output/ -v `pwd`/scratch/:/scratch/ -it osm2ttl /input/europe-latest.osm.pbf -o /output/europe-latest.osm.ttl -t /scratch/
9595

9696
docker-pl: docker-dirs input/planet-latest.osm.pbf
9797
${DOCKER} build -t osm2ttl .
98-
${DOCKER} run --rm -v `pwd`/input/:/input/ -v `pwd`/output/:/output/ -v `pwd`/scratch/:/scratch/ -it osm2ttl /input/planet-latest.osm.pbf -o /output/planet-latest.osm.ttl -t /scratch/ --add-inverse-relation-direction
98+
${DOCKER} run --rm -v `pwd`/input/:/input/ -v `pwd`/output/:/output/ -v `pwd`/scratch/:/scratch/ -it osm2ttl /input/planet-latest.osm.pbf -o /output/planet-latest.osm.ttl -t /scratch/
9999

100100
docker-fr-ratios: docker-dirs input/freiburg-regbez-latest.osm.pbf
101101
${DOCKER} build -t osm2ttl .
102-
for R in "-1" "0.001" "0.01" "0.1" "0.2" "0.25" "0.5" "0.75" "0.9" "1.0"; do ${DOCKER} run --rm -v `pwd`/input/:/input/ -v `pwd`/output/:/output/ -v `pwd`/scratch/:/scratch/ -it osm2ttl /input/freiburg-regbez-latest.osm.pbf -o /output/freiburg-regbez-latest.osm.ttl -t /scratch/ --add-inverse-relation-direction --minimal-area-envelope-ratio $$R --no-node-geometric-relations --no-way-geometric-relations; done
102+
for R in "-1" "0.001" "0.01" "0.1" "0.2" "0.25" "0.5" "0.75" "0.9" "1.0"; do ${DOCKER} run --rm -v `pwd`/input/:/input/ -v `pwd`/output/:/output/ -v `pwd`/scratch/:/scratch/ -it osm2ttl /input/freiburg-regbez-latest.osm.pbf -o /output/freiburg-regbez-latest.osm.ttl -t /scratch/ --minimal-area-envelope-ratio $$R --no-node-geometric-relations --no-way-geometric-relations; done
103103

104104
docker-bw-ratios: docker-dirs input/baden-wuerttemberg-latest.osm.pbf
105105
${DOCKER} build -t osm2ttl .
106-
for R in "-1" "0.001" "0.01" "0.1" "0.2" "0.25" "0.5" "0.75" "0.9" "1.0"; do ${DOCKER} run --rm -v `pwd`/input/:/input/ -v `pwd`/output/:/output/ -v `pwd`/scratch/:/scratch/ -it osm2ttl /input/baden-wuerttemberg-latest.osm.pbf -o /output/baden-wuerttemberg-latest.ttl -t /scratch/ --add-inverse-relation-direction --minimal-area-envelope-ratio $$R --no-node-geometric-relations --no-way-geometric-relations; done
106+
for R in "-1" "0.001" "0.01" "0.1" "0.2" "0.25" "0.5" "0.75" "0.9" "1.0"; do ${DOCKER} run --rm -v `pwd`/input/:/input/ -v `pwd`/output/:/output/ -v `pwd`/scratch/:/scratch/ -it osm2ttl /input/baden-wuerttemberg-latest.osm.pbf -o /output/baden-wuerttemberg-latest.ttl -t /scratch/ --minimal-area-envelope-ratio $$R --no-node-geometric-relations --no-way-geometric-relations; done

include/osm2ttl/config/Config.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ struct Config {
4747

4848
// Select amount to dump
4949
bool addAreaEnvelope = false;
50-
bool addInverseRelationDirection = false;
5150
bool addSortMetadata = true;
5251
bool addWayEnvelope = false;
5352
bool addWayMetadata = false;

include/osm2ttl/config/Constants.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,6 @@ const static inline std::string ADD_WAY_NODE_ORDER_OPTION_LONG =
187187
const static inline std::string ADD_WAY_NODE_ORDER_OPTION_HELP =
188188
"Add information about the node members in ways";
189189

190-
const static inline std::string ADD_INVERSE_RELATION_DIRECTION_INFO =
191-
"Adding ogc:contained_by and ogc:intersected_by";
192-
const static inline std::string ADD_INVERSE_RELATION_DIRECTION_SHORT = "";
193-
const static inline std::string ADD_INVERSE_RELATION_DIRECTION_LONG =
194-
"add-inverse-relation-direction";
195-
const static inline std::string ADD_INVERSE_RELATION_DIRECTION_HELP =
196-
"Store locations on disk - slower but reduced ram usage";
197-
198190
const static inline std::string ADMIN_RELATIONS_ONLY_INFO =
199191
"Only handling nodes and relations with \"admin-level\" tag";
200192
const static inline std::string ADMIN_RELATIONS_ONLY_OPTION_SHORT = "";

include/osm2ttl/ttl/Constants.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,10 @@ const static inline std::string NAMESPACE__XML_SCHEMA = "xsd";
4040
inline std::string IRI__GEOSPARQL__HAS_GEOMETRY;
4141
inline std::string IRI__GEOSPARQL__WKT_LITERAL;
4242

43-
inline std::string IRI__OGC_CONTAINS;
44-
inline std::string IRI__OGC_CONTAINED_BY;
43+
inline std::string IRI__OGC_CONTAINS_NONAREA;
4544
inline std::string IRI__OGC_CONTAINS_AREA;
46-
inline std::string IRI__OGC_CONTAINED_BY_AREA;
47-
inline std::string IRI__OGC_INTERSECTS;
48-
inline std::string IRI__OGC_INTERSECTED_BY;
45+
inline std::string IRI__OGC_INTERSECTS_NONAREA;
4946
inline std::string IRI__OGC_INTERSECTS_AREA;
50-
inline std::string IRI__OGC_INTERSECTED_BY_AREA;
5147

5248
inline std::string IRI__OSM_META__POS;
5349
inline std::string IRI__OSMWAY_ISCLOSED;

src/config/Config.cpp

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ std::string osm2ttl::config::Config::getInfo(std::string_view prefix) const {
108108
<< prefix << osm2ttl::config::constants::SEMICOLON_TAG_KEYS_INFO;
109109
std::vector<std::string> keys;
110110
keys.reserve(semicolonTagKeys.size());
111-
for (auto key : semicolonTagKeys) {
111+
for (const auto &key : semicolonTagKeys) {
112112
keys.push_back(key);
113113
}
114114
std::sort(keys.begin(), keys.end());
115-
for (auto key : keys) {
115+
for (const auto &key : keys) {
116116
oss << "\n" << prefix << prefix << key;
117117
}
118118
}
@@ -137,11 +137,6 @@ std::string osm2ttl::config::Config::getInfo(std::string_view prefix) const {
137137
oss << "\n"
138138
<< prefix << osm2ttl::config::constants::NO_WAY_GEOM_RELATIONS_INFO;
139139
}
140-
if (addInverseRelationDirection) {
141-
oss << "\n"
142-
<< prefix
143-
<< osm2ttl::config::constants::ADD_INVERSE_RELATION_DIRECTION_INFO;
144-
}
145140
if (simplifyGeometries > 0) {
146141
oss << "\n"
147142
<< prefix << osm2ttl::config::constants::SIMPLIFY_GEOMETRIES_INFO
@@ -274,11 +269,6 @@ void osm2ttl::config::Config::fromArgs(int argc, char** argv) {
274269
osm2ttl::config::constants::ADD_WAY_NODE_ORDER_OPTION_SHORT,
275270
osm2ttl::config::constants::ADD_WAY_NODE_ORDER_OPTION_LONG,
276271
osm2ttl::config::constants::ADD_WAY_NODE_ORDER_OPTION_HELP);
277-
auto addInverseRelationDirectionOp =
278-
op.add<popl::Switch, popl::Attribute::advanced>(
279-
osm2ttl::config::constants::ADD_INVERSE_RELATION_DIRECTION_SHORT,
280-
osm2ttl::config::constants::ADD_INVERSE_RELATION_DIRECTION_LONG,
281-
osm2ttl::config::constants::ADD_INVERSE_RELATION_DIRECTION_HELP);
282272
auto adminRelationsOnlyOp = op.add<popl::Switch>(
283273
osm2ttl::config::constants::ADMIN_RELATIONS_ONLY_OPTION_SHORT,
284274
osm2ttl::config::constants::ADMIN_RELATIONS_ONLY_OPTION_LONG,
@@ -404,7 +394,6 @@ void osm2ttl::config::Config::fromArgs(int argc, char** argv) {
404394
// Select amount to dump
405395
addAreaEnvelope = addAreaEnvelopeOp->is_set();
406396
addAreaEnvelopeRatio = addAreaEnvelopeRatioOp->is_set();
407-
addInverseRelationDirection = addInverseRelationDirectionOp->is_set();
408397
addWayEnvelope = addWayEnvelopeOp->is_set();
409398
addWayMetadata = addWayMetaDataOp->is_set();
410399
addWayNodeOrder = addWayNodeOrderOp->is_set();

src/osm/GeometryHandler.cpp

Lines changed: 44 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,10 @@ G osm2ttl::osm::GeometryHandler<W>::simplifyGeometry(const G& g) {
171171
G geom;
172172
auto perimeter_or_length =
173173
std::max(boost::geometry::perimeter(g), boost::geometry::length(g));
174-
boost::geometry::simplify(g, geom,
175-
osm2ttl::osm::constants::BASE_SIMPLIFICATION_FACTOR * perimeter_or_length *
176-
_config.simplifyGeometries);
174+
boost::geometry::simplify(
175+
g, geom,
176+
osm2ttl::osm::constants::BASE_SIMPLIFICATION_FACTOR *
177+
perimeter_or_length * _config.simplifyGeometries);
177178
if (!boost::geometry::is_valid(geom)) {
178179
return g;
179180
}
@@ -419,17 +420,13 @@ void osm2ttl::osm::GeometryHandler<W>::dumpNamedAreaRelations() {
419420
progressBar.update(entryCount);
420421
std::vector<osm2ttl::util::DirectedGraph<osm2ttl::osm::Area::id_t>::entry_t>
421422
vertices = _directedAreaGraph.getVertices();
422-
#pragma omp parallel for shared( \
423-
vertices, osm2ttl::ttl::constants::NAMESPACE__OSM_WAY, \
424-
osm2ttl::ttl::constants::NAMESPACE__OSM_RELATION, \
425-
osm2ttl::ttl::constants::IRI__OGC_CONTAINS, \
426-
osm2ttl::ttl::constants::IRI__OGC_CONTAINED_BY, \
427-
osm2ttl::ttl::constants::IRI__OGC_CONTAINS_AREA, \
428-
osm2ttl::ttl::constants::IRI__OGC_CONTAINED_BY_AREA, \
429-
osm2ttl::ttl::constants::IRI__OGC_INTERSECTS, \
430-
osm2ttl::ttl::constants::IRI__OGC_INTERSECTED_BY, \
431-
osm2ttl::ttl::constants::IRI__OGC_INTERSECTS_AREA, \
432-
osm2ttl::ttl::constants::IRI__OGC_INTERSECTED_BY_AREA, progressBar, \
423+
#pragma omp parallel for shared( \
424+
vertices, osm2ttl::ttl::constants::NAMESPACE__OSM_WAY, \
425+
osm2ttl::ttl::constants::NAMESPACE__OSM_RELATION, \
426+
osm2ttl::ttl::constants::IRI__OGC_CONTAINS_AREA, \
427+
osm2ttl::ttl::constants::IRI__OGC_CONTAINS_NONAREA, \
428+
osm2ttl::ttl::constants::IRI__OGC_INTERSECTS_AREA, \
429+
osm2ttl::ttl::constants::IRI__OGC_INTERSECTS_NONAREA, progressBar, \
433430
entryCount) default(none) schedule(static)
434431
for (size_t i = 0; i < vertices.size(); i++) {
435432
const auto id = vertices[i];
@@ -454,14 +451,6 @@ void osm2ttl::osm::GeometryHandler<W>::dumpNamedAreaRelations() {
454451
areaIRI, osm2ttl::ttl::constants::IRI__OGC_CONTAINS_AREA, entryIRI);
455452
_writer->writeTriple(
456453
areaIRI, osm2ttl::ttl::constants::IRI__OGC_INTERSECTS_AREA, entryIRI);
457-
if (_config.addInverseRelationDirection) {
458-
_writer->writeTriple(
459-
entryIRI, osm2ttl::ttl::constants::IRI__OGC_CONTAINED_BY_AREA,
460-
areaIRI);
461-
_writer->writeTriple(
462-
entryIRI, osm2ttl::ttl::constants::IRI__OGC_INTERSECTED_BY_AREA,
463-
areaIRI);
464-
}
465454
}
466455
#pragma omp critical(progress)
467456
progressBar.update(entryCount++);
@@ -508,16 +497,14 @@ void osm2ttl::osm::GeometryHandler<W>::dumpUnnamedAreaRelations() {
508497
size_t containsSkippedByDAG = 0;
509498
size_t containsOkEnvelope = 0;
510499
progressBar.update(entryCount);
511-
#pragma omp parallel for shared( \
512-
osm2ttl::ttl::constants::NAMESPACE__OSM_WAY, \
513-
osm2ttl::ttl::constants::NAMESPACE__OSM_RELATION, \
514-
osm2ttl::ttl::constants::IRI__OGC_INTERSECTS, \
515-
osm2ttl::ttl::constants::IRI__OGC_INTERSECTED_BY, \
516-
osm2ttl::ttl::constants::IRI__OGC_CONTAINS, \
517-
osm2ttl::ttl::constants::IRI__OGC_CONTAINED_BY, \
500+
#pragma omp parallel for shared( \
501+
osm2ttl::ttl::constants::NAMESPACE__OSM_WAY, \
502+
osm2ttl::ttl::constants::NAMESPACE__OSM_RELATION, \
503+
osm2ttl::ttl::constants::IRI__OGC_INTERSECTS_NONAREA, \
504+
osm2ttl::ttl::constants::IRI__OGC_CONTAINS_NONAREA, \
518505
progressBar, entryCount, ia) reduction(+:areas,intersectsSkippedByDAG, \
519-
containsSkippedByDAG, intersectsChecks, intersectsOk, containsChecks, containsOk, \
520-
containsOkEnvelope) \
506+
containsSkippedByDAG, intersectsChecks, intersectsOk, containsChecks, \
507+
containsOk, containsOkEnvelope) \
521508
default(none) schedule(dynamic)
522509
for (size_t i = 0; i < _numUnnamedAreas; i++) {
523510
SpatialAreaValue entry;
@@ -591,12 +578,8 @@ void osm2ttl::osm::GeometryHandler<W>::dumpUnnamedAreaRelations() {
591578
skipIntersects.insert(newSkip);
592579
}
593580
_writer->writeTriple(
594-
areaIRI, osm2ttl::ttl::constants::IRI__OGC_INTERSECTS, entryIRI);
595-
if (_config.addInverseRelationDirection) {
596-
_writer->writeTriple(
597-
entryIRI, osm2ttl::ttl::constants::IRI__OGC_INTERSECTED_BY,
598-
areaIRI);
599-
}
581+
areaIRI, osm2ttl::ttl::constants::IRI__OGC_INTERSECTS_NONAREA,
582+
entryIRI);
600583
}
601584

602585
if (!doesIntersect) {
@@ -646,12 +629,8 @@ void osm2ttl::osm::GeometryHandler<W>::dumpUnnamedAreaRelations() {
646629
skipContains.insert(newSkip);
647630
}
648631
_writer->writeTriple(
649-
areaIRI, osm2ttl::ttl::constants::IRI__OGC_CONTAINS, entryIRI);
650-
if (_config.addInverseRelationDirection) {
651-
_writer->writeTriple(entryIRI,
652-
osm2ttl::ttl::constants::IRI__OGC_CONTAINED_BY,
653-
areaIRI);
654-
}
632+
areaIRI, osm2ttl::ttl::constants::IRI__OGC_CONTAINS_NONAREA,
633+
entryIRI);
655634
}
656635
}
657636
#pragma omp critical(progress)
@@ -710,15 +689,13 @@ osm2ttl::osm::GeometryHandler<W>::dumpNodeRelations() {
710689
size_t containsOk = 0;
711690
size_t skippedByDAG = 0;
712691
progressBar.update(entryCount);
713-
#pragma omp parallel for shared( \
692+
#pragma omp parallel for shared( \
714693
osm2ttl::ttl::constants::NAMESPACE__OSM_NODE, \
715-
osm2ttl::ttl::constants::NAMESPACE__OSM_WAY, \
716-
osm2ttl::ttl::constants::NAMESPACE__OSM_RELATION, \
717-
osm2ttl::ttl::constants::IRI__OGC_CONTAINS, \
718-
osm2ttl::ttl::constants::IRI__OGC_CONTAINED_BY, \
719-
osm2ttl::ttl::constants::IRI__OGC_INTERSECTS, \
720-
osm2ttl::ttl::constants::IRI__OGC_INTERSECTED_BY, nodeData, \
721-
progressBar, entryCount, ia) reduction(+:checks, \
694+
osm2ttl::ttl::constants::NAMESPACE__OSM_WAY, \
695+
osm2ttl::ttl::constants::NAMESPACE__OSM_RELATION,\
696+
osm2ttl::ttl::constants::IRI__OGC_CONTAINS_NONAREA, \
697+
osm2ttl::ttl::constants::IRI__OGC_INTERSECTS_NONAREA, nodeData, \
698+
progressBar, entryCount, ia) reduction(+:checks, \
722699
skippedByDAG, contains, containsOk) default(none) schedule(dynamic)
723700
for (size_t i = 0; i < _numNodes; i++) {
724701
SpatialNodeValue node;
@@ -779,16 +756,11 @@ osm2ttl::osm::GeometryHandler<W>::dumpNodeRelations() {
779756
: osm2ttl::ttl::constants::NAMESPACE__OSM_RELATION,
780757
areaObjId);
781758
_writer->writeTriple(
782-
areaIRI, osm2ttl::ttl::constants::IRI__OGC_INTERSECTS, nodeIRI);
783-
_writer->writeTriple(
784-
areaIRI, osm2ttl::ttl::constants::IRI__OGC_CONTAINS, nodeIRI);
785-
if (_config.addInverseRelationDirection) {
786-
_writer->writeTriple(nodeIRI,
787-
osm2ttl::ttl::constants::IRI__OGC_INTERSECTED_BY,
788-
areaIRI);
789-
_writer->writeTriple(
790-
nodeIRI, osm2ttl::ttl::constants::IRI__OGC_CONTAINED_BY, areaIRI);
791-
}
759+
areaIRI, osm2ttl::ttl::constants::IRI__OGC_INTERSECTS_NONAREA,
760+
nodeIRI);
761+
_writer->writeTriple(areaIRI,
762+
osm2ttl::ttl::constants::IRI__OGC_CONTAINS_NONAREA,
763+
nodeIRI);
792764
}
793765
#pragma omp critical(nodeDataChange)
794766
std::copy(skip.begin(), skip.end(), std::back_inserter(nodeData[nodeId]));
@@ -844,13 +816,11 @@ void osm2ttl::osm::GeometryHandler<W>::dumpWayRelations(
844816
size_t containsSkippedByDAG = 0;
845817
size_t skippedInDAG = 0;
846818
progressBar.update(entryCount);
847-
#pragma omp parallel for shared( \
848-
osm2ttl::ttl::constants::NAMESPACE__OSM_WAY, nodeData, \
849-
osm2ttl::ttl::constants::NAMESPACE__OSM_RELATION, \
850-
osm2ttl::ttl::constants::IRI__OGC_INTERSECTS, \
851-
osm2ttl::ttl::constants::IRI__OGC_INTERSECTED_BY, \
852-
osm2ttl::ttl::constants::IRI__OGC_CONTAINS, \
853-
osm2ttl::ttl::constants::IRI__OGC_CONTAINED_BY, \
819+
#pragma omp parallel for shared( \
820+
osm2ttl::ttl::constants::NAMESPACE__OSM_WAY, nodeData, \
821+
osm2ttl::ttl::constants::NAMESPACE__OSM_RELATION, \
822+
osm2ttl::ttl::constants::IRI__OGC_INTERSECTS_NONAREA, \
823+
osm2ttl::ttl::constants::IRI__OGC_CONTAINS_NONAREA, \
854824
progressBar, entryCount, ia) reduction(+:areas,intersectsSkippedByDAG, containsSkippedByDAG, skippedInDAG, \
855825
intersectsByNodeInfo, intersectsChecks, intersectsOk, containsChecks, containsOk, containsOkEnvelope) \
856826
default(none) schedule(dynamic)
@@ -928,12 +898,8 @@ void osm2ttl::osm::GeometryHandler<W>::dumpWayRelations(
928898
skipIntersects.insert(newSkip);
929899
}
930900
_writer->writeTriple(
931-
areaIRI, osm2ttl::ttl::constants::IRI__OGC_INTERSECTS, wayIRI);
932-
if (_config.addInverseRelationDirection) {
933-
_writer->writeTriple(
934-
wayIRI, osm2ttl::ttl::constants::IRI__OGC_INTERSECTED_BY,
935-
areaIRI);
936-
}
901+
areaIRI, osm2ttl::ttl::constants::IRI__OGC_INTERSECTS_NONAREA,
902+
wayIRI);
937903
} else {
938904
intersectsChecks++;
939905
#ifdef ENABLE_GEOMETRY_STATISTIC
@@ -958,12 +924,8 @@ void osm2ttl::osm::GeometryHandler<W>::dumpWayRelations(
958924
skipIntersects.insert(newSkip);
959925
}
960926
_writer->writeTriple(
961-
areaIRI, osm2ttl::ttl::constants::IRI__OGC_INTERSECTS, wayIRI);
962-
if (_config.addInverseRelationDirection) {
963-
_writer->writeTriple(
964-
wayIRI, osm2ttl::ttl::constants::IRI__OGC_INTERSECTED_BY,
965-
areaIRI);
966-
}
927+
areaIRI, osm2ttl::ttl::constants::IRI__OGC_INTERSECTS_NONAREA,
928+
wayIRI);
967929
}
968930
if (!doesIntersect) {
969931
continue;
@@ -1012,12 +974,8 @@ void osm2ttl::osm::GeometryHandler<W>::dumpWayRelations(
1012974
skipContains.insert(newSkip);
1013975
}
1014976
_writer->writeTriple(
1015-
areaIRI, osm2ttl::ttl::constants::IRI__OGC_CONTAINS, wayIRI);
1016-
if (_config.addInverseRelationDirection) {
1017-
_writer->writeTriple(wayIRI,
1018-
osm2ttl::ttl::constants::IRI__OGC_CONTAINED_BY,
1019-
areaIRI);
1020-
}
977+
areaIRI, osm2ttl::ttl::constants::IRI__OGC_CONTAINS_NONAREA,
978+
wayIRI);
1021979
}
1022980
}
1023981
#pragma omp critical(progress)

0 commit comments

Comments
 (0)