[Mapserver-users] WMS layer alignment

Brian Johnson spiff88gis at hotmail.com
Wed Sep 17 16:45:25 EDT 2003


This was it!

Thanks for taking the time to respond.  Inserting &REASPECT=false the URL 
caused the WMS server to return a perfectly aligned image.

Again - thanks.  This has caused me much grief, and now I can look for other 
items to cause grief.

Brian


>From: "Brian Fischer" <bfischer at houstonengineeringinc.com>
>To: "Brian Johnson" <spiff88gis at hotmail.com>
>CC: <mapserver-users at lists.gis.umn.edu>
>Subject: RE: [Mapserver-users] WMS layer alignment
>Date: Wed, 17 Sep 2003 11:30:46 -0500
>
>Brian,
>
>I had a similar problem a while back and figured out it was an ArcIMS
>specific parameter that was doing it.  Try to add this parameter
>(&REASPECT=false) to your connection URL for the USGS.  The USGS seems
>to use this ArcIMS specific parameter.  I don't know if this is the same
>problem I was having, but it worked for me. Just a suggestion, hopefully
>it works for you.
>
>Brian
>
>Brian Fischer
>Houston Engineering, Inc.
>Maple Grove, MN
>(763) 493-4522
>
>-----Original Message-----
>From: Brian Johnson [mailto:spiff88gis at hotmail.com]
>Sent: Wednesday, September 17, 2003 9:37 AM
>To: mapserver-users at lists.gis.umn.edu
>Subject: [Mapserver-users] WMS layer alignment
>
>I have a map file that uses a couple of WMS servers to add some nice
>images
>to my map.  Specifically, I added the Terraserver orthos - and a
>relatively
>new server from the USGS - color orthos for many urban areas.
>
>My map file, the Terraserver WMS layer, and the shapefiles I am using
>are in
>NAD83 UTM zone 10N coordinate system.  The USGS WMS layer is in WGS 84.
>All
>projections are set in the map file, and for each layer.  When I turn on
>the
>Terraserver layer, the image is nicely displayed behind the shapefiles
>perfectly.  When I turn on the USGS layer, the center of the image is
>perfectly aligned - and the rest of the image appears to be squashed -
>with
>apparently a larger Y-axis extent that the image should be.  If I change
>the
>map projection to WGS 84, the the USGS layer now nicely aligns with the
>shapefiles, and so does the Terraserver image - with no reprojection
>problem.
>
>Any suggestions as to where my problem might be?  I'd like to have the
>map
>in UTM project for how it looks compared to WGS - but I can't figure out
>why
>the WGS 84 layer is not reprojecting correctly.
>
>Below are the sections from my .map file...
>
>Thanks for any ideas!
>
>Brian
>
>#---Map file projection info---
>
>PROJECTION
>"init=epsg:26910"
>END
>
>
>#---Terraserver Layer---
>LAYER
>    NAME ortho
>    METADATA
>      "wms_title" "USGS Digital Ortho-Quadrangles"
>      "wms_srs"   "EPSG:26910" #NAD83 UTM zone 10N
>      LYRNAME "DOQs (orthophotos)"
>      LINK
>"http://terraserver.microsoft.com/about.aspx?n=AboutTerraServiceOverview
>"
>    END
>    GROUP "BASE DATA"
>    STATUS OFF
>    TYPE RASTER
>    MINSCALE 10
>    MAXSCALE 240000
>    CONNECTIONTYPE WMS
>    CONNECTION
>"http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DO
>Q&FORMAT=png&styles="
>    PROJECTION
>      "init=epsg:26910" #NAD83 UTM zone 10N
>    END
>END
>
>#---USGS Portland, OR area layer---
>LAYER
>     NAME Urban133
>     METADATA
>       "wms_title" "Portland Ortho 2002"
>       "wms_extent" "-123.12987 45.241726 -122.3584 45.75648"
>       LYRNAME "Urban133"
>       LINK "N/A"
>     END
>     OFFSITE 255 255 255
>     GROUP "Urban133"
>     STATUS ON
>     TYPE RASTER
>     CONNECTIONTYPE WMS
>
>     CONNECTION
>"http://gisdata.usgs.net:80/servlet/com.esri.wms.Esrimap?SERVICENAME=133
>urban&VERSION=1.0.0&REQUEST=map&LAYERS=UA_ORTHO_313_01&STYLES=&FORMAT=JP
>EG&"
>
>     PROJECTION
>     "init=epsg:4326" #WGS 84
>     END
>END
>
>_________________________________________________________________
>Need more e-mail storage? Get 10MB with Hotmail Extra Storage.
>http://join.msn.com/?PAGE=features/es
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

_________________________________________________________________
Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage.  
http://join.msn.com/?PAGE=features/es




More information about the mapserver-users mailing list