[postgis-devel] Clarifying support of standards and specs

Paul Ramsey pramsey at cleverelephant.ca
Tue Dec 10 14:41:06 PST 2013


The docs are just really old and haven’t be substantially touched in this area for ages, certainly not much since 2.0 when the wkb/wkt code got entirely replaced. So what you’re seeing is a need for a rewrite.

(1) “superset” means more than what’s in the early SFSQL standard, so the things in the ISO spec, and then things not even in that spec yet, like TRIANGLE and TIN and POLYHEDRAL SURFACE (though I guess now the SFSQL standard has mostly caught us up, object-wise).

(2) the old SFSQL version that had no 3d (1.1 from 1999)

(3) sentence probably dates from 1.5 or earlier, when the Z/M tags were not supported on WKT

(4) yep, Q&A probably post-dates the other sentence. 

Since the standards are themselves a hodgepodge, I think we should not worry so much about explicitly referencing chapter and verse about what standard each function or object or representation derives from, but rather be more clear about what the actual Current State of representations is, and scrub the docs a little more carefully for old information.

P.

-- 
Paul Ramsey
http://cleverelephant.ca
http://postgis.net

On December 10, 2013 at 4:43:26 PM, Mateusz Loskot (mateusz at loskot.net) wrote:

Folks,

Recently, I have been reading through the recent OGC and SQL/MM,
sad me, and PostGIS docs, trying to understand things.

Apart from numerous confusing disjoint'ness between OGC and SQL/MM,
which I'm hopeless about getting clarified, I wonder if the PostGIS manual
could be updated to sound clearer on the standards the software supports.

For example, there are four parts which are unclear to me:

1) What does the superset mean in:

"""
4.1. GIS Objects
The GIS objects supported by PostGIS are a superset
"""

2) Which version of OGC SFS does this "only support 2d" refer to?

"""
1.2. PostGIS EWKB, EWKT and Canonical Forms
OGC formats only support 2d geometries,
"""

3) What does this sentence actually mean?

"""
4.1.3. SQL-MM Part 3
The well-known text extensions are not yet fully supported.
"""

4) Doesn't the Q&A below stay in contradiction with the "only support
2d" in case 2) above?
Or, what are the "extensions"?

"""
FAQ 3.5. What kind of geometric objects can I store?
You can store point, line, polygon, multipoint, multiline,
multipolygon, and geometrycollections (...) These are specified in the
Open GIS Well Known Text Format (with XYZ,XYM,XYZM extensions).
"""


Yet another example

"""
4.1.2. PostGIS EWKB, EWKT and Canonical Forms

OGC formats only support 2d geometries (...)
PostGIS extended formats are currently superset of OGC (...)

MULTICURVE( (0 0, 5 5), CIRCULARSTRING(4 0, 4 4, 8 4) )
"""

Now, given that the OGC SF 1.2+ specifies MultiCurve as an abstract type,
and SQL/MM makes it concrete, whichof the standards PostGIS EWKB/EWKT
actually extend here?

Basically, my question is, shouldn't the manual be more specific about
standard and version per feature?

If the answer is "No." and PostGIS stores/serves 'whatever' it is asked to,
leaving decisions such as about MultiCurve object is valid or not as
application-defined (PostGIS client decides) then please forget all my
questions.

I just would like to understand PostGIS position and strategy about it,
is that a documentation inaccuracy/lacking/error or a concious decision to
not to be too strict about that stuff.

Best regards,
--  
Mateusz Łoskot, http://mateusz.loskot.net
_______________________________________________
postgis-devel mailing list
postgis-devel at lists.osgeo.org
http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20131210/9313597b/attachment.html>


More information about the postgis-devel mailing list