[PROJ] Proj 6 API questions

Even Rouault even.rouault at spatialys.com
Tue Mar 19 03:12:13 PDT 2019


> >> bin/projinfo -o all "Airy 1830"
> > 
> > 
> > PROJ string:
> > +ellps=airy
> > 
> > WKT2_2015 string:
> > ELLIPSOID["Airy 1830",6377563.396,299.3249646,
> > 
> >    LENGTHUNIT["metre",1],
> >    ID["EPSG",7001]]
> > 
> > ...
> > 
> > Looks good. But if I try querying EPSG:7001, I get
> > 
> > 
> >> bin/projinfo -o all "EPSG:7001"
> > 
> > 
> > input string: parsing of user string failed: crs not found
> > 
> > Shouldn't that give the same results as searching by name?
> > 
> 
> 
> From the projinfo docs:
> 
> "where {object_definition} or {object_definition} is a PROJ string, a WKT
> string,
 an object name or a AUTHORITY:CODE (where AUTHORITY is the name of
> a CRS authority and CODE the code of a CRS found in the proj.db database)."
> 
> You are giving a authority:code combination so it is only looking for a CRS.
> With
 the -k switch you can change that behaviour to look for a operation
> instead. 
> Maybe there’s a need for more options to the -k switch? Like ellipsoid,
> axis, AoU
 and so on?

It also accepts OGC URNs, such as urn:ogc:def:ellipsoid:EPSG::7001

I've just improved the docs about that.

Even


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the PROJ mailing list