[mapserver-users] RE: mapserver-users Digest, Vol 12, Issue 73

Frank Warmerdam warmerdam at pobox.com
Tue Jan 20 10:38:05 EST 2009


Chad Clabaugh wrote:
> Am I not specifying my projection by using "init=epsg:4326" within the
> PROJECTION BLOCK????  I have tried as many different projections as I can
> find. Including 4326, 900913, 3785, and the following block...

Chad,

You need to specify a PROJECTION block on your LAYER *as well as*
on your MAP object. If everything is in the same coordinate system
then they can match.  Your sample map (fragment?) only had a
projection declaration on the map.

Best regards,

> Message: 3
> Date: Mon, 19 Jan 2009 20:16:28 -0800
> From: "Paul Ramsey" <pramsey at cleverelephant.ca>
> 
> You need to specify the PROJECTION of your LAYER.
> 
> P.
...
>>
>> MAP
>>
>>   NAME COVERAGE
>>
>>   STATUS ON
>>
>>   SIZE 1400 900
>>
>>   EXTENT 639000.000000 4535300.000000 689900.000000 4582600.000000
>>
>>   UNITS METERS
>>
>>   SHAPEPATH "shapefiles"
>>
>>   IMAGECOLOR 220 220 220
>>
>>
>>
>>   IMAGETYPE PNG
>>
>>
>>
>>   PROJECTION
>>
>>     "init=epsg:4326"
>>
>>   END
>>
>>
>>
>>   LAYER
>>
>>     NAME CoverageMap
>>
>>     TYPE POLYGON
>>
>>     STATUS DEFAULT
>>
>>     DATA notforchad
>>
>>
>>
>>     CLASS
>>
>>       STYLE
>>
>>         OUTLINECOLOR 255 128 128
>>
>>         COLOR 225 0 0
>>
>>       END
>>
>>     END
>>
>>
>>
>>   END
>>
>> END



-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-users mailing list