two layers different projections

Jon Saints saintsjd at YAHOO.COM
Tue Mar 15 22:13:48 PST 2005


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
>



More information about the MapServer-users mailing list