[Mapserver-users] Extent & Projection for Germany
Bo Nintzel
nintzel@geod.tu-darmstadt.de
Wed, 14 Apr 2004 10:11:26 +0200
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/tutorial/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@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users