Files
construprogress/tests/Feature
javierandClaude Opus 4.7 a4554bb1ca fix(kml): reconocer Placemark con cualquier xmlns + soporte KMZ
Bug: kmlToGeoJson usaba xpath //kml:Placemark exigiendo el namespace
http://www.opengis.net/kml/2.2. KMLs con xmlns de Google Earth
(http://earth.google.com/kml/2.1) o sin namespace daban 0 placemarks →
la capa se creaba pero SIN elementos.

Fix:
- Todos los xpath usan local-name() (namespace-agnostic).
- parseKmlGeometry navega Point/LineString/Polygon/MultiGeometry sin
  depender del prefijo del namespace.
- Soporte KMZ: descomprime el zip y parsea el .kml interno (habitualmente doc.kml).
- Nuevo helper kmlChild() para leer <name>/<description> tolerante al ns.

Tests: SpatialFileConverterTest cubre los tres KMLs (opengis 2.2, google 2.1,
sin xmlns). Suite 94 passing.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-07 19:56:20 +02:00
..
2026-05-07 23:31:33 +02:00