[Mapserver-users] Mapscript 3.7 / postgis / reprojection problem

John Deck jdeck at socrates.Berkeley.EDU
Wed Mar 19 01:26:51 EST 2003


I am running into an issue with reprojecting postgis layers using
mapscript 3.7.  I am reprojecting from latlong to the following
projection:  "proj=utm,ellps=GRS80,datum=WGS84,units=m,no_defs,zone=10".
The projection definition inside postgis is 4326 (and I have tried -1
too).  I have tried setting the layer projection definition in the
mapfile to: proj=latlong and init=epsg:4326 and nothing at all.

Here is what is interesting:
1. If I save output of the mapfile from mapscript and run it through the
mapserv cgi (3.7) everything works OK. The reproject works fine.
2. If I save the postgis file to a shape file and call the shape file
from within my mapscript program instead of the postgis layer everything
works fine (this time hitting php_mapscript.so version 3.7).

Problems only happen when the layer is inside Postgis and I reproject
inside mapscript 3.7.  Mapscript 3.6.3 works fine.  I'd like to use
mapscript 3.7 if it all possible because there are other features that I
need in this release.

System specs:
	mapscript 3.7. 
	postgis 0.7.3
	postgres 7.3.1
	php 4.2.1
	redhat 7.3

Compile params:
MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=GD2_RGB INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS
INPUT=GDAL INPUT=SHAPEFILE

Thanks for any help!

John Deck
Berkeley Natural History Museums Informatics Coordinator
(510) 643-3191




More information about the mapserver-users mailing list