Skip to content

Commit 19c326f

Browse files
rsrg-zwiamamanisandro
authored andcommitted
remove Z from geometry
1 parent a120ead commit 19c326f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/feature_info_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def get_layer_info(self, identity, service_name, layer, style, x, y, crs, params
454454
attributes = list(filter(lambda entry: entry['name'] in keep_attrs, attributes))
455455

456456
if geomcentroid and geometry:
457-
gj = wkt.loads(geometry.upper())
457+
gj = wkt.loads(geometry.upper().replace('Z',''))
458458
geometry = wkt.dumps({
459459
"type": "Point",
460460
"coordinates": geom_center(gj["type"], gj["coordinates"])

0 commit comments

Comments
 (0)