[Proj] Proj.4 and PHP

Ryan Ollerenshaw ollerery at engr.orst.edu
Tue Jul 18 08:02:55 PDT 2006


I installed MapServer with proj4 but i am getting the following error:

Warning: [MapServer Error]: loadProjection(): Projection support is not
available. in /usr/local/mapserver/htdocs/simplemap.phtml on line 5

Any help with this would be great:

PHP code:
<?
dl("php_mapscript.so");

$map_file="./usa1.map";
$map1 = ms_newMapObj($map_file); //this is line 5
?>

Mapfile:

MAP
    NAME USA1
    STATUS ON
    SIZE 800 500
    IMAGETYPE PNG
    IMAGECOLOR 240 240 240
    SHAPEPATH "../mars_data/"
    EXTENT -8000000 300000 5000000 1500000
    UNITS METERS

  PROJECTION
        "proj=lcc"
        "lat_1=32"
        "lat_2=44"
        "lat_0=38"
        "lon_0=-100" "x_0=0" "y_0=0"
        "ellps=GRS80" "datum=NAD83"
    END

    WEB
         IMAGEPATH "/tmp/ms_tmp/"
         IMAGEURL "/ms_tmp/"
    END

        LAYER
                NAME "US state boundaries"
                TYPE POLYGON
                STATUS ON
                DATA "statesp020"
                PROJECTION
                        "proj=latlong"
                        "ellps=GRS80"
                        "datum=NAD83"
                END
                CLASS
                        NAME "US states"
                        OUTLINECOLOR 60 60 60
                        COLOR 255 255 0
                        SYMBOL 0
                END
        END
END



More information about the Proj mailing list