[Mapserver-users] Extent & Projection for Germany
uli
uli.mueller at gmx.ch
Wed Apr 14 06:04:58 PDT 2004
Gauss-Krueger needs lat_0=0 and lon_0=9 . Your false easting (x_0) is
3500000, not 500000. Your map units have to be meters.
But it is still easier:
- since your shape has the same projection as the whole map, you may simply
delete all projection definitions
- or - if you installed PROJ with the EPSG codes - specify your projection
like:
PROJECTION
"init=epsg:31493"
END
Uli Müller
-------------
Uli Müller
geOps GeoInformatics
Stephanienstrasse 4
D-79100 Freiburg
office +49 (0)761 8814 607
home +49 (0)761 8814 606
FAX +49 (0)761 8814 607
mobile +49 (0)174 9689457
uli at geops.de & uli at geops.ch
--------------
>-----Original Message-----
>From: mapserver-users-admin at lists.gis.umn.edu
>[mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of Bo Nintzel
>Sent: 2004-04-14, Mittwoch 10:11
>To: mapserver-users at lists.gis.umn.edu
>Subject: [Mapserver-users] Extent & Projection for Germany
>
>
>Hello list,
>I'am using Mapserver for the first time and I've got problems how to
>fill in the projection and extent for a Shape-File:
>My shapefile is named "Ortslage_region.shp" (It's an ESRI-File).
>With Shpinfo I get the following Information:
>
>Type : Polygon
>Elements : 3
>Frame : 3464327.051 / 5528971.218 - 3468422.819 / 5533160.109
>Max. Parts : 2
>Max. Points : 47
>Datastructure:
>ORTSLAGE C 33.0 Klein-Gerau
>GEMSCHL³SS C 6.0 30
>
>This is my map-file:
>
>MAP
> IMAGETYPE PNG
> #EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514
> EXTENT 3464327 5528971 3468422 5533160
> SIZE 410 420
> SHAPEPATH "test"
> IMAGECOLOR 200 255 255
>
> PROJECTION
> "proj=tmerc"
> "ellps=bessel"
> "lat_0=9d0E"
> "lon_0=0"
> "x_0=500000"
> "no_defs<>"
> #
> # Alternatively, you can specify an EPSG code.
> # "init=epsg:2163"
> #
> END
>
> # Start of LAYER DEFINITIONS
>---------------------------------------------
> LAYER # States polygon layer begins here
> NAME Ortslage
> DATA Ortslage_region
> STATUS DEFAULT
> TYPE POLYGON
>
> PROJECTION
> #"init=epsg:4326"
> "proj=tmerc"
> "ellps=bessel"
> "lat_0=9d0E"
> "lon_0=0"
> "x_0=500000"
> "no_defs<>"
> END
>
> CLASS
> COLOR 200 200 200
> OUTLINECOLOR 32 32 32
> END
> END # States polygon layer ends here
> # End of LAYER DEFINITIONS -------------------------------
>
>END # end of map file/object
>
>
>I just get an emty Image with the Background-Color when I call
>"http://localhost/cgi-bin/mapserv.exe?map=/web/apache2/htdocs/tutor
ial/test.map&mode=map"
I'am shure the problem is the Projection or the EXTENT or both. Does
anyone know how to fill in these parts correctly?
Greetings from Germany
Bo Nintzel
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list