two layers different projections
Jeff McKenna
jmckenna at DMSOLUTIONS.CA
Wed Mar 16 06:46:47 PST 2005
have u tried it with EPSG codes (to eliminate the possibility that you
are missing parameters)?
for the map object and dcdem2000 layers:
PROJECTION
"init=EPSG:4326"
END
for the dcorthoindex layer:
PROJECTION
"init=EPSG:26918"
END
jeff
Jon Saints wrote:
> Not all of my email pasted into the first post. Using
> the mapfile below, the layers do not line up. Are my
> projection settings in the map incorrect? any other
> hints from others who have tried the same?
>
> Thanks
> Jon
>
>
> --- Jon Saints <saintsjd at YAHOO.COM> wrote:
>
>>I have two layers in different projections. My
>>mapserver is compiled with PROJ support.
>>
>>One layer is: lat-long
>>
>>the other is:
>>UTM Zone 18N, NAD 83, meters
>>resolution: 30 cm
>>
>>my mapfile is:
>>
>>NAME DC
>>STATUS ON
>>
>>SIZE 1024 768
>>WEB
>> IMAGEPATH "/var/www/jons/dcmap/tmp/"
>> IMAGEURL "/jons/dcmap/tmp/"
>> MAXSCALE -2.0
>>END
>>
>>EXTENT -77.1665 38.7813 -76.8628 39.0053
>>UNITS dd
>>IMAGECOLOR 255 255 255
>>IMAGETYPE png
>>
>>PROJECTION
>> "proj=latlong"
>>END
>>
>>LEGEND
>> KEYSPACING 10 0
>>END
>>
>>REFERENCE
>> EXTENT -77.1665 38.7813 -76.8628 39.0053
>> IMAGE /var/www/jons/dcmap/tmp/ref.gif
>> STATUS on
>> SIZE 200 150
>>END
>>
>>LAYER
>> NAME dcdem2000
>> TYPE POLYGON
>> STATUS ON
>> METADATA
>> desc "Census Blocks"
>> logo "test.jpg"
>> END
>> TEMPLATE "blank.html"
>> DATA "/home/jons/Data/DC/created/dcdem2000"
>> CLASS
>> NAME "Census Blocks 2000"
>> COLOR 225 225 225
>> OUTLINECOLOR 100 100 100
>> END
>> PROJECTION
>> "proj=latlong"
>> END
>> UNITS dd
>>END
>>
>>LAYER
>> UNITS meters
>> NAME dcorthoindex
>> TYPE POLYGON
>> STATUS ON
>> METADATA
>> desc "Aerial Photos Index"
>> logo "test.jpg"
>> END
>> TEMPLATE "blank.html"
>> DATA "/home/jons/Data/DC/created/dcorthoindex"
>> CLASS
>> NAME "Aerial Photo Index"
>> OUTLINECOLOR 200 100 100
>> END
>> PROJECTION
>> "proj=utm"
>> "ellps=GRS80"
>> "datum=NAD83"
>> " zone=18"
>>
>> END
>>END
>>
>>END
>>
>>Thanks
>>Jon
>>
>
>
--
Jeff McKenna
DM Solutions Group Inc.
http://www.dmsolutions.ca
More information about the MapServer-users
mailing list