[Mapserver-DE] Anfängerfrage
robert.holzschuh@freesurf.ch
robert.holzschuh at freesurf.ch
Mit Nov 24 14:29:14 CET 2004
Hallo User-Group!
Ich versuche grade mit Hilfe von AVeiN ein Map-File zu erstellen. Wenn
ich es allerdings über den Browser initialisieren möchte, kommt folgende
Fehlermeldung:
msProcessProjection(): Projection library error. no options found in
'init' file
Kann mir jemand weiterhelfen? Danke!
Hier mein Map-File:
#
# Start of map file - created Mi Nov 24 14:03:28 2004
#
NAME 'Testdaten'
STATUS ON
PROJECTION
'init=epsg:31462'
END
SIZE 450 320
EXTENT -13.777 27.249 -0.383 36.328
UNITS dd
SYMBOLSET 'f:/Programme/Apache/htdocs/theAveinDemo/symbols/'
FONTSET 'f:/Programme/Apache/htdocs/theAveinDemo/fonts/fonts.fnt/'
IMAGECOLOR 255 255 255
#
# Start of web interface definition
#
WEB
LOG Testdaten.log
TEMPLATE garnichts.html
IMAGEPATH 'f:/Programm/Apache/htdocs/temp/'
IMAGEURL 'http://ntws3/temp/'
EMPTY 'http://ntws3/theAveinDemo/nothing.html'
# change this value to match your setup
METADATA
WMS_ONLINERESOURCE
'http://ntws3/cgi-bin/mapserv.exe/?map=f:/Programme/Apache/htdocs/theAveinDemo/Testdaten.map'
'WMS_SRS' 'epsg:31462'
WMS_ACCESSCONSTRAINTS 'none'
WMS_TITLE 'Testdaten'
WMS_FEATURE_INFO_MIME_TYPE 'text/html'
WMS_ABSTRACT ''
END #METADATA
END #HEADER
#
# Properties for the querymap
#
QUERYMAP
SIZE 200 200
STATUS ON #OFF
STYLE HILITE
COLOR 255 0 0
END
#
# Start of reference map
#
REFERENCE
STATUS ON
IMAGE graphics/ref_karte.png
SIZE 120 80
EXTENT -13.777 27.249 -0.383 36.328
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END #REFERENCE
#
# Start of legend
#
LEGEND
STATUS ON
KEYSIZE 16 8
TEMPLATE 'legend.html'
LABEL
COLOR 120 120 120
END # ENDE LABEL
END #LEGEND
#
# Start of scalebar
#
SCALEBAR
STATUS EMBED
POSITION lr
STYLE 0
INTERVALS 4
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE SMALL
END #ENDE LABEL
SIZE 200 3
TRANSPARENT ON
COLOR 255 0 0
BACKGROUNDCOLOR 255 170 0
OUTLINECOLOR 100 100 100
UNITS KILOMETERS
END #SCALEBAR
#
# Start of layer definitions #
#
LAYER
NAME 'Maroc2.tif'
GROUP 'Maroc2.tif'
TYPE RASTER
DATA
'c:/programme/apache_avein_demo/htdocs/theaveindemo/data/maroc2.tif'
STATUS ON
METADATA
WMS_SRS 'epsg:31462'
WMS_TITLE 'Maroc2.tif'
WMS_FEATURE_INFO_MIME_TYPE 'text/html'
END
PROJECTION
'init=epsg:31462'
END
END # end of layer file
LAYER
NAME 'landw. Bedrohung'
GROUP 'landw. Bedrohung'
DATA 'c:/programme/apache_avein_demo/htdocs/theaveindemo/data/agric'
STATUS ON
TYPE Polygon
METADATA
'WMS_SRS' 'epsg:31462'
WMS_TITLE 'landw. Bedrohung'
WMS_FEATURE_INFO_MIME_TYPE 'text/html'
END
PROJECTION
'init=epsg:31462'
END
CLASSITEM 'Danger'
CLASS
NAME 'keine'
EXPRESSION /^No threat/
COLOR 60 105 0
OUTLINECOLOR 0 0 0
END # CLASS
CLASS
NAME 'niedrig'
EXPRESSION /^Low/
COLOR 255 249 165
OUTLINECOLOR 0 0 0
END # CLASS
CLASS
NAME 'moderat'
EXPRESSION /^Moderate/
COLOR 255 173 0
OUTLINECOLOR 0 0 0
END # CLASS
CLASS
NAME 'sehr hoch'
EXPRESSION /^Very high/
COLOR 255 165 165
OUTLINECOLOR 0 0 0
END # CLASS
CLASS
NAME 'Keine Daten'
EXPRESSION /^/
# COLOR -1 -1 -1
OUTLINECOLOR 0 0 0
END # CLASS
END # END OF LAYERFILE
LAYER
NAME 'Eisenbahn'
GROUP 'Eisenbahn'
DATA 'c:/programme/apache_avein_demo/htdocs/theaveindemo/data/rails'
STATUS ON
TYPE Line
METADATA
'WMS_SRS' 'epsg:31462'
WMS_TITLE 'Eisenbahn'
WMS_FEATURE_INFO_MIME_TYPE 'text/html'
END
PROJECTION
'init=epsg:31462'
END
CLASSITEM 'Rrlntype'
CLASS
NAME '1'
EXPRESSION /^1/
SYMBOL 0
SIZE 2
COLOR 120 120 120
END # CLASS
CLASS
NAME '2 - 8'
EXPRESSION ([Rrlntype] <= 8)
SYMBOL 0
SIZE 5
COLOR 120 120 120
END # CLASS
END # END OF LAYERFILE
LAYER
NAME 'Flughaefen'
GROUP 'Flughaefen'
DATA
'c:/programme/apache_avein_demo/htdocs/theaveindemo/data/airports'
STATUS ON
TYPE Point
METADATA
'WMS_SRS' 'epsg:31462'
WMS_TITLE 'Flughaefen'
WMS_FEATURE_INFO_MIME_TYPE 'text/html'
END
PROJECTION
'init=epsg:31462'
END
CLASSITEM 'Objectid'
CLASS
NAME ''
EXPRESSION /./
SYMBOL 'circle'
SIZE 8
COLOR 0 255 0
END # CLASS
END # END OF LAYERFILE
LAYER
NAME 'City.shp'
GROUP 'City.shp'
DATA 'c:/programme/apache_avein_demo/htdocs/theaveindemo/data/city'
STATUS ON
TYPE Point
METADATA
'WMS_SRS' 'epsg:31462'
WMS_TITLE 'City.shp'
WMS_FEATURE_INFO_MIME_TYPE 'text/html'
END
PROJECTION
'init=epsg:31462'
END
CLASSITEM 'Pop_rank'
CLASS
NAME '2 - 3'
EXPRESSION ([Pop_rank] <= 3)
SYMBOL 'circle'
SIZE 4
COLOR 255 0 0
END # CLASS
CLASS
NAME '4 - 5'
EXPRESSION ([Pop_rank] <= 5)
SYMBOL 'circle'
SIZE 8
COLOR 255 0 0
END # CLASS
CLASS
NAME '6 - 7'
EXPRESSION ([Pop_rank] <= 7)
SYMBOL 'circle'
SIZE 12
COLOR 255 0 0
END # CLASS
END # END OF LAYERFILE
END # MAPFILE
----
sunrise ADSL: Jetzt drei Monate testen!
http://www.sunrise.ch/home/proint/proint_ads-2.htm
----
sunrise ADSL: Testez l'ADSL pendant trois mois!
http://www.sunrise.ch/fr/home/proint/proint_ads-2.htm
----
sunrise ADSL: Ora tre mesi di prova!
http://www.sunrise.ch/it/home/proint/proint_ads-2.htm
----
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)