gws.gis.gml.writer
¶
GML geometry writer.
Source code: gws.gis.gml.writer
Module Contents¶
- gws.gis.gml.writer.shape_to_element(shape: gws.Shape, coordinate_precision: int | None = None, always_xy: bool = False, crs_format: gws.CrsFormat = gws.CrsFormat.urn, namespace: gws.XmlNamespace | None = None, with_xmlns: bool = True, with_inline_xmlns: bool = False) gws.XmlElement ¶
Convert a Shape to a GML3 geometry element.
- Parameters:
shape – A GWS shape object.
coordinate_precision – The amount of decimal places.
always_xy – If
True
, coordinates are assumed to be in the XY (lon/lat) order.crs_format – The crs format in the resulting GML element.
namespace – A XML namespace.
with_xmlns – If
True
then namespaces will be kept.with_inline_xmlns – If
True
then the inline namespace will be kept.
- Returns:
A GML element.