Polygone sans la balise Polygon non reconnu
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.3k
- Forks
- 322
- PR merge metrics
- No merged PRs in 30d
Description
Bonjour,
Pour certains fichiers KML, le polygone n'est pas pris en compte .
La balise LinearRing n'est pas inclue dans une balise Polygon parente; comme dans l'exemple suivant :
<Placemark>
<name>Roboiement takourt2</name>
<visibility>1</visibility>
<Style>
<LineStyle>
<color>ffffff00</color>
<width>3</width>
</LineStyle>
</Style>
<LinearRing>
<tessellate>1</tessellate>
<altitudeMode>clampToGround</altitudeMode>
<coordinates>
-6.2909908,32.0051011 -6.291015,32.0081799 -6.2916612,32.0098377 -6.296121,32.0081586 -6.2970776,32.0056977 -6.2909908,32.0051011 -6.2909908,32.0051011
</coordinates>
</LinearRing>
</Placemark>
MERCI d'avance,
Cordialement.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the KML parsing logic for Placemark and LinearRing, then reproduce the issue with the sample KML structure where LinearRing is not nested in Polygon. Trace how that geometry is classified and verify that the resulting GeoJSON represents the ring as a polygon without changing handling of standard Polygon elements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100