Skip to content

Commit

Permalink
Wrong esri encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
rmichaelis committed Jun 20, 2024
1 parent 7d89d88 commit 0ac2b56
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 0ac2b56

Please sign in to comment.