[postgis-devel] PostGIS proj default path change
Mark Cave-Ayland
mark.cave-ayland at siriusit.co.uk
Sun Jun 12 05:04:03 PDT 2011
On 10/06/11 22:20, Paragon Corporation wrote:
> Mark,
>
> Your opinion would be appreciated in this matter and of course I guess all
> PSC have to vote on it since it's a packaging change.
>
> I was thinking about how you said proj libraries should be installed in a
> versioned folder under
>
> Postgis-2.0
> proj
>
> For example
>
> Right now we have
>
> postgis
> proj
> postgis-1.5
> postgis-2.0.
>
>
> Which was sort of nice since proj shift files are a bit hefty and it allowed
> all installs to share the same proj file.
>
> With proj 4.7 -- the naming now defaults to libproj-0.dll which would mean
> we could have postgis-1.. Using a different proj from Postgis-2 branch (at
> least for windows anyway)
>
> But I wouldn't want them using the same proj files. So if you want, we
> could change the search location to what you asked for a long time ago
>
> postgis-2.0
> proj
>
>
> What do people think about that change. That would also fix the gdal issue
> of not having to register libprojso since it defaults to libproj-0.dll
> anyway.
>
> So for people who are not sure what I'm talking about, I'm proposing to
> change this line
>
> http://trac.osgeo.org/postgis/browser/trunk/postgis/lwgeom_transform.c#L602
>
> To go in versioned postgis folder.
>
> So change from
> strncat(path, "/contrib/postgis/proj", MAXPGPATH - strlen(path) - 1);
>
> To
>
> strncat(path, "/contrib/postgis-whatever_psotgis_version/proj", MAXPGPATH -
> strlen(path) - 1);
I think the only question to ask here is do you consider the grid files
to belong to the PROJ.4 installation or PostGIS installation, i.e.
should you version the grid files against PROJ.4 files or against the
PostGIS version as you have done above?
Either way I have no objection to the change as the feature is
undocumented and was added to resolve the issue of allowing PostGIS to
always find a suitable set of grid files for PROJ.4. Therefore if you
need to change it to meet your needs, please go ahead.
ATB,
Mark.
--
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063
Sirius Labs: http://www.siriusit.co.uk/labs
More information about the postgis-devel
mailing list