mapbox / mapbox/togeojson

Polygone sans la balise Polygon non reconnu

Open
#189 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.