[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    [postgis-users] Zero-based indexing
From:       David Blasby <dblasby () refractions ! net>
Date:       2003-04-10 17:29:36
Message-ID: 3E95AA00.5050204 () refractions ! net
[Download RAW message or body]

I've noticed that JTS (and GEOS) uses 0-based indexing.  I.e. 
getGeometryN(), pointN(), getInteriorRingN() - the first "thing" is 0.
PostGIS also follows this convention.

Unfortunately, the OGC SF SQL conformance test uses 1-based indexing. 
 pointN(1) is the first point.

I looked in the SF SQL specification, and it doesnt specify which to 
use.  Does anyone have a reference to say that 0-based indexing is 
correct?  The conformance test is filled with errors so I dont trust it.

dave
ps. yes, this means that we are getting close to having postgis pass the 
conformance tests.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic