public class Jts2GmlDOM extends Object
Class for creating DOM Elements containing valid GML representations of JTS geometries
TODO currently doesn't do anything about reference systems
| Modifier and Type | Field and Description |
|---|---|
static String |
CURVEMEMBER |
static String |
DEFAULT_LIST_SEPARATOR |
static String |
DEFAULT_TUPLE_SEPARATOR |
static String |
EIGHT_DP_NUMBER_FORMAT |
static String |
EXTERIOR |
static String |
GEOMETRYMEMBER |
static String |
GML_NAMESPACE |
static String |
GML_PREFIX |
static String |
INTERIOR |
static String |
LINEARRING |
static String |
LINESTRING |
protected static Logger |
LOGGER
logger for debugging purposes.
|
static String |
MULTICURVE |
static String |
MULTIGEOMETRY |
static String |
MULTIPOINT |
static String |
MULTISURFACE |
static String |
POINT |
static String |
POINTMEMBER |
static String |
POLYGON |
static String |
POS |
static String |
POSLIST |
static String |
PREFIX_SEPARATOR |
static String |
SURFACEMEMBER |
| Constructor and Description |
|---|
Jts2GmlDOM()
Creates a new Jts2GmlDOM object.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTextToElement(Element el,
String text)
DOCUMENT ME!
|
protected Element |
collectionToGmlElement(com.vividsolutions.jts.geom.GeometryCollection theGeoms,
String elementName,
String associationName)
DOCUMENT ME!
|
protected Element |
createElement(String elementName)
DOCUMENT ME!
|
protected Element |
createMemberElement(com.vividsolutions.jts.geom.Geometry theGeom,
String associationName)
DOCUMENT ME!
|
Element |
geometryCollectionToGmlElement(com.vividsolutions.jts.geom.GeometryCollection theGeoms)
DOCUMENT ME!
|
Element |
geometryToGmlElement(com.vividsolutions.jts.geom.Geometry theGeom)
DOCUMENT ME!
|
protected String |
getFormattedCoord(com.vividsolutions.jts.geom.Coordinate thePoint)
DOCUMENT ME!
|
protected String |
getFormattedCoord(com.vividsolutions.jts.geom.Coordinate theCoord,
String separator)
DOCUMENT ME!
|
protected String |
getFormattedCoordList(com.vividsolutions.jts.geom.Coordinate[] theCoords)
DOCUMENT ME!
|
protected String |
getFormattedCoordList(com.vividsolutions.jts.geom.Coordinate[] theCoords,
String tupleSeparator)
DOCUMENT ME!
|
protected String |
getFormattedCoordList(com.vividsolutions.jts.geom.Coordinate[] theCoords,
String tupleSeparator,
String listSeparator)
DOCUMENT ME!
|
static String |
gmlQualifiedTag(String localName)
DOCUMENT ME!
|
Element |
linearRingToGmlElement(com.vividsolutions.jts.geom.LinearRing theLinearRing)
DOCUMENT ME!
|
protected Element |
linearThingToGmlElement(com.vividsolutions.jts.geom.LineString theLinearThing,
String elementName)
DOCUMENT ME!
|
Element |
lineStringToGmlElement(com.vividsolutions.jts.geom.LineString theLineString)
DOCUMENT ME!
|
Element |
multiLineStringToGmlElement(com.vividsolutions.jts.geom.MultiLineString theGeoms)
DOCUMENT ME!
|
Element |
multiPointToGmlElement(com.vividsolutions.jts.geom.MultiPoint theGeoms)
DOCUMENT ME!
|
Element |
multiPolygonToGmlElement(com.vividsolutions.jts.geom.MultiPolygon theGeoms)
DOCUMENT ME!
|
Element |
pointToGmlElement(com.vividsolutions.jts.geom.Point thePoint)
DOCUMENT ME!
|
Element |
polygonToGmlElement(com.vividsolutions.jts.geom.Polygon thePolygon)
DOCUMENT ME!
|
protected static final Logger LOGGER
public static final String EIGHT_DP_NUMBER_FORMAT
public static final String GML_NAMESPACE
public static final String GML_PREFIX
public static final String PREFIX_SEPARATOR
public static final String DEFAULT_LIST_SEPARATOR
public static final String DEFAULT_TUPLE_SEPARATOR
public static final String POINT
public static final String POS
public static final String LINESTRING
public static final String LINEARRING
public static final String POSLIST
public static final String POLYGON
public static final String EXTERIOR
public static final String INTERIOR
public static final String MULTIGEOMETRY
public static final String GEOMETRYMEMBER
public static final String MULTICURVE
public static final String CURVEMEMBER
public static final String MULTIPOINT
public static final String POINTMEMBER
public static final String MULTISURFACE
public static final String SURFACEMEMBER
public Jts2GmlDOM()
throws ParserConfigurationException,
FactoryConfigurationError
ParserConfigurationException - DOCUMENT ME!FactoryConfigurationError - DOCUMENT ME!public Element geometryToGmlElement(com.vividsolutions.jts.geom.Geometry theGeom) throws DOMException
theGeom - DOCUMENT ME!DOMException - DOCUMENT ME!public static String gmlQualifiedTag(String localName)
localName - DOCUMENT ME!protected Element createElement(String elementName) throws DOMException
elementName - DOCUMENT ME!DOMException - DOCUMENT ME!protected void addTextToElement(Element el, String text) throws DOMException
el - DOCUMENT ME!text - DOCUMENT ME!DOMException - DOCUMENT ME!protected String getFormattedCoord(com.vividsolutions.jts.geom.Coordinate thePoint)
thePoint - DOCUMENT ME!protected String getFormattedCoord(com.vividsolutions.jts.geom.Coordinate theCoord, String separator)
theCoord - DOCUMENT ME!separator - DOCUMENT ME!protected String getFormattedCoordList(com.vividsolutions.jts.geom.Coordinate[] theCoords)
theCoords - DOCUMENT ME!protected String getFormattedCoordList(com.vividsolutions.jts.geom.Coordinate[] theCoords, String tupleSeparator)
theCoords - DOCUMENT ME!tupleSeparator - DOCUMENT ME!protected String getFormattedCoordList(com.vividsolutions.jts.geom.Coordinate[] theCoords, String tupleSeparator, String listSeparator)
theCoords - DOCUMENT ME!tupleSeparator - DOCUMENT ME!listSeparator - DOCUMENT ME!public Element pointToGmlElement(com.vividsolutions.jts.geom.Point thePoint) throws DOMException
thePoint - DOCUMENT ME!DOMException - DOCUMENT ME!public Element lineStringToGmlElement(com.vividsolutions.jts.geom.LineString theLineString) throws DOMException
theLineString - DOCUMENT ME!DOMException - DOCUMENT ME!public Element linearRingToGmlElement(com.vividsolutions.jts.geom.LinearRing theLinearRing) throws DOMException
theLinearRing - DOCUMENT ME!DOMException - DOCUMENT ME!protected Element linearThingToGmlElement(com.vividsolutions.jts.geom.LineString theLinearThing, String elementName) throws DOMException
theLinearThing - DOCUMENT ME!elementName - DOCUMENT ME!DOMException - DOCUMENT ME!public Element polygonToGmlElement(com.vividsolutions.jts.geom.Polygon thePolygon) throws DOMException
thePolygon - DOCUMENT ME!DOMException - DOCUMENT ME!public Element geometryCollectionToGmlElement(com.vividsolutions.jts.geom.GeometryCollection theGeoms) throws DOMException
theGeoms - DOCUMENT ME!DOMException - DOCUMENT ME!public Element multiPointToGmlElement(com.vividsolutions.jts.geom.MultiPoint theGeoms) throws DOMException
theGeoms - DOCUMENT ME!DOMException - DOCUMENT ME!public Element multiLineStringToGmlElement(com.vividsolutions.jts.geom.MultiLineString theGeoms) throws DOMException
theGeoms - DOCUMENT ME!DOMException - DOCUMENT ME!public Element multiPolygonToGmlElement(com.vividsolutions.jts.geom.MultiPolygon theGeoms) throws DOMException
theGeoms - DOCUMENT ME!DOMException - DOCUMENT ME!protected Element collectionToGmlElement(com.vividsolutions.jts.geom.GeometryCollection theGeoms, String elementName, String associationName) throws DOMException
theGeoms - DOCUMENT ME!elementName - DOCUMENT ME!associationName - DOCUMENT ME!DOMException - DOCUMENT ME!Copyright © 2012–2025 cismet GmbH. All rights reserved.