[mapserver-users] Projection Change

Grant Marblestone GrantM at ATSER.com
Wed Jan 2 09:36:41 EST 2002


Howdy,

I was wondeirng if there was a way to change a map's projection, Actually i
want to know if you can convert it.  I know about Proj4, however i just want
to convert the map itself from nad83 to gws84, possible?

OR, I have a map with nad83 and i also have some gws84 gps positions that
dont line up when i apply the proj4 projection from 84 --> 83.  I live in
Houston, TX and the web page says These data sets are in the State Plane
Coordinate System, NAD 83. Map Units = feet

Thanks,
Grant

I am going to go ahead and paste my map file below i hope no one minds.. and
i think i will send a link to the shp file that uses nad83.

-------------------------------------------------------
LINK TO NAD83 SHP FILE
-------------------------------------------------------
http://www.co.harris.tx.us/hcedweb/GIS/majrds_rds.exe


-------------------------------------------------------
MAP FILE
-------------------------------------------------------
map
  extent 2917058.5 13747172.0 95387545.0 29956950.0
  imagecolor 255 255 255
  name "steel3"
  shapepath "data"
  size 600 600
  status on
  symbolset "symbols/all.sym"
  units meters


PROJECTION #set for output gif / png datum set same as map
"init=epsg:32614" # epsg:26914"   # all nad83 followed by gws84
END

  # 1 scalebar #none
  scalebar
    backgroundcolor 255 255 0
    color 255 255 255
    imagecolor 255 255 255
    intervals 4
    outlinecolor 0 0 0
    size 200 7
    status on
    style 0
    transparent true
    units meters
    # 1 label #none
    label
      backgroundcolor 0 0 0
      color 255 255 0
      size tiny
    end
  end

  # 2 layer mtfp_nad83
  layer
    classitem "FNODE_"
    data "mtfp_nad83"
    group "mtfp_nad83"
    labelcache on
    labelitem "FNODE_"
    name "mtfp_nad83"
    postlabelcache true

    status on
    type line

     METADATA
           "wms_title" "Roads"
     END

     PROJECTION   # projection needs to be set for map
        "init=epsg:32614" # changed here to suit nad83
     END

    # 1 class mtfp_nad83_1
    class
      backgroundcolor 128 128 128
      color 128 128 128
      name "mtfp_nad83_1"
      outlinecolor 0 0 0
    end
  end

  # 3 layer Grant
  layer
    classitem "ContractID"
    data "Grant"
    group "Grant"
    labelcache on
    labelitem "ContractID"
    name "Grant"
    postlabelcache true
    status on
    type point

     METADATA
           "wms_title" "Points"
     END

     PROJECTION
       "init=epsg:26914" #code for wgs84
     END

    # 1 class Grant_1
    class
      backgroundcolor 128 128 128
      color 128 128 128
      name "Grant_1"
      outlinecolor 0 0 0
    end
  end

  # 4 web steel3.html
  web
    footer "steel3_footer.html"
    header "steel3_header.html"
    imagepath "c:\phpdev\www\tmp\"
    imageurl "/tmp/"
    template "steel3.html"

     METADATA
               "wms_title" "Steel3"
        END

  end

  # 5 querymap hilite
  querymap
    color 255 0 0
    size 200 200
    status on
    style hilite
  end

  # 6 reference graphics/reference.gif
  reference
    color -1 -1 -1
    extent 2917058.5 13747172.0 95387545.0 29956950.0
    image "graphics/reference.gif"
    outlinecolor 255 0 0
    size 120 120
    status on
  end

  # 7 legend #none
  legend
    keysize 18 12
    status on
    # 1 label #none
    label
      color 0 0 89
      size medium
      type bitmap
    end
  end

end



More information about the mapserver-users mailing list