Skip to content

geos.GEOSRelate ⇒ StringPointer

Calculate the DE9IM string for this geometry pair. The result is a 9-character string containing dimension symbols in the set "012F".

Kind: global property of geos
Returns: StringPointer - DE9IM string. Caller is responsible for freeing with GEOSFree(). NULL on exception

ParamTypeDescription
g1GEOSGeometryFirst geometry in pair
g2GEOSGeometrySecond geometry in pair

geos.GEOSRelateBoundaryNodeRule ⇒ StringPointer

Calculate the DE9IM string for this geometry pair, using the supplied GEOSRelateBoundaryNodeRules.

Kind: global property of geos
Returns: StringPointer - DE9IM string. Caller is responsible for freeing with GEOSFree(). NULL on exception

ParamTypeDescription
g1GEOSGeometryFirst geometry in pair
g2GEOSGeometrySecond geometry in pair
bnrnumberA member of the GEOSRelateBoundaryNodeRules enum

geos.GEOSRelateBoundaryNodeRule_r ⇒ StringPointer

Calculate the DE9IM string for this geometry pair, using the supplied GEOSRelateBoundaryNodeRules.

Kind: global property of geos
Returns: StringPointer - DE9IM string. Caller is responsible for freeing with GEOSFree(). NULL on exception

ParamTypeDescription
handleGEOSContextHandle_t-
g1GEOSGeometryFirst geometry in pair
g2GEOSGeometrySecond geometry in pair
bnrnumberA member of the GEOSRelateBoundaryNodeRules enum

geos.GEOSRelatePattern ⇒ number

Calculate the DE9IM string for a geometry pair and compare against a DE9IM pattern. Returns true if the computed matrix matches the pattern. The pattern is a 9-character string containing symbols in the set "012TF*". "012F" match the corresponding dimension symbol; "T" matches any non-empty dimension; "*" matches any dimension.

Kind: global property of geos
Returns: number - 1 on true, 0 on false, 2 on exception

ParamTypeDescription
g1GEOSGeometryFirst geometry in pair
g2GEOSGeometrySecond geometry in pair
imPatternStringPointerDE9IM pattern to match

geos.GEOSRelatePatternMatch ⇒ number

Compare a DE9IM string to a pattern and return true if they are consistent.

Kind: global property of geos
Returns: number - 1 on true, 0 on false, 2 on exception

ParamTypeDescription
intMatrixStringPointerDE9IM string (contains symbols "012F")
imPatternStringPointerPattern to match to (may also contain symbols "T" and "*")

geos.GEOSRelatePatternMatch_r ⇒ number

Compare a DE9IM string to a pattern and return true if they are consistent.

Kind: global property of geos
Returns: number - 1 on true, 0 on false, 2 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
intMatrixStringPointerDE9IM string (contains symbols "012F")
imPatternStringPointerPattern to match to (may also contain symbols "T" and "*")

geos.GEOSRelatePattern_r ⇒ number

Calculate the DE9IM string for a geometry pair and compare against a DE9IM pattern. Returns true if the computed matrix matches the pattern. The pattern is a 9-character string containing symbols in the set "012TF*". "012F" match the corresponding dimension symbol; "T" matches any non-empty dimension; "*" matches any dimension.

Kind: global property of geos
Returns: number - 1 on true, 0 on false, 2 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
g1GEOSGeometryFirst geometry in pair
g2GEOSGeometrySecond geometry in pair
imPatternStringPointerDE9IM pattern to match

geos.GEOSRelate_r ⇒ StringPointer

Calculate the DE9IM string for this geometry pair. The result is a 9-character string containing dimension symbols in the set "012F".

Kind: global property of geos
Returns: StringPointer - DE9IM string. Caller is responsible for freeing with GEOSFree(). NULL on exception

ParamTypeDescription
handleGEOSContextHandle_t-
g1GEOSGeometryFirst geometry in pair
g2GEOSGeometrySecond geometry in pair