[postgis-devel] ST_Transform doesn't need Proj support?
Mark Cave-Ayland
mark.cave-ayland at siriusit.co.uk
Thu Nov 20 07:26:27 PST 2008
Obe, Regina wrote:
> I was looking at the lwpostgis.in.sql in 1.3 and I only see a
> #ifdef USE_PROJ wrapped around the ST_AsKMLs.
>
> Does that mean ST_Transform doesn't need projection support or am I
> reading this wrong?
Yes it does, although it appears the check for this is in the source
code rather than in the .sql file:
#ifndef USE_PROJ
PG_FUNCTION_INFO_V1(transform);
Datum transform(PG_FUNCTION_ARGS)
{
elog(ERROR,"PostGIS transform() called, but support not
compiled in. Modify your makefile to add proj support, remake and
re-install");
PG_RETURN_NULL();
}
#endif
Incidentally I've just noticed that you've also committed the changes
about PostGIS requiring PROJ.4 support to SVN trunk. I wouldn't worry
about this, since PROJ.4 and GEOS are compulsory dependencies for 1.4
(i.e. configure won't let you continue until you have installed both of
them).
ATB,
Mark.
--
Mark Cave-Ayland
Sirius Corporation - The Open Source Experts
http://www.siriusit.co.uk
T: +44 870 608 0063
More information about the postgis-devel
mailing list