Skip to content

Reference

GmlShapleyFactory

gml_point_to_shapely(gml_point_coordinates) classmethod

Converts a GML point coordinate string to a Shapely Point object.

Parameters:

Name Type Description Default
gml_point_coordinates str

The GML point coordinate string in the format "(x,y)".

required

Returns:

Type Description
Point

The Shapely Point object.

gml_linestring_to_shapely(gml_linestring_coordinates) classmethod

Converts a GML linestring coordinate string to a Shapely LineString object.

Parameters:

Name Type Description Default
gml_linestring_coordinates str

A string of GML linestring coordinates in "x,y" format separated by spaces.

required

Returns:

Type Description
LineString

A Shapely LineString object.

gml_polygon_to_shapely(gml_linestring_coordinates) classmethod

Converts a GML polygon to a Shapely Polygon object.

TODO
  • support donuts

Parameters:

Name Type Description Default
gml_linestring_coordinates str

A string containing the GML coordinates of the polygon.

required

Returns:

Type Description
Polygon

A Shapely Polygon object.