mapserv not following extents?
Kelly Koehn
knkoehn at HOTMAIL.COM
Thu May 18 14:04:42 PDT 2006
Ed:
Thanks for the response. I feel kind of stupid now for not realizing my
coordinates were wrong :) After some reworking of the extent values I
finally achieved what I wanted.
Thanks!
Kelly
>
>Kelly -
>
>You're asking (in the mapfile) for a square image (400x400 pixels) with
>a decidedly NON-square extent - 5.2 degrees by 0.75 degrees. You can't
>do both at the same time, so MapServer is honoring the larger extent
>(the X dimension) and extending the smaller extent (the Y dimension) in
>order to fill the size of the image you requested. MapServer uses this
>algorithm to ensure that you always get the geographic extent you
>requested, and gives you more if needed.
>
>What output do you really want? You're asking for a map of an area
>that's 7 times wider than it is tall. Is that the area you want, or do
>you want something different?
>
> - Ed
>
>Ed McNierney
>President and Chief Mapmaker
>TopoZone.com / Maps a la carte, Inc.
>73 Princeton Street, Suite 305
>North Chelmsford, MA 01863
>ed at topozone.com
>(978) 251-4242
>
>-----Original Message-----
>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
>Behalf Of Kelly Koehn
>Sent: Thursday, May 18, 2006 10:48 AM
>To: MAPSERVER-USERS at LISTS.UMN.EDU
>Subject: [UMN_MAPSERVER-USERS] mapserv not following extents?
>
>I've been working with the USGS Counties and States maps (located at
>nationalatlas.gov) and the GIS maps from the NOAA and I've been running
>into a stumbling block. I've been able to get the maps to display but
>it seems that the mapserv cgi app only pays attention to one of the
>extents.
>
>I'll copy my map file below but for my example use the following line:
> EXTENT -100.05 37.1 -94.85 37.85
>
>It seems to fit the -100.05 and -94.85 just fine on the map and that
>gives me the coordinates I need on the X axis but it never seems to
>follow on the Y-axis. Its like it tries to create something
>porportional. What the end result is a map that is squished from top to
>bottom. (see at
>http://www.aspiredillusion.com/cgi-bin/mapserv?map=/nexrad/map/nexrad.ma
>p&mode=map
>)
>
>Has anyone else experienced this or know of a way around it? Here is
>the -v info from mapserv:
>MapServer version 4.9 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
>OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE
>SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
>SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7
>INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG
>
>
>Thanks
>Kelly Koehn
>
>
>
>---------
>
>Copy of nexrad.map
>---
>MAP
> IMAGETYPE GIF
> SIZE 400 400
> SHAPEPATH "/nexrad/map"
> TRANSPARENT ON
> UNITS DD
> EXTENT -100.05 37.1 -94.85 37.85
> FONTSET "font.set"
>
> LAYER
> NAME c100000jan2902
> DATA c100000jan2902
> STATUS DEFAULT
> TYPE POLYGON
> #FILTERITEM county
> #FILTER "Sedgwick County"
> LABELITEM "COUNTYNAME"
> CLASS
> NAME "US Counties"
> OUTLINECOLOR 0 0 0
> LABEL
> TYPE truetype
> FONT arial
>
> SIZE 6
> ANTIALIAS TRUE
> COLOR 255 0 0
> OUTLINECOLOR 255 255 255
> ANGLE 0
> PARTIALS false
> END
> END
> END
>END
>
>_________________________________________________________________
>Don't just search. Find. Check out the new MSN Search!
>http://search.msn.click-url.com/go/onm00200636ave/direct/01/
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the MapServer-users
mailing list