[postgis-devel] Ring Indices in DumpPoints

Paul Ramsey pramsey at cleverelephant.ca
Mon Mar 1 10:59:34 PST 2021



> On Mar 1, 2021, at 10:47 AM, Regina Obe <lr at pcorp.us> wrote:
> 
>> Yeah, I was blinded by the logic of the polygon. If exterior ring is zero,
> then
>> the interiors start at 1 and that lines up with ST_GetInteriorRingN, and
>> everything is neat and tidy.
>> How about the Logic of Computers (start all lists at zero?) If there's
> multiple
>> arguments and no consensus, than the Logic of Stasis holds: change
> nothing.
>> 
>> P.
>> 
> Change nothing sounds good to me :)
> But if you must change anything change everything to 1-based.

Then interior ring indices are off-by-one. Doesn't sound like there's a solution that "feels right" to everyone.
P

> 
> 
> 
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list