Opened 17 years ago
Last modified 15 years ago
#24 closed enhancement
Enhancement: containsVertex function — at Initial Version
Reported by: | mtnclimb | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | PostGIS 1.5.0 |
Component: | postgis | Version: | |
Keywords: | Cc: |
Description
A containsVertex function might be a useful addition.
int containsVertex(Geometry geom, double x, double y)
I geom contains a vertex with location (x,y), returns the index of that vertex. Otherwise returns -1. For geometrys which contain more than one coordinate sequence, the index is the cumulative index over all coordinate sequences.
This can be implemented as a fast linear scan of all vertices in the geometry.
Note:
See TracTickets
for help on using tickets.