Skip to content

Commit 4716d3a

Browse files
author
Tahira Ullah
committed
multiple polygons as input does not incorporate second polygon
1 parent 984e299 commit 4716d3a

27 files changed

+366
-172
lines changed

manager_dashboard/manager_dashboard/js/forms.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ function openFile(event) {
141141
try {
142142
var text = reader.result;
143143
var geojsonData = JSON.parse(text)
144-
console.log(geojsonData);
145144
// check number of features
146145
numberOfFeatures = geojsonData['features'].length
147146

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"type": "FeatureCollection", "name": "/root/.local/share/mapswipe_workers/api/project_geometries/project_geom_-MC6zDSrCeUXzyCCwTQ_.geojson", "crs": {"type": "name", "properties": {"name": "urn:ogc:def:crs:OGC:1.3:CRS84"}}, "features": [{"type": "Feature", "properties": {"id": 1}, "geometry": {"type": "GeometryCollection", "geometries": [{"type": "MultiPolygon", "coordinates": [[[[139.2178158, 35.3986363], [139.2178753, 35.3935396], [139.227224, 35.3938308], [139.2258545, 35.3992187], [139.2178158, 35.3986363]]], [[[139.2377636, 35.4098963], [139.2403241, 35.4069359], [139.2480651, 35.408586], [139.2480651, 35.4126141], [139.2413364, 35.4145067], [139.2377636, 35.4098963]]]]}]}}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"type": "FeatureCollection", "name": "/root/.local/share/mapswipe_workers/api/project_geometries/project_geom_-MClQtGCC_sgKTB7mAeW.geojson", "crs": {"type": "name", "properties": {"name": "urn:ogc:def:crs:OGC:1.3:CRS84"}}, "features": [{"type": "Feature", "properties": {"id": 1}, "geometry": {"type": "MultiPolygon", "coordinates": []}}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"type": "FeatureCollection", "name": "/root/.local/share/mapswipe_workers/api/project_geometries/project_geom_-MCw-n1trbI1yzqDEOuc.geojson", "crs": {"type": "name", "properties": {"name": "urn:ogc:def:crs:OGC:1.3:CRS84"}}, "features": [{"type": "Feature", "properties": {"id": 1}, "geometry": {"type": "MultiPolygon", "coordinates": [[[[9.2086897, 48.8026663], [9.2097325, 48.8023333], [9.209645, 48.8034636], [9.2087603, 48.8034266], [9.2086897, 48.8026663]]], [[[9.2106306, 48.8035645], [9.2107281, 48.8026327], [9.2120131, 48.8024948], [9.2119122, 48.8035443], [9.2106306, 48.8035645]]]]}}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"type": "FeatureCollection", "name": "/root/.local/share/mapswipe_workers/api/project_geometries/project_geom_-MCw0zzwMY4ZNExGSrvw.geojson", "crs": {"type": "name", "properties": {"name": "urn:ogc:def:crs:OGC:1.3:CRS84"}}, "features": [{"type": "Feature", "properties": {"id": 1}, "geometry": {"type": "MultiPolygon", "coordinates": [[[[9.2086897, 48.8026663], [9.2097325, 48.8023333], [9.209645, 48.8034636], [9.2087603, 48.8034266], [9.2086897, 48.8026663]]], [[[9.2106306, 48.8035645], [9.2107281, 48.8026327], [9.2120131, 48.8024948], [9.2119122, 48.8035443], [9.2106306, 48.8035645]]]]}}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"type": "FeatureCollection", "name": "/root/.local/share/mapswipe_workers/api/project_geometries/project_geom_-MCwCkpstMiHcHQmL3Ex.geojson", "crs": {"type": "name", "properties": {"name": "urn:ogc:def:crs:OGC:1.3:CRS84"}}, "features": [{"type": "Feature", "properties": {"id": 1}, "geometry": {"type": "MultiPolygon", "coordinates": [[[[9.2086897, 48.8026663], [9.2097325, 48.8023333], [9.209645, 48.8034636], [9.2087603, 48.8034266], [9.2086897, 48.8026663]]], [[[9.2106306, 48.8035645], [9.2107281, 48.8026327], [9.2120131, 48.8024948], [9.2119122, 48.8035443], [9.2106306, 48.8035645]]]]}}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"crs": {"properties": {"name": "urn:ogc:def:crs:OGC:1.3:CRS84"}, "type": "name"}, "features": [{"geometry": {"coordinates": [[[[139.21781578342132, 35.39863625132325], [139.22585446758416, 35.399218708396056], [139.2272240211823, 35.39383081992331], [139.21787532922994, 35.39353957245255], [139.21781578342132, 35.39863625132325]]], [[[139.23776362930693, 35.409896342321126], [139.24133637782376, 35.41450670152793], [139.24806505419707, 35.41261405966239], [139.24806505419707, 35.40858598157107], [139.2403240990773, 35.406935867358285], [139.23776362930693, 35.409896342321126]]]], "type": "MultiPolygon"}, "type": "Feature"}], "name": "collected", "type": "FeatureCollection"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"crs": {"properties": {"name": "urn:ogc:def:crs:OGC:1.3:CRS84"}, "type": "name"}, "features": [{"geometry": {"coordinates": [[[[139.21781578342132, 35.39863625132325], [139.22585446758416, 35.399218708396056], [139.2272240211823, 35.39383081992331], [139.21787532922994, 35.39353957245255], [139.21781578342132, 35.39863625132325]]], [[[139.23776362930693, 35.409896342321126], [139.24133637782376, 35.41450670152793], [139.24806505419707, 35.41261405966239], [139.24806505419707, 35.40858598157107], [139.2403240990773, 35.406935867358285], [139.23776362930693, 35.409896342321126]]]], "type": "MultiPolygon"}, "type": "Feature"}], "name": "collected", "type": "FeatureCollection"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"crs": {"properties": {"name": "urn:ogc:def:crs:OGC:1.3:CRS84"}, "type": "name"}, "features": [{"geometry": {"coordinates": [[[[139.21781578342132, 35.39863625132325], [139.22585446758416, 35.399218708396056], [139.2272240211823, 35.39383081992331], [139.21787532922994, 35.39353957245255], [139.21781578342132, 35.39863625132325]]]], "type": "MultiPolygon"}, "type": "Feature"}, {"geometry": {"coordinates": [[[[139.23776362930693, 35.409896342321126], [139.24133637782376, 35.41450670152793], [139.24806505419707, 35.41261405966239], [139.24806505419707, 35.40858598157107], [139.2403240990773, 35.406935867358285], [139.23776362930693, 35.409896342321126]]]], "type": "MultiPolygon"}, "type": "Feature"}], "name": "testMulti", "type": "FeatureCollection"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"crs": {"properties": {"name": "urn:ogc:def:crs:OGC:1.3:CRS84"}, "type": "name"}, "features": [{"geometry": {"coordinates": [[[[9.208689680161699, 48.802666331380884], [9.20876032010785, 48.803426551753745], [9.209645001338208, 48.803463553630294], [9.209732460319156, 48.80233331449189], [9.208689680161699, 48.802666331380884]]]], "type": "MultiPolygon"}, "type": "Feature"}, {"geometry": {"coordinates": [[[[9.210630596777351, 48.80356446783908], [9.211912207228934, 48.80354428499732], [9.212013121437721, 48.80249477722595], [9.210728147179179, 48.80263269331129], [9.210630596777351, 48.80356446783908]]]], "type": "MultiPolygon"}, "type": "Feature"}], "name": "multi_poly_test", "type": "FeatureCollection"}

0 commit comments

Comments
 (0)