a package to translate geojson to gml 2.1.2
npm install geojson-to-gml-2A package to translate geojson geometries to GML 2.1.2.
___
Geography Markup Language (GML) is an OGC Standard.
More information may be found at http://www.opengeospatial.org/standards/gml
The most current schema are available at http://schemas.opengis.net/ .
___
Policies, Procedures, Terms, and Conditions of OGC(r) are available at http://www.opengeospatial.org/ogc/legal/ .
OGC and OpenGIS are registered trademarks of Open Geospatial Consortium.
Copyright (c) 2012 Open Geospatial Consortium
stringconverts a geojson geometry Point to gml
stringconverts a geojson geometry LineString to gml
stringconverts a geojson geometry ring in a polygon to gml
stringconverts a geojson geometry Polygon to gml
stringHandles multigeometries or geometry collections
stringconverts a geojson geometry MultiPoint to gml
stringconverts a geojson geometry MultiLineString to gml
stringconverts a geojson geometry MultiPolygon to gml
stringconverts a geojson geometry GeometryCollection to gml MultiGeometry
stringTranslate geojson to gml 2.1.2 for any geojson geometry type
stringKind: global function
Returns: string - a string of gml describing the input geometry
| Param | Type | Description |
| --- | --- | --- |
| coords | Array.<number> | the coordinates member of the geometry |
| srsName | string \| undefined | a string specifying SRS |
stringKind: global function
Returns: string - a string of gml describing the input geometry
| Param | Type | Description |
| --- | --- | --- |
| coords | Array.<Array.<number>> | the coordinates member of the geometry |
| srsName | string \| undefined | a string specifying SRS |
stringKind: global function
Returns: string - a string of gml describing the input geometry
| Param | Type | Description |
| --- | --- | --- |
| coords | Array.<Array.<number>> | the coordinates member of the geometry |
| srsName | string \| undefined | a string specifying SRS |
stringKind: global function
Returns: string - a string of gml describing the input geometry
| Param | Type | Description |
| --- | --- | --- |
| coords | Array.<Array.<Array.<number>>> | the coordinates member of the geometry |
| srsName | string \| undefined | a string specifying SRS |
stringKind: global function
Returns: string - a string of gml describing the input multigeometry
Throws:
- Error will throw an error if a member geometry is supplied without a type attribute
| Param | Type | Description |
| --- | --- | --- |
| geom | Object | a geojson geometry object |
| name | string | the name of the multigeometry, e.g. 'MultiPolygon' |
| srsName | string \| undefined | a string specifying the SRS |
| memberPrefix | string | the prefix of a gml member tag |
stringKind: global function
Returns: string - a string of gml describing the input geometry
See
- _multi
- Point
| Param | Type | Description |
| --- | --- | --- |
| coords | Array.<Array.<number>> | the coordinates member of the geometry |
| srsName | string \| undefined | a string specifying SRS |
stringKind: global function
Returns: string - a string of gml describing the input geometry
See
- _multi
- LineString
| Param | Type | Description |
| --- | --- | --- |
| coords | Array.<Array.<Array.<number>>> | the coordinates member of the geometry |
| srsName | string \| undefined | a string specifying SRS |
stringKind: global function
Returns: string - a string of gml describing the input geometry
See
- _multi
- Polygon
| Param | Type | Description |
| --- | --- | --- |
| coords | Array.<Array.<Array.<Array.<number>>>> | the coordinates member of the geometry |
| srsName | string \| undefined | a string specifying SRS |
stringKind: global function
Returns: string - a string of gml describing the input GeometryCollection
See: _multi
| Param | Type | Description |
| --- | --- | --- |
| geoms | Array.<Object> | an array of geojson geometry objects |
| srsName | string \| undefined | a string specifying SRS |
stringKind: global function
Returns: string - a string of gml describing the input geometry
| Param | Type | Default | Description |
| --- | --- | --- | --- |
| geom | Object | | a geojson geometry object |
| srsName | string \| undefined | "EPSG:4326" | a string specifying SRS |