I think this is too brief and doesn't specify what is the allowed type of geom.
I think it should refer to geof:geometryN
returns the nth geometry of geom if it is a GeometryCollection that is defined in a literal type (such as in the case of a sf:GeometryCollection) or geom if it is a Geometry. This function is not applicable to the type geo:GeometryCollection, as elements in geo:GeometryCollection are not guaranteed to be ordered.
because numGeometries is the maximum N that can be passed to geometryN.
Also, the description:
should say something about sf:GeometryCollection and geo:GeometryCollection (unlike geometryN, it can apply to both)
should return 1 if applied to other than a GeometryCollection
Finally, the return type should be xsd:integer not xsd:double
numGeometries is defined as
I think this is too brief and doesn't specify what is the allowed type of
geom
.I think it should refer to
geof:geometryN
because numGeometries is the maximum N that can be passed to geometryN.
Also, the description:
Finally, the return type should be xsd:integer not xsd:double