Package org.opengis.cite.geomatics.gml
Class SurfaceCoordinateListFactory
java.lang.Object
org.opengis.cite.geomatics.gml.SurfaceCoordinateListFactory
- All Implemented Interfaces:
CoordinateListFactory
Creates a sequence containing the coordinates comprising the exterior surface boundary.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCoordinateList
(org.geotoolkit.gml.xml.AbstractGeometry gmlGeom) Creates a list of coordinates from a GML geometry representation.createCoordinateList
(Element gmlSurface) Creates a list of coordinates on the exterior boundary of a GML surface geometry.(package private) List<Coordinate>
exteriorBoundaryOfPolygon
(org.geotoolkit.gml.xml.v321.PolygonType gmlPolygon) Returns a list of points on the exterior boundary of a Polygon geometry.(package private) List<Coordinate>
exteriorBoundaryOfSurface
(org.geotoolkit.gml.xml.v321.SurfacePatchArrayPropertyType patchArray, String srsName) Returns a list of points on the exterior boundary of a Surface geometry.(package private) Set<List<Coordinate>>
interiorBoundariesOfPolygon
(org.geotoolkit.gml.xml.v321.PolygonType gmlPolygon) Returns a set containing sequences of points on the interior boundaries of a Polygon geometry.(package private) Set<List<Coordinate>>
interiorBoundariesOfSurface
(org.geotoolkit.gml.xml.v321.SurfacePatchArrayPropertyType patchArray, String srsName) Returns a set containing sequences of points on the interior boundary curves of a Surface geometry.interiorCoordinatesSet
(org.geotoolkit.gml.xml.AbstractGeometry gmlGeom) Returns a set containing sequences of points on the interior boundaries of a surface geometry.interiorCoordinatesSet
(Element gmlSurface) Returns a set containing sequences of points on the interior boundaries of a surface geometry.
-
Constructor Details
-
SurfaceCoordinateListFactory
public SurfaceCoordinateListFactory()
-
-
Method Details
-
createCoordinateList
Description copied from interface:CoordinateListFactory
Creates a list of coordinates from a GML geometry representation. The sequence typically includes the constituent vertices.- Specified by:
createCoordinateList
in interfaceCoordinateListFactory
- Parameters:
gmlGeom
- A GML geometry object (constructed from its XML representation).- Returns:
- A list of 2D coordinates that constitute the geometry.
-
createCoordinateList
Creates a list of coordinates on the exterior boundary of a GML surface geometry.- Parameters:
gmlSurface
- A gml:Surface or gml:Polygon element (including extension elements that can substitute for gml:Surface).- Returns:
- A list of 2D coordinates.
-
interiorCoordinatesSet
public Set<List<Coordinate>> interiorCoordinatesSet(org.geotoolkit.gml.xml.AbstractGeometry gmlGeom) Returns a set containing sequences of points on the interior boundaries of a surface geometry. Each list in the set corresponds to a distinct interior boundary.- Parameters:
gmlGeom
- A GML surface geometry (substitutes for gml:AbstractSurface).- Returns:
- A set of Coordinate lists representing interior boundary curves; it may be empty.
-
interiorCoordinatesSet
Returns a set containing sequences of points on the interior boundaries of a surface geometry. Each list in the set corresponds to a distinct interior boundary.- Parameters:
gmlSurface
- A GML surface geometry (or an element in its substitution group).- Returns:
- A set of Coordinate lists representing interior boundary curves; it may be empty.
-
exteriorBoundaryOfSurface
List<Coordinate> exteriorBoundaryOfSurface(org.geotoolkit.gml.xml.v321.SurfacePatchArrayPropertyType patchArray, String srsName) Returns a list of points on the exterior boundary of a Surface geometry. The constituent patches are merged.- Parameters:
patchArray
- An array property containing a sequence of surface patches; it corresponds to the gml:patches element.srsName
- A CRS identifier that applies to the surface patches.- Returns:
- A list of Coordinate objects representing a boundary curve (ring).
-
exteriorBoundaryOfPolygon
Returns a list of points on the exterior boundary of a Polygon geometry.- Parameters:
gmlPolygon
- A gml:Polygon geometry instance.- Returns:
- A list of Coordinate objects representing a boundary curve.
-
interiorBoundariesOfPolygon
Set<List<Coordinate>> interiorBoundariesOfPolygon(org.geotoolkit.gml.xml.v321.PolygonType gmlPolygon) Returns a set containing sequences of points on the interior boundaries of a Polygon geometry.- Parameters:
gmlPolygon
- A gml:Polygon geometry instance.- Returns:
- A set of Coordinate lists representing interior boundary curves.
-
interiorBoundariesOfSurface
Set<List<Coordinate>> interiorBoundariesOfSurface(org.geotoolkit.gml.xml.v321.SurfacePatchArrayPropertyType patchArray, String srsName) Returns a set containing sequences of points on the interior boundary curves of a Surface geometry.- Parameters:
patchArray
- An array property containing a sequence of surface patches; it corresponds to the gml:patches element.srsName
- A CRS identifier that applies to the surface patches.- Returns:
- A set of Coordinate lists representing interior boundary curves.
-