You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?xml version="1.0" encoding="UTF-8"?>
<osmversion="0.6"generator="Overpass API 0.7.59 e21c39fe">
<note>The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.</note>
<metaosm_base="2023-01-17T10:17:39Z"/>
<relationid="15260061"version="1"timestamp="2023-01-11T06:35:48Z"changeset="131131112"uid="9200198"user="חיליק אגמון">
<boundsminlat="32.6360783"minlon="35.1143645"maxlat="32.6488656"maxlon="35.1256148"/>
<membertype="way"ref="93324516"role="outer">
<ndlat="32.6434407"lon="35.1239131"/>
<ndlat="32.6429348"lon="35.1242565"/>
<ndlat="32.6423024"lon="35.1240419"/>
<ndlat="32.6398812"lon="35.1249216"/>
<ndlat="32.6368636"lon="35.1248358"/>
<ndlat="32.6360783"lon="35.1240178"/>
<ndlat="32.6367356"lon="35.1225380"/>
<ndlat="32.6396102"lon="35.1217888"/>
<ndlat="32.6420133"lon="35.1203297"/>
<ndlat="32.6433323"lon="35.1190637"/>
<ndlat="32.6436214"lon="35.1170681"/>
<ndlat="32.6419950"lon="35.1156632"/>
<ndlat="32.6410221"lon="35.1158614"/>
<ndlat="32.6408918"lon="35.1157737"/>
</member>
<membertype="way"ref="1130831949"role="outer">
<ndlat="32.6409447"lon="35.1150447"/>
<ndlat="32.6416163"lon="35.1147643"/>
<ndlat="32.6420907"lon="35.1146143"/>
<ndlat="32.6428806"lon="35.1143645"/>
<ndlat="32.6437660"lon="35.1145576"/>
<ndlat="32.6460967"lon="35.1158665"/>
<ndlat="32.6476686"lon="35.1193212"/>
<ndlat="32.6488089"lon="35.1214729"/>
<ndlat="32.6488656"lon="35.1215798"/>
<ndlat="32.6475601"lon="35.1228901"/>
<ndlat="32.6463964"lon="35.1236346"/>
<ndlat="32.6457896"lon="35.1229475"/>
<ndlat="32.6467652"lon="35.1251791"/>
<ndlat="32.6459690"lon="35.1256148"/>
<ndlat="32.6443803"lon="35.1242350"/>
<ndlat="32.6436937"lon="35.1244710"/>
<ndlat="32.6434407"lon="35.1239131"/>
</member>
<tagk="landuse"v="residential"/>
<tagk="name"v="הזורע"/>
<tagk="name:cs"v="ha-Zorea"/>
<tagk="name:en"v="Hazzore'a"/>
<tagk="name:fr"v="Hazorea"/>
<tagk="name:he"v="הזורע"/>
<tagk="place"v="village"/>
<tagk="type"v="multipolygon"/>
<tagk="website"v="https://www.hazorea.org.il/"/>
</relation>
</osm>
It contains two ways and it should be a closed polygon, but evidently the ways only touch on one end but not on the other - so basically this is an "invalid" OSM relation.
When using this library to convert it to a geojson I get a polygon, I would expect to get either a warning or a a flag when using verbose options.
Am I missing anything?
Here's my full code:
importosmtogeojsonfrom"osmtogeojson";fetch("https://overpass-api.de/api/interpreter",{method: "POST",body: "rel(15260061);out meta geom;"}).then(r=>r.text()).then(t=>{console.log(t);constparser=newDOMParser();constxmlDoc=parser.parseFromString(t,"text/xml");letgeo=osmtogeojson(xmlDoc,{verbose: true});console.log(geo);console.log(geo.features[0].properties.tainted);});
https://stackblitz.com/edit/typescript-j7uzad?file=index.ts
The text was updated successfully, but these errors were encountered:
Hi,
I have the following osm relation:
It contains two ways and it should be a closed polygon, but evidently the ways only touch on one end but not on the other - so basically this is an "invalid" OSM relation.
When using this library to convert it to a geojson I get a polygon, I would expect to get either a warning or a a flag when using verbose options.
Am I missing anything?
Here's my full code:
The text was updated successfully, but these errors were encountered: