[mapserver-users] maps all look squished

Josh Jordan outerspaceman81 at yahoo.com
Fri Aug 20 11:37:58 EDT 2010


When I change the extents, it will always zoom out so it can fit everything in the extent in the window.  So if I change the extent to be only a thin vertical line it makes no difference.  Changing the size makes no difference,  it was 500 600, I changed it to 100 5000 and 5000 100 and there is no difference.

--- 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, 11:22 AM

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.



      




      




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100820/1b162253/attachment.html


More information about the mapserver-users mailing list