[mapserver-users] maps all look squished

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Fri Aug 20 11:22:43 EDT 2010


Hi,

I have never used any MabObj things, only shp2img, Mapserver CGI and WMS clients.  However, I guess that your system is taking the EXTENTS from your mapfile as well as SIZE. If you change the output projection without changing extents you will see nothing because the view window is no more in the same place as the data are.  And SIZE parameters can squeese your image, play with them and see.

-Jukka-


-----Alkuperäinen viesti-----
Lähettäjä: mapserver-users-bounces at lists.osgeo.org puolesta: Josh Jordan
Lähetetty: pe 20.8.2010 17:24
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: Re: [mapserver-users] maps all look squished
 
The projection in the mapfile is "init=epsg:2023".  This is the same projection between /MAP/,/END/ as it is for all the projections between /LAYER/,/END/.  When the projection of a layer is not the same as the projection of the map, the layer does not print.  It seems redundant to have to write the same projection everywhere.
I request the map image with:ms_newMapObj($PM_MAP_FILE);


--- On Fri, 8/20/10, Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi> wrote:

From: Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi>
Subject: Re: [mapserver-users] maps all look squished
To: "Josh Jordan" <outerspaceman81 at yahoo.com>,
 mapserver-users at lists.osgeo.org
Date: Friday, August 20, 2010, 8:04 AM

Hi,

What is the projection of your layer data, what is the projection for the output, and how do you request the image from Mapserver?  


-Jukka Rahkonen-


-----Alkuperäinen viesti-----
Lähettäjä: mapserver-users-bounces at lists.osgeo.org puolesta: Josh Jordan
Lähetetty: pe 20.8.2010 6:16
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] maps all look squished
 
No matter what projection I use, my maps always look stretched too wide, or squished.  What could be the problem?  What can I do?  Attached is a picture of the problem, the
 top michigan is correct, the bottom one is generated in mapserver.
Can anyone from Michigan suggest a projection where the state looks the most correct?
Thanks.



      




      



More information about the mapserver-users mailing list