[mapserver-users] Projection

Arnd Wippermann arnd.wippermann at web.de
Thu Jun 14 13:53:49 PDT 2012


Your map extent should something like this

EXTENT 3186000 5210000 4006000 6156000

PROJECTION
  "init=epsg:2166"
  #or "init=epsg:31467"
END
 
then your layer should show.

Instead of Gauss-Krüger i would take EPSG:25832 (UTM32).
It's the new official used projection for Germany .

The layer will look the same as GK3.

Arnd


In Deutschland hat die Arbeitsgemeinschaft der Vermessungsverwaltungen der
Länder der Bundesrepublik Deutschland (AdV) im Jahre 1991 die Einführung des
ETRS89 als einheitliches amtliches Lagebezugssystem für ganz Deutschland
beschlossen.
(Quelle:http://de.wikipedia.org/wiki/Europ%C3%A4isches_Terrestrisches_Refere
nzsystem_1989)


-----Ursprüngliche Nachricht-----
Von: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Thomas
Hofmann
Gesendet: Donnerstag, 14. Juni 2012 16:39
An: mapserver-users at lists.osgeo.org
Betreff: [mapserver-users] Projection

Hello,

currently I am working on a map displaying the distiribution of a name
(surname/forename/location name) in Germany. For that purpose mapserver (v.
5.6.5) and php-mapscript is used.

The underlying geographic information is from a public domain shapefile
containing postcode (PLZ) regions of germany:
http://www.metaspatial.net/download/plz.tar.gz

Details on that data in german:
http://arnulf.us/PLZ

There the data is described as originally been in "Gauß Krüger 3-Streifen",
but the shapefile's data as beeing converted to EPSG:4326 (WGS84).

The map should be rendered so that the width and height of germany are more
or less like here:
http://de.wikipedia.org/wiki/Datei:Deutschland_politisch_2010.png

Without configured projections it looks like:
https://www.dropbox.com/s/n1uobhd12xhsf4u/1ee63112dc71c15f1247994883aebc42.p
ng

So some projection is needed.

One question is, what projection would be appropriate, I suppose something
like "Alber's equal area" or "Gauß-Krüger zone 3" could do the trick. But
before that I would be glad if an arbitrary projection would work at all...

The map-file as generated via mapscript looks like (cut to the relevant
part, as far as I understand it):
MAP
  EXTENT 5.05686874304783 47.2 15.5931312569522 55.1
  IMAGECOLOR 255 255 255
  IMAGETYPE gif
  SIZE 1200 900
  STATUS ON
  CONFIG PROJ_LIB "/usr/share/proj/"
  NAME "Germany"

  PROJECTION
    "init=epsg:2166"
  END

  LAYER
    NAME "0"
    PROJECTION
      "init=epsg:4326"
    END
    STATUS DEFAULT
    TYPE POLYGON
    UNITS METERS
    CLASS
      NAME "PLZ"
      STYLE
        ANGLE 360
        COLOR 99 99 99
        OUTLINECOLOR 0 0 0
        SYMBOL 0
        WIDTH 1
      END
    END
  END

END

With this map-file the PLZ layer is not displayed. If omitting the
PROJECTION-section within the LAYER it is displayed.
For reference: the whole zipped mapfile, containing the data:
https://www.dropbox.com/s/sd65gc7dch7swh3/projection.complete.map.zip

So:
- What to do, to get projections working?
- What kind of projection would be appropriate?

Hints are most welcome.

Kind regards,
Thomas Hofmann
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list