SDG-AI-Lab / DSVI_Tool_v3

DSVI Online Tool: Displays social vulnerability data and allows users to analyze them interactively.
https://sdg-ai-lab.github.io/DSVI_Tool_v3/
5 stars 1 forks source link

AOI has a missing polygon #201

Closed Skerre closed 1 year ago

Skerre commented 1 year ago

When looking at the upper part of the AOI for Tajikistan, react leaflet component Polygon is not rendering the AOI as it should: A sub part of the polygon is missing.

I noticed this bug a long time ago and reordered the polygon in the aoi.gejson file, because it will only render the first element it "sees" apparently. However, when I open the AOI file in another program, such as QGIS, it will render all the elements of the AOI.

aoi_bug

When opened in QGIS looks correct:

image

andreiPro commented 1 year ago

Hi Team, Working on.

andreiPro commented 1 year ago

Good morning Martin, Done. Only 1 layer out of 3 was displayed because all three unrelated/independent layers were included in the same Feature object. After I placed each layer in a separate Feature object, everything started working.

Screen Shot 2022-11-20 at 12 47 12 AM

"features": [ { "type": "Feature", "properties": { }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ ] ] ]}, { "type": "Feature", "properties": { }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ ] ] ]}, { "type": "Feature", "properties": { }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ ] ] ]}]