[PROJ] comparing projstrings

Idan Miara idan at miara.com
Tue Jan 1 13:31:40 PST 2019


Even and Thomas,

The gdal method works great!
Thanks!

On Tue, 1 Jan 2019, 20:00 Thomas Knudsen <knudsen.thomas at gmail.com wrote:

> Also remember to take pipeline globals into account: proj=pipeline
> ellps=GRS80 step ... step... will set ellps=GRS80 for all steps due to the
> definition being put before first step definition
>
> tir. d. 1. jan. 2019 16.40 skrev Even Rouault <even.rouault at spatialys.com
> >:
>
>> Idan,
>>
>> >
>> > Is there any importance for the order of the parameters in a projstring
>> CRS
>> > definition?
>>
>> For a single step pipeline, no. But starting with PROJ 5, it you use a
>> proj=pipeline, yes the order of steps matter.
>>
>> >
>> > Is there a function that compares projstrings that takes into
>> consideration
>> > that two projstrings can be equal even if the strings are not exactly
>> the
>> > same?
>>
>> For single-step proj strings and currently released versions, using GDAL
>> with
>> OSRImportFromProj4() + OSRIsSame() will do
>>
>> If you use PROJ master, you can equivalently use
>> proj_create_from_proj_string() + proj_is_equivalent_to(). Note that this
>> will
>> work as you mentionned only for single-step strings. (For multiple steps,
>> this
>> will mostly be equivalent to exact string comparisons)
>>
>> Even
>>
>> --
>> Spatialys - Geospatial professional services
>> http://www.spatialys.com
>> _______________________________________________
>> PROJ mailing list
>> PROJ at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/proj
>>
> _______________________________________________
> PROJ mailing list
> PROJ at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/proj
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20190101/035872e3/attachment.html>


More information about the PROJ mailing list