Skip to content

Commit

Permalink
remove Z from geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
rsrg-zwiama authored and manisandro committed Aug 26, 2024
1 parent a120ead commit 19c326f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/feature_info_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def get_layer_info(self, identity, service_name, layer, style, x, y, crs, params
attributes = list(filter(lambda entry: entry['name'] in keep_attrs, attributes))

if geomcentroid and geometry:
gj = wkt.loads(geometry.upper())
gj = wkt.loads(geometry.upper().replace('Z',''))
geometry = wkt.dumps({
"type": "Point",
"coordinates": geom_center(gj["type"], gj["coordinates"])
Expand Down

0 comments on commit 19c326f

Please sign in to comment.