Skip to content

Commit

Permalink
fix length check in geoJsonGeometryFromGmlGeometry (#7431)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjonsson authored Mar 7, 2025
1 parent 0036f62 commit 50544f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Map/Vector/geoJsonGeometryFromGmlGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function createLineStringFromGmlGeometry(geometry) {

function createPointFromGmlGeometry(geometry) {
var posNodes = geometry.getElementsByTagNameNS(gmlNamespace, "pos");
if (posNodes < 1) {
if (posNodes.length < 1) {
throw new RuntimeError(i18next.t("map.gmlToGeoJson.missingPos"));
}

Expand Down

0 comments on commit 50544f3

Please sign in to comment.