Skip to content

Commit e2dce43

Browse files
authored
use upper in geom type check
1 parent 1e27657 commit e2dce43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/feature_info_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,9 +534,9 @@ def get_layer_info(self, identity, origin, service_name, layer, style, x, y, crs
534534

535535
if geomcentroid and geometry:
536536
gj = wkt.loads(geometry.upper().replace('Z',''))
537-
if gj["type"] == "POINT" and len(gj["coordinates"]) == 3:
537+
if gj["type"].upper() == "POINT" and len(gj["coordinates"]) == 3:
538538
gj["coordinates"] = gj["coordinates"][:2]
539-
if gj["type"] == "MULTIPOINT" and len(gj["coordinates"][0])==3:
539+
if gj["type"].upper() == "MULTIPOINT" and len(gj["coordinates"][0])==3:
540540
for i, c in enumerate(gj["coordinates"]): gj["coordinates"][i] = c[:2]
541541
geometry = wkt.dumps({
542542
"type": "Point",

0 commit comments

Comments
 (0)