[postgis-devel] Issue 126 in postgis: Don't include private PROJ.4 header projects.h

codesite-noreply at google.com codesite-noreply at google.com
Mon Mar 9 17:44:08 PDT 2009


Status: New
Owner: ----

New issue 126 by mloskot: Don't include private PROJ.4 header projects.h
http://code.google.com/p/postgis/issues/detail?id=126

In current SVN trunk, PostGIS file lwgeom_transform.c includes private
header of PROJ.4 - projects.h.
This header is...private and should not be included form PROJ.4 client code.
Instead, proj_api.h should be used. However, replacing these headers
requires number of changes in lwgeom_transform.c. For instance, use API
call(s) instead of accessing internal structures:

current code:

  if( !srcdefn->is_latlong )

new code:

  if( !pj_is_latlong( srcdefn ) )

Including private header projects.h makes it impossible to compile using
Microsoft Visual C++ compiler, becasue of well-known conflicts with
definitions from windows.h. Here is confirmation of existence of that
issue: http://lists.osgeo.org/pipermail/gdal-dev/2005-May/005669.html

I've just (re)hit this problem and it stops me from moving forward with
building PostGIS using Visual C++.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings



More information about the postgis-devel mailing list