:tocdepth: 3 :py:mod:`gws.gis.gml.writer` ============================ .. py:module:: gws.gis.gml.writer .. autoapi-nested-parse:: GML geometry writer. **Source code:** :source:`gws.gis.gml.writer` Module Contents --------------- .. py:function:: shape_to_element(shape: gws.Shape, version: int = 3, coordinate_precision: Optional[int] = None, always_xy: bool = False, with_xmlns: bool = True, with_inline_xmlns: bool = False, namespace: Optional[gws.XmlNamespace] = None, crs_format: Optional[gws.CrsFormat] = None) -> gws.XmlElement Convert a Shape to a GML geometry element. :param shape: A Shape object. :param version: GML version (2 or 3). :param coordinate_precision: The amount of decimal places. :param always_xy: If ``True``, coordinates are assumed to be always in the XY (lon/lat) order. :param with_xmlns: If ``True`` add the "gml" namespace prefix. :param with_inline_xmlns: If ``True`` add inline "xmlns" attributes. :param namespace: Use this namespace (default "gml"). :param crs_format: Crs format to use (default "url" for version 2 and "urn" for version 3). :returns: A GML element.