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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
as_ewkt()
Returns the EWKT representation of "this".protected String
as_text()
Returns the WKT representation of "this".protected String
as_wkt()
Returns the WKT representation of "this".boolean
abstract jnr.ffi.Pointer
createInner
(jnr.ffi.Pointer inner) abstract jnr.ffi.Pointer
createStringInner
(String str) org.locationtech.jts.geom.Geometry
Returns the last element in "this".static GeoSet
abstract jnr.ffi.Pointer
org.locationtech.jts.geom.Geometry
intersection_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 int
srid()
Returns the SRID of "this".org.locationtech.jts.geom.Geometry
Returns the first element in "this".org.locationtech.jts.geom.Geometry
subtract_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:
createInner
in classSet<org.locationtech.jts.geom.Geometry>
-
createStringInner
- Specified by:
createStringInner
in 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
String
instance.
-
as_wkt
Returns the WKT representation of "this". MEOS Functions:- geoset_as_text
- Returns:
- A
String
instance.
-
as_text
Returns the WKT representation of "this". MEOS Functions:- geoset_as_text
- Returns:
- A
String
instance.
-
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_element
in classSet<org.locationtech.jts.geom.Geometry>
- Returns:
- A
Geometry
instance - 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_element
in classSet<org.locationtech.jts.geom.Geometry>
- Returns:
- A
Geometry
instance - 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
- AGeoSet
orGeometry
instance- 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
- AGeoSet
orGeometry
instancetype
- 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
GeoSet
object of the same subtype of "this".
-