Package types.collections.geo
Class GeoSet
java.lang.Object
types.collections.base.Set<org.locationtech.jts.geom.Geometry>
types.collections.geo.GeoSet
- All Implemented Interfaces:
Base,Collection,TemporalObject
- Direct Known Subclasses:
GeographySet,GeometrySet
Abstract class representing a set of geo object inheriting from set type.
- Since:
- 10/09/2023
- Author:
- Nidhal Mareghni
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringas_ewkt()Returns the EWKT representation of "this".protected Stringas_text()Returns the WKT representation of "this".protected Stringas_wkt()Returns the WKT representation of "this".booleanabstract jnr.ffi.PointercreateInner(jnr.ffi.Pointer inner) abstract jnr.ffi.PointercreateStringInner(String str) org.locationtech.jts.geom.GeometryReturns the last element in "this".static GeoSetabstract jnr.ffi.Pointerorg.locationtech.jts.geom.Geometryintersection_geom(org.locationtech.jts.geom.Geometry geom) Returns the intersection of "this" and "other".intersection_geoset(GeoSet geo, String type) Returns the intersection of "this" and "other".Returns the difference of "this" and "other".Rounds the coordinate values to a number of decimal places.protected intsrid()Returns the SRID of "this".org.locationtech.jts.geom.GeometryReturns the first element in "this".org.locationtech.jts.geom.Geometrysubtract_from(Object geo, String type) toString()Return the string representation of the content of "this".Returns the union of "this" and "other".Methods inherited from class types.collections.base.Set
add, as_hexwkb, as_wkb, contains, copy, element_n, elements, eq, from_hexwkb, from_wkb, greaterThan, greaterThanOrEqual, hash, is_adjacent, is_contained_in, is_left, is_over_or_left, is_over_or_right, is_right, length, lessThan, lessThanOrEqual, mul, notEquals, num_elements, overlaps, rsub, sub, subtract_from, to_span, to_spanset
-
Field Details
-
_inner
protected jnr.ffi.Pointer _inner
-
-
Constructor Details
-
GeoSet
public GeoSet() -
GeoSet
public GeoSet(jnr.ffi.Pointer inner) Pointer constructor- Parameters:
inner- Pointer
-
GeoSet
The string constructor- Parameters:
value- - the string with the TBoolInst value
-
-
Method Details
-
createInner
public abstract jnr.ffi.Pointer createInner(jnr.ffi.Pointer inner) - Specified by:
createInnerin classSet<org.locationtech.jts.geom.Geometry>
-
createStringInner
- Specified by:
createStringInnerin classSet<org.locationtech.jts.geom.Geometry>
-
factory
-
toString
Return the string representation of the content of "this".MEOS Functions:
- geoset_out
-
as_ewkt
Returns the EWKT representation of "this". MEOS Functions:- geoset_as_ewkt
- Returns:
- A
Stringinstance.
-
as_wkt
Returns the WKT representation of "this". MEOS Functions:- geoset_as_text
- Returns:
- A
Stringinstance.
-
as_text
Returns the WKT representation of "this". MEOS Functions:- geoset_as_text
- Returns:
- A
Stringinstance.
-
get_inner
public abstract jnr.ffi.Pointer get_inner() -
start_element
public org.locationtech.jts.geom.Geometry start_element() throws org.locationtech.jts.io.ParseExceptionReturns the first element in "this".MEOS Functions:
- geoset_start_value
- Specified by:
start_elementin classSet<org.locationtech.jts.geom.Geometry>- Returns:
- A
Geometryinstance - Throws:
org.locationtech.jts.io.ParseException
-
end_element
public org.locationtech.jts.geom.Geometry end_element() throws org.locationtech.jts.io.ParseExceptionReturns the last element in "this".MEOS Functions:
- geoset_end_value
- Specified by:
end_elementin classSet<org.locationtech.jts.geom.Geometry>- Returns:
- A
Geometryinstance - Throws:
org.locationtech.jts.io.ParseException
-
srid
protected int srid()Returns the SRID of "this". MEOS Functions:- geoset_srid
- Returns:
- An integer
-
contains
- Throws:
Exception
-
intersection_geom
public org.locationtech.jts.geom.Geometry intersection_geom(org.locationtech.jts.geom.Geometry geom) throws org.locationtech.jts.io.ParseException Returns the intersection of "this" and "other".MEOS Functions:
- intersection_geoset_geo
- intersection_set_set
- Parameters:
geom- AGeoSetorGeometryinstance- Returns:
- An object of the same type as "other" or "None" if the intersection is empty.
- Throws:
org.locationtech.jts.io.ParseException
-
intersection_geoset
Returns the intersection of "this" and "other".MEOS Functions:
- intersection_geoset_geo
- intersection_set_set
- Parameters:
geo- AGeoSetorGeometryinstancetype- the type of GeoSet- Returns:
- An object of the same type as "other" or "None" if the intersection is empty.
- Throws:
org.locationtech.jts.io.ParseException
-
minus
Returns the difference of "this" and "other".MEOS Functions:
- minus_geoset_geo
- minus_set_set
-
subtract_from
public org.locationtech.jts.geom.Geometry subtract_from(Object geo, String type) throws org.locationtech.jts.io.ParseException - Throws:
org.locationtech.jts.io.ParseException
-
union
Returns the union of "this" and "other".MEOS Functions:
- union_geoset_geo
- union_set_set
-
round
Rounds the coordinate values to a number of decimal places.MEOS Functions:
- tpoint_roundgeoset_round
- Parameters:
decimals- The number of decimal places to use for the coordinates.type- the type of GeoSet- Returns:
- A new
GeoSetobject of the same subtype of "this".
-