[PROJ] Proj6 Docs

Even Rouault even.rouault at spatialys.com
Sat Feb 16 10:24:17 PST 2019


Paul,

Answering this question and the one about X/Y order.

Yes PJ objects can be of different kinds and do not all play well with all 
functions.

proj_crs_get_coordinate_system(), as the name implies, expects a PJ object of 
type CRS, but proj_create_crs_to_crs() returns a PJ object of type Coordinate 
Operation / pipeline

So you should call proj_crs_get_coordinate_system() on the result of 
proj_create("EPSG:4326") instead.

Or, after the commit I just pushed, you can extract the source CRS from the 
pipeline with proj_get_source_crs() (but only if you've created the pipeline 
with proj_create_crs_to_crs(). Not if you created it with 
proj_create("+proj=pipeline ...") )

Regarding the proj6 docs, they will be online as soon as it is promoted. You 
can build them locally with "make html" in the docs/ directory. The output 
will be in docs/build/html/

Even

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


More information about the PROJ mailing list