pyams_gis.rpc.json
package ⊞¶
-
pyams_gis.rpc.json.
transformArea
(request, area, from_srid, to_srid)[source]¶ Transform area given in source projection to another projection
Parameters: - area – area coordinates given as a mapping with ‘x1’, ‘y1’, ‘x2’, and ‘y2’ values
- from_srid – source coordinates system given as SRID
- to_srid – target coordinates system given as SRID
Returns: mapping with new ‘area’ key containing transformed coordinates, and ‘projection’ key containing SRID of result projection system
-
pyams_gis.rpc.json.
transformPoint
(request, point, from_srid, to_srid)[source]¶ Transform point given in source projection to another projection
Parameters: - point – point coordinates given as a mapping with ‘longitude’ and ‘latitude’ values
- from_srid – source coordinates system given as SRID
- to_srid – target coordinates system given as SRID
Returns: mapping with new ‘point’ key containing transformed coordinates, and ‘projection’ key containing SRID of result projection system