/dports/math/R-cran-terra/terra/src/ |
H A D | vector_methods.cpp | 449 out.geoms[i].parts[j].x.swap(out.geoms[i].parts[j].y); in transpose() 465 dswap(out.geoms[i].extent.xmin, out.geoms[i].extent.ymin); in transpose() 466 dswap(out.geoms[i].extent.xmax, out.geoms[i].extent.ymax); in transpose() 521 dswap(out.geoms[i].extent.xmin, out.geoms[i].extent.xmax); in flip() 525 dswap(out.geoms[i].extent.ymin, out.geoms[i].extent.ymax); in flip() 576 out.geoms[i].parts[j].extent.xmin = vmin(out.geoms[i].parts[j].x, true); in rotate() 577 out.geoms[i].parts[j].extent.xmax = vmax(out.geoms[i].parts[j].x, true); in rotate() 578 out.geoms[i].parts[j].extent.ymin = vmin(out.geoms[i].parts[j].y, true); in rotate() 579 out.geoms[i].parts[j].extent.ymax = vmax(out.geoms[i].parts[j].y, true); in rotate() 581 out.geoms[i].extent = out.geoms[i].parts[j].extent; in rotate() [all …]
|
/dports/databases/postgis32/postgis-3.2.0/regress/core/ |
H A D | binary.sql | 4 CREATE TABLE tm.geoms (id serial, g geometry); table 6 INSERT INTO tm.geoms(g) values ('POINT EMPTY'); 7 INSERT INTO tm.geoms(g) values ('LINESTRING EMPTY'); 8 INSERT INTO tm.geoms(g) values ('POLYGON EMPTY'); 9 INSERT INTO tm.geoms(g) values ('MULTIPOINT EMPTY'); 20 INSERT INTO tm.geoms(g) values ('TIN EMPTY'); 23 INSERT INTO tm.geoms(g) 25 INSERT INTO tm.geoms(g) 27 INSERT INTO tm.geoms(g) 31 INSERT INTO tm.geoms(g) [all …]
|
/dports/databases/postgis31/postgis-3.1.4/regress/core/ |
H A D | binary.sql | 4 CREATE TABLE tm.geoms (id serial, g geometry); table 6 INSERT INTO tm.geoms(g) values ('POINT EMPTY'); 7 INSERT INTO tm.geoms(g) values ('LINESTRING EMPTY'); 8 INSERT INTO tm.geoms(g) values ('POLYGON EMPTY'); 9 INSERT INTO tm.geoms(g) values ('MULTIPOINT EMPTY'); 20 INSERT INTO tm.geoms(g) values ('TIN EMPTY'); 23 INSERT INTO tm.geoms(g) 25 INSERT INTO tm.geoms(g) 27 INSERT INTO tm.geoms(g) 31 INSERT INTO tm.geoms(g) [all …]
|
/dports/databases/postgis30/postgis-3.0.4/regress/core/ |
H A D | binary.sql | 4 CREATE TABLE tm.geoms (id serial, g geometry); table 6 INSERT INTO tm.geoms(g) values ('POINT EMPTY'); 7 INSERT INTO tm.geoms(g) values ('LINESTRING EMPTY'); 8 INSERT INTO tm.geoms(g) values ('POLYGON EMPTY'); 9 INSERT INTO tm.geoms(g) values ('MULTIPOINT EMPTY'); 20 INSERT INTO tm.geoms(g) values ('TIN EMPTY'); 23 INSERT INTO tm.geoms(g) 25 INSERT INTO tm.geoms(g) 27 INSERT INTO tm.geoms(g) 31 INSERT INTO tm.geoms(g) [all …]
|
/dports/databases/postgis25/postgis-2.5.5/regress/ |
H A D | binary.sql | 4 CREATE TABLE tm.geoms (id serial, g geometry); table 6 INSERT INTO tm.geoms(g) values ('POINT EMPTY'); 7 INSERT INTO tm.geoms(g) values ('LINESTRING EMPTY'); 8 INSERT INTO tm.geoms(g) values ('POLYGON EMPTY'); 9 INSERT INTO tm.geoms(g) values ('MULTIPOINT EMPTY'); 20 INSERT INTO tm.geoms(g) values ('TIN EMPTY'); 23 INSERT INTO tm.geoms(g) 25 INSERT INTO tm.geoms(g) 27 INSERT INTO tm.geoms(g) 31 INSERT INTO tm.geoms(g) [all …]
|
/dports/graphics/geos/geos-3.9.1/tests/unit/capi/ |
H A D | GEOSPolygonizeTest.cpp | 60 GEOSGeometry* geoms[size] = { nullptr }; in test() local 72 for(auto& input : geoms) { in test() 83 GEOSGeometry* geoms[size] = { nullptr }; in test() local 100 for(auto& input : geoms) { in test() 111 GEOSGeometry* geoms[size]; in test() local 123 g = GEOSPolygonize_valid(geoms, 2); in test() 130 for(auto& input : geoms) { in test() 141 GEOSGeometry* geoms[size]; in test() local 151 for(auto& input : geoms) { in test() 162 GEOSGeometry* geoms[size]; in test() local [all …]
|
H A D | GEOSGeom_createCollectionTest.cpp | 70 GEOSGeom geoms[geom_size]; in test() local 71 geoms[0] = GEOSGeom_createEmptyPoint_r(handle_); in test() 72 geoms[1] = GEOSGeom_createEmptyPoint_r(handle_); in test() 73 geoms[2] = GEOSGeom_createEmptyPoint_r(handle_); in test() 86 std::array<GEOSGeom, geom_size> geoms = { in test() local 93 geoms.data(), static_cast<int>(geoms.size())); in test() 104 std::vector<GEOSGeom> geoms; in test() local 105 geoms.push_back(GEOSGeom_createEmptyPoint_r(handle_)); in test() 106 geoms.push_back(GEOSGeom_createEmptyPoint_r(handle_)); in test() 107 geoms.push_back(GEOSGeom_createEmptyPoint_r(handle_)); in test() [all …]
|
/dports/graphics/geos/geos-3.9.1/doc/ |
H A D | example.cpp | 96 WKBtest(vector<const Geometry*>* geoms) in WKBtest() argument 108 size_t ngeoms = geoms->size(); in WKBtest() 110 const Geometry* gin = (*geoms)[i]; in WKBtest() 207 WKBtest(geoms); // test WKB parser in wkt_print_geoms() 212 const Geometry* g = (*geoms)[i]; in wkt_print_geoms() 437 geoms->push_back(create_simple_collection(geoms)); in do_all() 452 wkt_print_geoms(geoms); in do_all() 1075 lm.add(geoms); in do_all() 1099 plgnzr.add(geoms); in do_all() 1123 delete(*geoms)[i]; in do_all() [all …]
|
/dports/graphics/geos/geos-3.9.1/tests/unit/operation/geounion/ |
H A D | CoverageUnionTest.cpp | 91 std::vector<std::string> geoms{ in test() local 104 std::vector<std::string> geoms{ in test() local 117 std::vector<std::string> geoms{ in test() local 130 std::vector<std::string> geoms{ in test() local 143 std::vector<std::string> geoms{ in test() local 156 std::vector<std::string> geoms{ in test() local 169 std::vector<std::string> geoms{ in test() local 187 std::vector<std::string> geoms { in test() local 192 checkCoverageUnionFails(geoms); in test() 200 std::vector<std::string> geoms { in test() local [all …]
|
H A D | UnaryUnionOpTest.cpp | 44 delAll(std::vector<Geom*>& geoms) in delAll() 47 delete geoms[i]; in delAll() 90 std::vector<Geom*> geoms; in doTest() local 91 readWKT(inputWKT, geoms); in doTest() 94 if(geoms.empty()) { in doTest() 102 delAll(geoms); in doTest() 128 static char const* const geoms[] = { in test() local 140 static char const* const geoms[] = { in test() local 144 doTest(geoms, in test() 162 doTest(geoms, in test() [all …]
|
/dports/databases/postgis25/postgis-2.5.5/liblwgeom/ |
H A D | lwcollection.c | 87 ret->geoms = geoms; in lwcollection_construct() 133 ret->geoms[i] = lwgeom_clone(g->geoms[i]); in lwcollection_clone() 140 ret->geoms = NULL; in lwcollection_clone() 159 ret->geoms[i] = lwgeom_clone_deep(g->geoms[i]); in lwcollection_clone_deep() 166 ret->geoms = NULL; in lwcollection_clone_deep() 180 col->geoms = lwrealloc(col->geoms, sizeof(LWGEOM*) * col->maxgeoms); in lwcollection_reserve() 204 if (!col->geoms) in lwcollection_add_lwgeom() 289 if ( ! lwgeom_same(c1->geoms[i], c2->geoms[i]) ) in lwcollection_same() 368 if ( col->geoms && col->geoms[i] ) in lwcollection_free() 371 if ( col->geoms ) in lwcollection_free() [all …]
|
H A D | lwgeom_geos_cluster.c | 103 tree.envelopes[i] = geos_envelope_surrogate(geoms[i]); in make_strtree() 185 if (!geoms[p] || GEOSisEmpty(geoms[p])) in union_intersecting_pairs() 197 int geos_type = GEOSGeomTypeId(geoms[p]); in union_intersecting_pairs() 209 prep = GEOSPrepare(geoms[p]); in union_intersecting_pairs() 215 geos_result = GEOSIntersects(geoms[p], geoms[q]); in union_intersecting_pairs() 269 if (geoms[p]->type == POINTTYPE) in dbscan_update_context() 274 const GBOX* box = lwgeom_get_bbox(geoms[p]); in dbscan_update_context() 350 if (lwgeom_is_empty(geoms[p])) in union_dbscan_minpoints_1() 360 double mindist = lwgeom_mindistance2d_tolerance(geoms[p], geoms[q], eps); in union_dbscan_minpoints_1() 426 if (lwgeom_is_empty(geoms[p])) in union_dbscan_general() [all …]
|
/dports/databases/postgis30/postgis-3.0.4/liblwgeom/ |
H A D | lwcollection.c | 85 ret->geoms = geoms; in lwcollection_construct() 134 ret->geoms[i] = lwgeom_clone(g->geoms[i]); in lwcollection_clone() 141 ret->geoms = NULL; in lwcollection_clone() 160 ret->geoms[i] = lwgeom_clone_deep(g->geoms[i]); in lwcollection_clone_deep() 167 ret->geoms = NULL; in lwcollection_clone_deep() 181 col->geoms = lwrealloc(col->geoms, sizeof(LWGEOM*) * col->maxgeoms); in lwcollection_reserve() 205 if (!col->geoms) in lwcollection_add_lwgeom() 290 if ( ! lwgeom_same(c1->geoms[i], c2->geoms[i]) ) in lwcollection_same() 369 if ( col->geoms && col->geoms[i] ) in lwcollection_free() 372 if ( col->geoms ) in lwcollection_free() [all …]
|
H A D | lwgeom_geos_cluster.c | 103 tree.envelopes[i] = geos_envelope_surrogate(geoms[i]); in make_strtree() 185 if (!geoms[p] || GEOSisEmpty(geoms[p])) in union_intersecting_pairs() 197 int geos_type = GEOSGeomTypeId(geoms[p]); in union_intersecting_pairs() 209 prep = GEOSPrepare(geoms[p]); in union_intersecting_pairs() 215 geos_result = GEOSIntersects(geoms[p], geoms[q]); in union_intersecting_pairs() 269 if (geoms[p]->type == POINTTYPE) in dbscan_update_context() 274 const GBOX* box = lwgeom_get_bbox(geoms[p]); in dbscan_update_context() 350 if (lwgeom_is_empty(geoms[p])) in union_dbscan_minpoints_1() 360 double mindist = lwgeom_mindistance2d_tolerance(geoms[p], geoms[q], eps); in union_dbscan_minpoints_1() 426 if (lwgeom_is_empty(geoms[p])) in union_dbscan_general() [all …]
|
/dports/databases/postgis31/postgis-3.1.4/liblwgeom/ |
H A D | lwcollection.c | 85 ret->geoms = geoms; in lwcollection_construct() 134 ret->geoms[i] = lwgeom_clone(g->geoms[i]); in lwcollection_clone() 141 ret->geoms = NULL; in lwcollection_clone() 160 ret->geoms[i] = lwgeom_clone_deep(g->geoms[i]); in lwcollection_clone_deep() 167 ret->geoms = NULL; in lwcollection_clone_deep() 181 col->geoms = lwrealloc(col->geoms, sizeof(LWGEOM*) * col->maxgeoms); in lwcollection_reserve() 205 if (!col->geoms) in lwcollection_add_lwgeom() 290 if ( ! lwgeom_same(c1->geoms[i], c2->geoms[i]) ) in lwcollection_same() 332 if ( col->geoms[i]) in lwcollection_ngeoms() 369 if ( col->geoms && col->geoms[i] ) in lwcollection_free() [all …]
|
H A D | lwgeom_geos_cluster.c | 103 tree.envelopes[i] = geos_envelope_surrogate(geoms[i]); in make_strtree() 185 if (!geoms[p] || GEOSisEmpty(geoms[p])) in union_intersecting_pairs() 197 int geos_type = GEOSGeomTypeId(geoms[p]); in union_intersecting_pairs() 209 prep = GEOSPrepare(geoms[p]); in union_intersecting_pairs() 215 geos_result = GEOSIntersects(geoms[p], geoms[q]); in union_intersecting_pairs() 269 if (geoms[p]->type == POINTTYPE) in dbscan_update_context() 274 const GBOX* box = lwgeom_get_bbox(geoms[p]); in dbscan_update_context() 350 if (lwgeom_is_empty(geoms[p])) in union_dbscan_minpoints_1() 360 double mindist = lwgeom_mindistance2d_tolerance(geoms[p], geoms[q], eps); in union_dbscan_minpoints_1() 426 if (lwgeom_is_empty(geoms[p])) in union_dbscan_general() [all …]
|
/dports/databases/postgis32/postgis-3.2.0/liblwgeom/ |
H A D | lwcollection.c | 85 ret->geoms = geoms; in lwcollection_construct() 134 ret->geoms[i] = lwgeom_clone(g->geoms[i]); in lwcollection_clone() 141 ret->geoms = NULL; in lwcollection_clone() 160 ret->geoms[i] = lwgeom_clone_deep(g->geoms[i]); in lwcollection_clone_deep() 167 ret->geoms = NULL; in lwcollection_clone_deep() 181 col->geoms = lwrealloc(col->geoms, sizeof(LWGEOM*) * col->maxgeoms); in lwcollection_reserve() 205 if (!col->geoms) in lwcollection_add_lwgeom() 290 if ( ! lwgeom_same(c1->geoms[i], c2->geoms[i]) ) in lwcollection_same() 332 if ( col->geoms[i]) in lwcollection_ngeoms() 369 if ( col->geoms && col->geoms[i] ) in lwcollection_free() [all …]
|
H A D | lwgeom_geos_cluster.c | 103 tree.envelopes[i] = geos_envelope_surrogate(geoms[i]); in make_strtree() 185 if (!geoms[p] || GEOSisEmpty(geoms[p])) in union_intersecting_pairs() 197 int geos_type = GEOSGeomTypeId(geoms[p]); in union_intersecting_pairs() 209 prep = GEOSPrepare(geoms[p]); in union_intersecting_pairs() 215 geos_result = GEOSIntersects(geoms[p], geoms[q]); in union_intersecting_pairs() 269 if (geoms[p]->type == POINTTYPE) in dbscan_update_context() 274 const GBOX* box = lwgeom_get_bbox(geoms[p]); in dbscan_update_context() 350 if (lwgeom_is_empty(geoms[p])) in union_dbscan_minpoints_1() 360 double mindist = lwgeom_mindistance2d_tolerance(geoms[p], geoms[q], eps); in union_dbscan_minpoints_1() 426 if (lwgeom_is_empty(geoms[p])) in union_dbscan_general() [all …]
|
/dports/math/jts/jts-jts-1.18.1/modules/core/src/test/java/test/jts/perf/operation/distance/ |
H A D | TestPerfFastDistanceFile.java | 52 testAllDistances(geoms, 1); in test() 53 testAllDistances(geoms, 2); in test() 54 testAllDistances(geoms, 5); in test() 55 testAllDistances(geoms, 10); in test() 56 testAllDistances(geoms, 20); in test() 57 testAllDistances(geoms, 30); in test() 58 testAllDistances(geoms, 40); in test() 59 testAllDistances(geoms, 50); in test() 72 computeAllDistances(geoms, maxToScan); in testAllDistances() 81 int numGeoms1 = geoms.size(); in computeAllDistances() [all …]
|
/dports/math/jts/jts-jts-1.18.1/modules/app/src/main/java/org/locationtech/jtstest/function/ |
H A D | SpatialIndexFunctions.java | 90 loadIndex(geoms, index); in strTreeBounds() 116 loadIndex(geoms, index); in hprTreeQuery() 130 loadIndex(geoms, indexHPRcache); in hprTreeQueryCached() 131 indexHPRGeom = geoms; in hprTreeQueryCached() 154 loadIndex(geoms, index); in hprTreeBounds() 172 loadIndex(geoms, indexSTRcache); in strTreeQueryCached() 173 indexSTRGeom = geoms; in strTreeQueryCached() 184 loadIndex(geoms, index); in strTreeQuery() 194 loadIndex(geoms, index); in strTreeNN() 202 loadIndex(geoms, index); in strTreeNNInSet() [all …]
|
H A D | SortingFunctions.java | 31 List<Geometry> geoms = components(g); in sortByLength() local 33 for (Geometry geom : geoms) { in sortByLength() 42 List<Geometry> geoms = components(g); in sortByArea() local 44 for (Geometry geom : geoms) { in sortByArea() 53 List<Geometry> geoms = components(g); in sortByMinX() local 55 for (Geometry geom : geoms) { in sortByMinX() 64 List<Geometry> geoms = components(g); in sortByMinY() local 66 for (Geometry geom : geoms) { in sortByMinY() 84 List<Geometry> geoms = components(g); in sortByHilbertCode() local 93 for (Geometry geom : geoms) { in sortByHilbertCode() [all …]
|
/dports/devel/librttopo/librttopo-1.1.0/src/ |
H A D | rtcollection.c | 89 ret->geoms = geoms; in rtcollection_construct() 135 ret->geoms[i] = rtgeom_clone(ctx, g->geoms[i]); in rtcollection_clone() 142 ret->geoms = NULL; in rtcollection_clone() 161 ret->geoms[i] = rtgeom_clone_deep(ctx, g->geoms[i]); in rtcollection_clone_deep() 168 ret->geoms = NULL; in rtcollection_clone_deep() 182 col->geoms = rtrealloc(ctx, col->geoms, sizeof(RTGEOM*) * col->maxgeoms); in rtcollection_reserve() 274 if ( ! rtgeom_same(ctx, c1->geoms[i], c2->geoms[i]) ) in rtcollection_same() 316 if ( col->geoms[i]) in rtcollection_ngeoms() 353 if ( col->geoms && col->geoms[i] ) in rtcollection_free() 356 if ( col->geoms ) in rtcollection_free() [all …]
|
/dports/graphics/geos/geos-3.9.1/src/geom/util/ |
H A D | GeometryCombiner.cpp | 32 for(const auto& g : geoms) { in combine() 42 GeometryCombiner combiner(geoms); in combine() 50 geoms.push_back(g0); in combine() 51 geoms.push_back(g1); in combine() 53 GeometryCombiner combiner(geoms); in combine() 62 geoms.push_back(g0); in combine() 63 geoms.push_back(g1); in combine() 64 geoms.push_back(g2); in combine() 66 GeometryCombiner combiner(geoms); in combine() 71 : geomFactory(extractFactory(geoms)), skipEmpty(false), inputGeoms(geoms) in GeometryCombiner() [all …]
|
/dports/devel/py-shapely/Shapely-1.8.0/tests/ |
H A D | test_strtree.py | 29 tree = STRtree(geoms) 42 tree = STRtree(geoms, range(len(geoms))) 56 tree = STRtree(geoms, items) 84 geoms = [empty] 85 tree = STRtree(geoms) 99 geoms = [empty, point] 100 tree = STRtree(geoms) 112 geoms = [empty, point] 113 tree = STRtree(geoms) 168 tree = STRtree(geoms) [all …]
|
/dports/math/jts/jts-jts-1.18.1/modules/lab/src/main/java/org/locationtech/jts/operation/union/ |
H A D | SpatialPartition.java | 34 private Geometry[] geoms; field in SpatialPartition 37 this.geoms = geoms; in SpatialPartition() 38 sets = build(geoms, rel); in SpatialPartition() 54 return geoms[getItem(s, i)]; in getGeometry() 57 private Subsets build(Geometry[] geoms, Relation rel) { in build() argument 58 STRtree index = createIndex(geoms); in build() 60 DisjointSets dset = new DisjointSets(geoms.length); in build() 62 for (int i = 0; i < geoms.length; i++) { in build() 65 Geometry queryGeom = geoms[i]; in build() 90 private STRtree createIndex(Geometry[] geoms) { in createIndex() argument [all …]
|