class GeometryFactory extends Serializable

Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GeometryFactory
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new GeometryFactory()

    Constructs a GeometryFactory that generates Geometries having a floating PrecisionModel and a spatial-reference ID of 0.

  2. new GeometryFactory(precisionModel: PrecisionModel, SRID: Int)

    Constructs a GeometryFactory that generates Geometries having the given {link PrecisionModel} and spatial-reference ID, and the default CoordinateSequence implementation.

    Constructs a GeometryFactory that generates Geometries having the given {link PrecisionModel} and spatial-reference ID, and the default CoordinateSequence implementation.

    precisionModel

    the PrecisionModel to use

    SRID

    the SRID to use

  3. new GeometryFactory(precisionModel: PrecisionModel)

    Constructs a GeometryFactory that generates Geometries having the given {link PrecisionModel} and the default CoordinateSequence implementation.

    Constructs a GeometryFactory that generates Geometries having the given {link PrecisionModel} and the default CoordinateSequence implementation.

    precisionModel

    the PrecisionModel to use

  4. new GeometryFactory(coordinateSequenceFactory: CoordinateSequenceFactory)

    Constructs a GeometryFactory that generates Geometries having the given CoordinateSequence implementation, a double-precision floating PrecisionModel and a spatial-reference ID of 0.

  5. new GeometryFactory(precisionModel: PrecisionModel, SRID: Int, coordinateSequenceFactory: CoordinateSequenceFactory)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. var SRID: Int
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def buildGeometry(geomList: Collection[Geometry]): Geometry

    Build an appropriate Geometry, MultiGeometry, or GeometryCollection to contain the Geometrys in it.

    Build an appropriate Geometry, MultiGeometry, or GeometryCollection to contain the Geometrys in it. For example:

    • If geomList contains a single Polygon, the Polygon is returned.
    • If geomList contains several Polygons, a MultiPolygon is returned.
    • If geomList contains some Polygons and some LineStrings, a GeometryCollection is returned.
    • If geomList is empty, an empty GeometryCollection is returned

    Note that this method does not "flatten" Geometries in the input, and hence if any MultiGeometries are contained in the input a GeometryCollection containing them will be returned.

    geomList

    the Geometrys to combine return a Geometry of the "smallest", "most type-specific" class that can contain the elements of geomList .

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. var coordinateSequenceFactory: CoordinateSequenceFactory
  9. def createEmpty(dimension: Int): Geometry

    Creates an empty atomic geometry of the given dimension.

    Creates an empty atomic geometry of the given dimension. If passed a dimension of -1 will create an empty {link GeometryCollection}.

    dimension

    the required dimension (-1, 0, 1 or 2) return an empty atomic geometry of given dimension

  10. def createGeometry(g: Geometry): Geometry

    Creates a deep copy of the input {link Geometry}.

    Creates a deep copy of the input {link Geometry}. The {link CoordinateSequenceFactory} defined for this factory is used to copy the {link CoordinateSequence}s of the input geometry.

    This is a convenient way to change the CoordinateSequence used to represent a geometry, or to change the factory used for a geometry.

    {link Geometry#copy()} can also be used to make a deep copy, but it does not allow changing the CoordinateSequence type.

    return a deep copy of the input geometry, using the CoordinateSequence type of this factory

    See also

    Geometry#copy()

  11. def createGeometryCollection(geometries: Array[Geometry]): GeometryCollection

    Creates a GeometryCollection using the given Geometries; a null or empty array will create an empty GeometryCollection.

    Creates a GeometryCollection using the given Geometries; a null or empty array will create an empty GeometryCollection.

    geometries

    an array of Geometries, each of which may be empty but not null, or null return the created GeometryCollection

  12. def createGeometryCollection: GeometryCollection

    Constructs an empty {link GeometryCollection} geometry.

    Constructs an empty {link GeometryCollection} geometry.

    return an empty GeometryCollection

  13. def createLineString(coordinates: CoordinateSequence): LineString

    Creates a LineString using the given CoordinateSequence.

    Creates a LineString using the given CoordinateSequence. A null or empty CoordinateSequence creates an empty LineString.

    coordinates

    a CoordinateSequence (possibly empty), or null

  14. def createLineString(coordinates: Array[Coordinate]): LineString

    Creates a LineString using the given Coordinates.

    Creates a LineString using the given Coordinates. A null or empty array creates an empty LineString.

    coordinates

    an array without null elements, or an empty array, or null

  15. def createLineString: LineString

    Constructs an empty {link LineString} geometry.

    Constructs an empty {link LineString} geometry.

    return an empty LineString

  16. def createLinearRing(coordinates: CoordinateSequence): LinearRing

    Creates a {link LinearRing} using the given {link CoordinateSequence}.

    Creates a {link LinearRing} using the given {link CoordinateSequence}. A null or empty array creates an empty LinearRing. The points must form a closed and simple linestring.

    coordinates

    a CoordinateSequence (possibly empty), or null return the created LinearRing throws IllegalArgumentException if the ring is not closed, or has too few points

  17. def createLinearRing(coordinates: Array[Coordinate]): LinearRing

    Creates a {link LinearRing} using the given {link Coordinate}s.

    Creates a {link LinearRing} using the given {link Coordinate}s. A null or empty array creates an empty LinearRing. The points must form a closed and simple linestring.

    coordinates

    an array without null elements, or an empty array, or null return the created LinearRing throws IllegalArgumentException if the ring is not closed, or has too few points

  18. def createLinearRing: LinearRing

    Constructs an empty {link LinearRing} geometry.

    Constructs an empty {link LinearRing} geometry.

    return an empty LinearRing

  19. def createMultiLineString(lineStrings: Array[LineString]): MultiLineString

    Creates a MultiLineString using the given LineStrings; a null or empty array will create an empty MultiLineString.

    Creates a MultiLineString using the given LineStrings; a null or empty array will create an empty MultiLineString.

    lineStrings

    LineStrings, each of which may be empty but not null return the created MultiLineString

  20. def createMultiLineString: MultiLineString

    Constructs an empty {link MultiLineString} geometry.

    Constructs an empty {link MultiLineString} geometry.

    return an empty MultiLineString

  21. def createMultiPoint(coordinates: CoordinateSequence): MultiPoint

    Creates a {link MultiPoint} using the points in the given {link CoordinateSequence}.

    Creates a {link MultiPoint} using the points in the given {link CoordinateSequence}. A null or empty CoordinateSequence creates an empty MultiPoint.

    coordinates

    a CoordinateSequence (possibly empty), or null return a MultiPoint geometry

  22. def createMultiPoint(point: Array[Point]): MultiPoint

    Creates a {link MultiPoint} using the given {link Point}s.

    Creates a {link MultiPoint} using the given {link Point}s. A null or empty array will create an empty MultiPoint.

    point

    an array of Points (without null elements), or an empty array, or null return a MultiPoint object

  23. def createMultiPoint: MultiPoint

    Constructs an empty {link MultiPoint} geometry.

    Constructs an empty {link MultiPoint} geometry.

    return an empty MultiPoint

  24. def createMultiPointFromCoords(coordinates: Array[Coordinate]): MultiPoint

    Creates a {link MultiPoint} using the given {link Coordinate}s.

    Creates a {link MultiPoint} using the given {link Coordinate}s. A null or empty array will create an empty MultiPoint.

    coordinates

    an array (without null elements), or an empty array, or null return a MultiPoint object

  25. def createMultiPolygon(polygons: Array[Polygon]): MultiPolygon

    Creates a MultiPolygon using the given Polygons; a null or empty array will create an empty Polygon.

    Creates a MultiPolygon using the given Polygons; a null or empty array will create an empty Polygon. The polygons must conform to the assertions specified in the <A HREF="http://www.opengis.org/techno/specs.htm">OpenGIS Simple Features Specification for SQL</A>.

    polygons

    Polygons, each of which may be empty but not null return the created MultiPolygon

  26. def createMultiPolygon: MultiPolygon

    Constructs an empty {link MultiPolygon} geometry.

    Constructs an empty {link MultiPolygon} geometry.

    return an empty MultiPolygon

  27. def createPoint(coordinates: CoordinateSequence): Point

    Creates a Point using the given CoordinateSequence; a null or empty CoordinateSequence will create an empty Point.

    Creates a Point using the given CoordinateSequence; a null or empty CoordinateSequence will create an empty Point.

    coordinates

    a CoordinateSequence (possibly empty), or null return the created Point

  28. def createPoint(coordinate: Coordinate): Point

    Creates a Point using the given Coordinate.

    Creates a Point using the given Coordinate. A null Coordinate creates an empty Geometry.

    coordinate

    a Coordinate, or null return the created Point

  29. def createPoint: Point

    Constructs an empty {link Point} geometry.

    Constructs an empty {link Point} geometry.

    return an empty Point

  30. def createPolygon: Polygon

    Constructs an empty {link Polygon} geometry.

    Constructs an empty {link Polygon} geometry.

    return an empty polygon

  31. def createPolygon(shell: LinearRing): Polygon
  32. def createPolygon(shell: Array[Coordinate]): Polygon
  33. def createPolygon(shell: CoordinateSequence): Polygon

    Constructs a Polygon with the given exterior boundary.

    Constructs a Polygon with the given exterior boundary.

    shell

    the outer boundary of the new Polygon, or null or an empty LinearRing if the empty geometry is to be created. throws IllegalArgumentException if the boundary ring is invalid

  34. def createPolygon(shell: LinearRing, holes: Array[LinearRing]): Polygon

    Constructs a Polygon with the given exterior boundary and interior boundaries.

    Constructs a Polygon with the given exterior boundary and interior boundaries.

    shell

    the outer boundary of the new Polygon, or null or an empty LinearRing if the empty geometry is to be created.

    holes

    the inner boundaries of the new Polygon, or null or empty LinearRing s if the empty geometry is to be created. throws IllegalArgumentException if a ring is invalid

  35. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  37. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  38. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  39. def getCoordinateSequenceFactory: CoordinateSequenceFactory
  40. def getPrecisionModel: PrecisionModel

    Returns the PrecisionModel that Geometries created by this factory will be associated with.

    Returns the PrecisionModel that Geometries created by this factory will be associated with.

    return the PrecisionModel for this factory

  41. def getSRID: Int

    Gets the SRID value defined for this factory.

    Gets the SRID value defined for this factory.

    return the factory SRID value

  42. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  43. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  44. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  46. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  47. var precisionModel: PrecisionModel
  48. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  49. def toGeometry(envelope: Envelope): Geometry

    Creates a {link Geometry} with the same extent as the given envelope.

    Creates a {link Geometry} with the same extent as the given envelope. The Geometry returned is guaranteed to be valid. To provide this behaviour, the following cases occur:

    If the Envelope is:

    • null : returns an empty {link Point}
    • a point : returns a non-empty {link Point}
    • a line : returns a two-point {link LineString}
    • a rectangle : returns a {link Polygon} whose points are (minx, miny), (minx, maxy), (maxx, maxy), (maxx, miny), (minx, miny).
    envelope

    the Envelope to convert return an empty Point (for null Envelopes), a Point (when min x = max x and min y = max y) or a Polygon (in all other cases)

  50. def toString(): String
    Definition Classes
    AnyRef → Any
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def createMultiPoint(coordinates: Array[Coordinate]): MultiPoint

    Creates a {link MultiPoint} using the given {link Coordinate}s.

    Creates a {link MultiPoint} using the given {link Coordinate}s. A null or empty array will create an empty MultiPoint.

    coordinates

    an array (without null elements), or an empty array, or null return a MultiPoint object

    Deprecated

    Use { @link GeometryFactory#createMultiPointFromCoords} instead

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped