Skip to content
On this page

geos.GEOSRelate ⇒ string

Computes a DE-9IM intersection matrix for two geometries.

Kind: Exported member
Returns: string - A string representing the DE-9IM matrix, or NULL on exception
See: https://libgeos.org/doxygen/geos__c_8h.html#a3a6f4e9a7f0b8c8d5b4a0c5f6c7e4d3f

ParamTypeDescription
g1numberA pointer to the first geometry
g2numberA pointer to the second geometry

geos.GEOSRelateBoundaryNodeRule ⇒ string

Computes the DE-9IM intersection matrix for two geometries using a specified Boundary Node Rule.

Kind: Exported member
Returns: string - The DE-9IM intersection matrix as a string, or null if an error occurred.
See: https://docs.rs/geos-sys/2.0.1/geos_sys/fn.GEOSRelateBoundaryNodeRule.html

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
g1numberThe first geometry.
g2numberThe second geometry.
bnrnumberThe Boundary Node Rule to use. One of: 1 (Mod2), 2 (EndPoint), 3 (MultiValentEndPoint), 4 (MonoValentEndPoint).

geos.GEOSRelateBoundaryNodeRule_r ⇒ string

Computes the DE-9IM intersection matrix for two geometries using a specified Boundary Node Rule.

Kind: Exported member
Returns: string - The DE-9IM intersection matrix as a string, or null if an error occurred.
See: https://docs.rs/geos-sys/2.0.1/geos_sys/fn.GEOSRelateBoundaryNodeRule_r.html

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
g1numberThe first geometry.
g2numberThe second geometry.
bnrnumberThe Boundary Node Rule to use. One of: 1 (Mod2), 2 (EndPoint), 3 (MultiValentEndPoint), 4 (MonoValentEndPoint).

geos.GEOSRelateBoundaryNodeRules ⏏

Controls the behavior of the result of GEOSRelate when returning DE9IM results for two geometries.

NameValue
GEOSRELATE_BNR_MOD21
GEOSRELATE_BNR_OGC1
GEOSRELATE_BNR_ENDPOINT2
GEOSRELATE_BNR_MULTIVALENT_ENDPOINT3
GEOSRELATE_BNR_MONOVALENT_ENDPOINT4

Kind: Exported member


geos.GEOSRelatePattern ⇒ number

Tests whether two geometries are related according to a given DE-9IM intersection matrix pattern.

Kind: Exported member
Returns: number - 1 if the geometries are related, 0 if not, 2 on exception
See: https://libgeos.org/doxygen/geos__c_8h.html#a3a6f4e9a7f0b8c8d5b4a0c5f6c7e4d3f

ParamTypeDescription
g1numberA pointer to the first geometry
g2numberA pointer to the second geometry
patstringA string representing the DE-9IM pattern

geos.GEOSRelatePatternMatch ⇒ number

Tests whether a DE-9IM intersection matrix matches a given pattern.

Kind: Exported member
Returns: number - 1 if the matrix matches the pattern, 0 if not, 2 on exception
See: https://libgeos.org/doxygen/geos__c_8h.html#a3a6f4e9a7f0b8c8d5b4a0c5f6c7e4d3f

ParamTypeDescription
matstringA string representing the DE-9IM matrix
patstringA string representing the DE-9IM pattern

geos.GEOSRelatePatternMatch_r ⇒ number

Tests whether a DE-9IM intersection matrix matches a given pattern in a thread-safe manner.

Kind: Exported member
Returns: number - 1 if the matrix matches the pattern, 0 if not, 2 on exception
See: https://libgeos.org/doxygen/geos__c_8h.html#a3a6f4e9a7f0b8c8d5b4a0c5f6c7e4d3f

ParamTypeDescription
handlenumberA GEOS context handle
matstringA string representing the DE-9IM matrix
patstringA string representing the DE-9IM pattern

geos.GEOSRelatePattern_r ⇒ number

Tests whether two geometries are related according to a given DE-9IM intersection matrix pattern in a thread-safe manner.

Kind: Exported member
Returns: number - 1 if the geometries are related, 0 if not, 2 on exception
See: https://libgeos.org/doxygen/geos__c_8h.html#a3a6f4e9a7f0b8c8d5b4a0c5f6c7e4d3f

ParamTypeDescription
handlenumberA GEOS context handle
g1numberA pointer to the first geometry
g2numberA pointer to the second geometry
patstringA string representing the DE-9IM pattern

geos.GEOSRelate_r ⇒ string

Computes the DE-9IM intersection matrix for two geometries.

Kind: Exported member
Returns: string - The DE-9IM intersection matrix as a string, or null if an error occurred.
See: https://docs.rs/geos-sys/2.0.0/geos_sys/fn.GEOSRelate_r.html

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
g1numberThe first geometry.
g2numberThe second geometry.