AW: [Mapserver-users] displaying lat/long maps

Christina Biakowski (CCGIS) christina.biakowski@ccgis.de
Tue, 6 May 2003 11:28:31 +0200


Ellen,
in my Mapfile (for WGS84) it works with defining
PROJECTION
  "init=EPSG:4326"
END
in the Map- and in the Layer-Section.
If your map is not composed of Layers with different Spatial Reference
Systems (no on-the-fly-projection) you even can omit the Projection-tag. But
if e.g. your Layer "Brandenburg" was in Gauss-Krüger 4 and you wanted to
display it in WGS84, then in the Map-Section you would have to declare
.."init=EPSG:4326".. and in the Layer-Section "init=EPSG:31494".
I hope this helps!

Best regards,
Christina



-----Ursprüngliche Nachricht-----
Von: mapserver-users-admin@lists.gis.umn.edu
[mailto:mapserver-users-admin@lists.gis.umn.edu]Im Auftrag von
Brachmann, Ellen
Gesendet: Dienstag, 6. Mai 2003 10:29
An: 'mapserver-users@lists.gis.umn.edu'
Betreff: [Mapserver-users] displaying lat/long maps


Hi all,

I've got a problem displaying lat/long maps.
I tested a lot, but no result (filled map or exception).

The specific part of the MAP file is:
------------
NAME BRANDENBURG

  STATUS      ON
  SIZE        200 200
  SYMBOLSET   "symbols/line.sym"
  FONTSET     "fonts/fonts.txt"
  EXTENT      11.25 51.30 14.80 53.60
  UNITS       dd
  SHAPEPATH   "geo"
  TRANSPARENT ON

  PROJECTION
    "proj=latlong"
    "ellps=WGS84"
  END

  WEB
    TEMPLATE map.html
    MINSCALE 1
    MAXSCALE 150000000
    IMAGEPATH "...
    IMAGEURL "...

    METADATA
      "wms_title"           "...
      "wms_abstract"        "...
      "wms_onlineresource"
"http://10.133.4.212:81/cgi-bin/mapserv?map=wms/GEOdnm100.map"
      "wms_srs"             "EPSG:4326"
      "wms_fees"            "...
      "wms_keywordlist"     "...
    END
  END

  LAYER
    METADATA
      "wms_title"   "Brandenburg"
      "wms_srs"     "EPSG:4326"
    END
    NAME      state
    MINSCALE  1
    MAXSCALE  150000000
    TYPE      POLYGON
    DATA      geo_dnmvg_kreis
    STATUS    default
    CLASSITEM 'LANDKREIS'
    CLASS
      NAME       "Brandenburg"
      EXPRESSION /./
      COLOR      255 255 224
      OUTLINECOLOR 0   0   0
    END
    PROJECTION
      "proj=latlong"
    END
  END

  ...
------------
What Did I wrong ?

The mapserver-parameters are:
MapServer version 3.6.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7
INPUT=JPEG INPUT=SHAPEFILE

Regards
Ellen
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users