Skip to content

Commit

Permalink
Merge pull request #3159 from Geoportail-Luxembourg/fix_encode_layer
Browse files Browse the repository at this point in the history
Wrong esri encoding
  • Loading branch information
rmichaelis authored Jun 20, 2024
2 parents 6583673 + 0ac2b56 commit 9bd1d61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions geoportal/geoportailv3_geoportal/views/getfeatureinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1538,8 +1538,7 @@ def _get_external_data(self, layer_id, url, id_column='objectid',
points = []
for geom in s.geoms:
for coord in list(geom.coords):
points.append('{"x" : %(x)s, "y": %(y)s}' %{'x': coord[0], 'y': coord[1]})
log.error(",".join(points))
points.append('[%(x)s,%(y)s]' %{'x': coord[0], 'y': coord[1]})
body['geometry'] = f'{{"points": [{ ",".join(points)}], "spatialReference" : {{"wkid" : {srs_geometry}}}}}'
body['geometryType'] = 'esriGeometryMultipoint '
body['spatialRel'] = 'esriSpatialRelIntersects'
Expand Down

0 comments on commit 9bd1d61

Please sign in to comment.