Index: pages/geopoly.in ================================================================== --- pages/geopoly.in +++ pages/geopoly.in @@ -6,13 +6,13 @@

The Geopoly module is an alternative interface to the [R-Tree extension] that uses the [http://geojson.org | GeoJSON] notation ([https://tools.ietf.org/html/rfc7946 | RFC-7946]) to describe two-dimensional -polygons. Geopoly includes functions for detecting when one polygons is +polygons. Geopoly includes functions for detecting when one polygon is contained within or overlaps with another, for computing the -area contained within a polygon, for doing linear trasformations of polygons, +area enclosed by a polygon, for doing linear trasformations of polygons, for rendering polygons as [https://en.wikipedia.org/wiki/Scalable_Vector_Graphics | SVG], and other similar operations.

@@ -39,12 +39,12 @@ the JSON array of vertexes that describes a simple polygon.

A polygon is defined by its vertexes. Each vertex is a JSON array of two numeric values which are the X and Y coordinates of the vertex. -A polygon is a JSON array of these vertexes, and hence is an array -of arrays. +A polygon is a JSON array of at least four of these vertexes, +and hence is an array of arrays. The first and last vertex in the array must be the same. The polygon follows the right-hand rule: When tracing a line from one vertex to the next, the area to the right of the line is outside of the polygon and the area to the left is inside the polygon. In other words, the net rotation of the vertexes is counter-clockwise.