[geotk] Is WKT always sufficient to define a CRS?

Jon Blower j.d.blower at reading.ac.uk
Tue Aug 2 12:38:28 EDT 2011


Hi Martin,

Thanks for the fast reply!  Proj4 is attractive since it seems I can use it in Javascript too.

* If I'm using the embedded EPSG database within Geotoolkit, can I get hold of the Proj4 string in my application?  

* Do Proj4 string contain all the info from the EPSG database, or do they fall short in the ways you describe below?

Cheers, Jon



-----Original Message-----
From: geotoolkit-bounces at lists.osgeo.org [mailto:geotoolkit-bounces at lists.osgeo.org] On Behalf Of Martin Desruisseaux
Sent: 02 August 2011 16:10
To: geotoolkit at lists.osgeo.org
Subject: Re: [geotk] Is WKT always sufficient to define a CRS?

Hello Jon

Le 02/08/11 15:17, Jon Blower a écrit :
> I'm wondering how coordinate reference systems may be serialized and 
> exchanged. Is WKT a good serialization format, i.e. can all CRSs be 
> expressed completely (and decoded therefrom)?
It is a good format for the most common CRS if you don't need metadata (area of validity, scope, accuracy, aliases, remarks). For less common CRS, it may fall short in the following cases:

  * Temporal CRS (however I think we could push for an official extension at OGC
    if there is interest for that)
  * Stereographic projections over poles having axes like "South along 90°
    meridian" (but extension coud also be considered)

> Are there any pros and cons in this respect of WKT vs Proj4 syntax?
>
I think that are pretty similar in fonctionalities. My guess:

Proj4 advantages:

  * More compact string
  * More reliable when the information come from the PostGIS "spatial_ref_sys"
    table. The WKT declared in PostGIS have errors, but those errors seem to be
    mostly unoticed or have low priority (the PostGIS team didn't replied to my
    bug report) because PostGIS doesn't use them - it uses only the column
    containing Proj4 parameter strings.

WKT advantages:

  * Standardized (however we have to nuance: there is different "flavors" of
    WKT. For example Oracle and ESRI WKT are slightly different than the
    standard one).
  * Maybe more flexibility in the way to declare projection parameters and axes
    order.


Regards,

Martin

_______________________________________________
Geotoolkit mailing list
Geotoolkit at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geotoolkit


More information about the Geotoolkit mailing list