problem with MapServer global projection
John Daly
jdaly at PANIX.COM
Mon Nov 20 11:31:10 PST 2006
Percy,
Thanks, and yes, I was confused about how the source data gets reprojected
to the definition of the output (or global) projection. I got it going now.
John
----- Original Message -----
From: "percy" <percyd at PDX.EDU>
To: <MAPSERVER-USERS at LISTS.UMN.EDU>
Sent: Monday, November 20, 2006 1:16 PM
Subject: Re: [UMN_MAPSERVER-USERS] problem with MapServer global projection
> Hi John,
> Do you have a Projection object defined in your Layer object, too?
>
> You probably need something like:
> projection
> "init=epsg:4326"
> end
> If you are using DD...
>
> MS needs to know what coordinate system your data is in before it can
> reproject it.
> Percy
>
> John Daly wrote:
>> All,
>>
>> I'm a new MapServer user and list member, and I'd like to say hello to
>> everyone. I'm also running into a problem trying to create a global map
>> projection, and I would appreciate any and all feedback. I'm trying to
>> use the projection example in Web Mapping illustrated, but although I
>> have Proj4 support compiled in to MS, it does not seem to be actually
>> using the new units and projection defined in my global.map file:
>>
>> MAP
>> CONFIG "PROJ_LIB" "/usr/local/share/proj"
>> PROJECTION
>> "init=epsg:42304"
>> END
>> # PROJECTION
>> # "proj=lcc"
>> # "ellps=GRS80"
>> # "lat_0=49"
>> # "lon_0=-95"
>> # "lat_1=49"
>> # "lat_2=77"
>> # "datum=NAD83"
>> # "units=m"
>> # "no_defs"
>> # END
>>
>> I've tried both approaches, and neither works. The verbose switch to
>> MapServer prints out:
>> .
>> ./cgi-bin/mapserv -v
>> MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
>> SUPPORTS=GEOS INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE
>>
>> ...and i'm using version 4.5 of Proj4. both were compiled from source on
>> RedHat 9
>>
>> I do not getting any actual error message, just a failure to correctly
>> use the new projection. Has anyone run across this? Is there an easy
>> way to test if my proj4 support is not configured correctly?
>>
>> Thanks,
>>
>> John
>>
>
> --
> David Percy
> Geospatial Data Manager
> Geology Department
> Portland State University
> http://gisgeek.pdx.edu
> 503-725-3373
More information about the MapServer-users
mailing list