Skip to main content

equalsIdentical

Returns true if geometries a and b are of the same type and have exactly the same vertices in the same order on the XYZM plane.

Vertices are checked by index so any additional midpoint or reversed order results in the geometries not being considered equal.

NaN values are considered to be equal to other NaN values.

Parameters

NameTypeDescription
aGeometryFirst geometry
bGeometrySecond geometry

Returns

boolean

true if geometries a and b are of the same type and have matching vertices

See also

  • equals checks if two geometries are topologically equal
  • equalsExact checks whether two geometries are of the same type and have the same vertices in the same order on the XY plane
  • GeometryRef#normalize normalized geometries are easier to compare

Examples