Projections with Different Units

Rick Powers rpowers at NEOMATIX.CA
Mon Apr 11 14:16:31 PDT 2005


I'm trying to display layers with different projections and units. There was
another good post on multiple UTM projections that I will use.

But an example of my case is State Boundaries (LatLong-Decimal Degrees) and
Terra Server WMS DOQs (UTMs-Meters). I can make both work independently, but
each wants the shared map object to provide appropriate units.  Any
suggestions?

NAME MULTI
STATUS ON
SIZE 400 300
SYMBOLSET symbols/symbol.sym
#EXTENT -126 24 -64 50
#UNITS DD
EXTENT 189600 1976600 818200 5478800
UNITS METERS
SHAPEPATH "data"
IMAGETYPE JPEG
IMAGECOLOR 255 255 204
FONTSET etc/fonts.txt

LAYER
  NAME STATES
  METADATA
    WMS_TITLE "Cartgographic Boundaries of United States States"
    WMS_ABSTRACT "US Census"
    WMS_SRS "EPSG:4326"
    "RESULT_FIELDS" "NAME st99_d00"
  END
  GROUP Admin
  STATUS ON
  DATA cont_states
  TYPE POLYGON
  TRANSPARENCY 60
  CLASS
#    COLOR 31 62 21
    OUTLINECOLOR 31 62 21
    TEMPLATE "ttt_query.html"
  END
  PROJECTION
    "init=epsg:4326"
  END
END
 LAYER
  NAME ORTHOS
  GROUP DOQ
  STATUS ON
  TYPE RASTER
  MINSCALE 10000
  MAXSCALE 264000
  CONNECTIONTYPE WMS
  CONNECTION "http://terraservice.net/ogcmap.ashx?"
  METADATA
    "wms_srs" "EPSG:26910"
    "wms_title" "Orthophoto"
    "wms_name" "DOQ"
    "wms_server_version" "1.1.1"
    "wms_format" "image/png"
    "wms_layers" "doq"
    "wms_group_title" "background"
  END
  PROJECTION
    "init=epsg:26910"
  END
 END



More information about the MapServer-users mailing list