[mapserver-users] Projection Woes?

Ed McNierney ed at topozone.com
Sat Dec 29 15:11:31 EST 2001


Dave -

Well, that problem usually means you have the extents set incorrectly.
Your requested map extents need to be in the units of the OUTPUT
projection, not decimal degrees.  Is that what you're doing?

	- Ed

Ed McNierney
Chief Mapmaker
TopoZone.com


-----Original Message-----
From: Dave Howlett [mailto:davehowlett at sympatico.ca]
Sent: Saturday, December 29, 2001 3:18 PM
To: mapserver-users at lists.gis.umn.edu
Subject: Re: [mapserver-users] Projection Woes?


Thanks Ed!

Makes sense and I believe I may have tried this way in my earlier
attempts.
But, with the layers where I use:

PROJECTION
        "proj=latlong"
        "ellps=GRS80"
END

... I can't find them in my displays. So I'm not out of the woods yet.

Dave

Ed McNierney wrote:

> Dave -
>
> If you're putting that PROJECTION block in each of your LAYER objects,
> then you're telling MapServer that each layer's data is in the exact
> same projection as the output, and therefore MapServer decides that
> there's no reprojection to be done!
>
> If the data for the LAYER objects is in unprojected decimal degrees,
the
> projection block for each LAYER should be:
>
> PROJECTION
>         "proj=latlong"
>         "ellps=GRS80"
> END
>
> That way MapServer knows that the INPUT is in decimal degrees and the
> OUTPUT is in LCC so there's some reprojecting to be done.
>
>         - Ed
>
> Ed McNierney
> Chief Mapmaker
> TopoZone.com
> ed at topozone.com
> (978) 251-4242
>
> -----Original Message-----
> From: Dave Howlett [mailto:davehowlett at sympatico.ca]
> Sent: Saturday, December 29, 2001 1:57 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [mapserver-users] Projection Woes?
>
> I'm trying to reproject my data to a Lambert Conformal Conic
projection.
> The data is in a geographic coordinates projection (or non-projected).
> There doesn't appear to be a lot of information online regarding
> performing this task within MapServer unfortunately. If someone can
> proof me wrong on that I'd greatly appreciate it :)
>
> So far I have defined the projection which I desire in the Map Object
> and each of the Layer Objects with:
>
> PROJECTION
>      "proj=lcc"
>      "ellps=GRS80"
>      "lat_0=49"
>      "lon_0=-95"
>      "lat_1=49"
>      "lat_2=77"
> END
>
> Yet there is no difference in the display.
>
> My units are in decimal degrees. Could this be the problem?
>
> I'm running MapServer 3.5 with Proj.4 compiled on a Redhat box.
>
> Please help me with my distorted views!!
>
> Dave




More information about the mapserver-users mailing list