[postgis-devel] [PostGIS] #925: [raster] ST_Transform

PostGIS trac at osgeo.org
Thu Jun 9 06:37:38 PDT 2011


#925: [raster] ST_Transform
----------------------------+-----------------------------------------------
 Reporter:  dustymugs       |       Owner:  dustymugs    
     Type:  task            |      Status:  assigned     
 Priority:  medium          |   Milestone:  PostGIS 2.0.0
Component:  postgis raster  |     Version:  trunk        
 Keywords:  history         |  
----------------------------+-----------------------------------------------

Comment(by mcayland):

 Hmmm so do you have a static or a dynamic PROJ.4 link on Windows? The
 trick to producing the DLL is this line on
 http://trac.osgeo.org/postgis/wiki/DevWikiWinMingWSys_14_15:

 gcc -shared -o libproj.dll -Wl,--out-implib=libproj.dll.a -Wl,--export-
 all-symbols -Wl,--enable-auto-import -Wl,--whole-archive libproj.a -Wl
 ,--no-whole-archive /c/mingw/lib/libmingw32.a

 Perhaps you need to temporarily rename libproj.a after you've done this in
 order to prevent raster finding the static version?

 In terms of the PROJ.4 search paths for grid files, Regina mentioned this:
 ttp://trac.osgeo.org/postgis/browser/trunk/postgis/lwgeom_transform.c#L602.
 All this does is ADD this to the search path, so PROJ.4 will still search
 in other locations. I believe that these are currently the value of the
 PROJ4LIB environment variable (if it exists), then the specified search
 path, and then finally a fixed location generated at compile time
 (typically C:\PROJ\LIB).

 Hope this helps you guys :)

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/925#comment:37>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list