[Mapserver-users] mapfile generation problem
Murat Isik
muratisik at megatek.com.tr
Thu Oct 9 07:47:33 PDT 2003
This is a multi-part message in MIME format.
------=_NextPart_000_010A_01C38E8D.6AE48540
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
I am a newbei about mapservers. I have setup mapserv-3-6-0 and also =
installed 3-5 demo and eventually got them to work together, displaying =
the maps successfully.I did these through implementing rpms rather than =
compling. Upon this, I have been handed map layers of our neighbourhoodi =
so that I "insert" them into the mapserver. It consists of 20 layers and =
for each layer there are proper files of .dbf, .shp, .shx extensions. =
However there are no mapfiles. I have read all of mapfile reference and =
worked on the mapfile of the 3-5 demo. I wrote one for the nighbour maps =
but it gave me the error when pressed "Initialize". I have arranged the =
demo_init.html and demo.html accordingly beforehand. The error is:
loadHashTable(): Unknown identifier
Anybody have an idea. My mapfile is the following:
#
# Start of map file
#
NAME ERENKOY
STATUS ON
SIZE 667 447
EXTENT 388107.634400379 5203120.88405952 500896.339019834 =
5310243.30613897
UNITS METERS
SHAPEPATH "erenkoy"
IMAGECOLOR 255 255 255
# you may need to change this to match your MapServer build
IMAGETYPE PNG
#
# Projection definition, consult the PROJ.4 documentation for parameter =
discussion
#
#PROJECTION
# "proj=3Dutm"
# "ellps=3DGRS80"
# "zone=3D15"
# "north"
# "no_defs"
#
# OR:
#
# "init=3Depsg:26915"
#END
#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
HEADER demo_header.html
TEMPLATE demo.html
FOOTER demo_footer.html
MINSCALE 1000
MAXSCALE 1550000
IMAGEPATH "set in demo_init.html"
IMAGEURL "set in demo_init.html"
METADATA
WMS_TITLE "ERENKOY HARITA"
@
WMS_ABSTRACT "This is the UMN MapServer demonstration application for =
ERENKOY County located in north central ISTANBUL."
WMS_ACCESSCONSTRAINTS none
# change this value to match your setup
WMS_ONLINERESOURCE "http://localhost/mapser/itasca/demo_init.html"
WMS_SRS "EPSG:26915"
END
END
QUERYMAP
SIZE 200 200
STATUS ON
STYLE HILITE
COLOR 255 0 0
END
#
# Start of reference map
#
REFERENCE
IMAGE graphics/reference-erenkoy.png
EXTENT 393234.393701263 5205405.16440722 495769.579718949 =
5307959.02579127
SIZE 120 120
STATUS OFF
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END
#
# Start of legend
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS ON
END
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 255 255 255
SIZE tiny
END
STYLE 1
SIZE 80 2
COLOR 255 255 255
UNITS KILOMETERS
INTERVALS 1
TRANSPARENT TRUE
STATUS TRUE
END
#
# Start of symbol definitions (we're only using a few)
#
SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END
#
# Start of layer definitions
#
LAYER
NAME ERENKOY_ORNEKMAHALLE_PG_region=20
TYPE POLYGON
STATUS DEFAULT
DATA ERENKOY_ORNEKMAHALLE_PG_region
CLASSITEM 'cty_name'
CLASS
EXPRESSION 'Erenkoy'
OUTLINECOLOR 128 128 128
COLOR 225 225 185
END
CLASS # every other county in the state
EXPRESSION /./
OUTLINECOLOR 128 128 128
COLOR 255 255 255
END
METADATA
WMS_TITLE "Erenkoy-genel"
WMS_ABSTRACT "Erenkoy"
WMS_SRS "EPSG:26915"
END
END
#TAMAM
LAYER
NAME ERENKOY_ORNEKSOKAK_PL_polyline
GROUP sokaklar
TYPE POLYGON
DATA ERENKOY_ORNEKSOKAK_PL_polyline
STATUS OFF
CLASSITEM city_name
CLASS
NAME "Sokaklar"
EXPRESSION /./
COLOR 255 225 90
TEMPLATE "mcd90py2.html"
END
HEADER "mcd90py2_header.html"
FOOTER "mcd90py2_footer.html"
DUMP TRUE # allow GML export
METADATA
WMS_TITLE "Sokak"
WMS_ABSTRACT "Minor civil divisions for Erenkoy County. (sokaklar =
only)"
WMS_SRS "EPSG:26915"
END
END
LAYER
NAME ERENKOY_ORNEKILCE_PG_region
TYPE POLYGON
DATA ERENKOY_ORNEKILCE_PG_region
STATUS OFF
CLASS
SYMBOL 'circle'
SIZE 2
NAME 'Ilceler'
OUTLINECOLOR 181 181 145
END
METADATA
WMS_TITLE "Ilceler Boundaries"
WMS_ABSTRACT Ilceler boundaries for Erenkoy County. See MURAT for =
more information."
WMS_SRS "EPSG:26915"
END
END
LAYER
NAME ERENKOY_ORNEKCADDE_PL_polyline
TYPE POLYGON
STATUS OFF
DATA ERENKOY_ORNEKCADDE_PL_polyline
CLASS
NAME 'Caddeler'
TEMPLATE "lakespy2.html"
COLOR 49 117 185
END
HEADER "lakespy2_header.html"
FOOTER "lakespy2_footer.html"
TOLERANCE 3
DUMP TRUE # allow GML export
METADATA
WMS_TITLE "Caddeler"
WMS_ABSTRACT "Caddeler"
WMS_SRS "EPSG:26915"
END
END
Erenkoy is the name of neighbourhood, sokak-ilceler and other stuff =
looking unfamiliar for you, are the Turkish for streets-towns etc.
I had to keep TEMPLATE, FOOTER and HEADER for my layer same as the =
demo's since I also have no idea of making my own templates, footers and =
headers.=20
Overall, I am in a bottleneck, stuck up.
Please help me:)
Thanks in advance.....
Have a nice day
Murat Isik
Istanbul-Turkey
------=_NextPart_000_010A_01C38E8D.6AE48540
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1226" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I am a newbei about mapservers. I =
have setup=20
mapserv-3-6-0 and also installed 3-5 demo and eventually got them to =
work=20
together, displaying the maps successfully.I did these through =
implementing rpms=20
rather than compling. Upon this, I have been handed map layers of =
our=20
neighbourhoodi so that I "insert" them into the mapserver. It consists =
of 20=20
layers and for each layer there are proper files of .dbf, .shp, .shx =
extensions.=20
However there are no mapfiles. I have read all of mapfile reference and =
worked=20
on the mapfile of the 3-5 demo. I wrote one for the nighbour maps but it =
gave me=20
the error when pressed "Initialize". I have arranged the demo_init.html =
and=20
demo.html accordingly beforehand. The error is:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>loadHashTable(): Unknown =
identifier</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Anybody have an idea. My mapfile is the =
following:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of map file<BR>#<BR>NAME=20
ERENKOY<BR>STATUS ON<BR>SIZE 667 447<BR>EXTENT 388107.634400379 =
5203120.88405952=20
500896.339019834 5310243.30613897<BR>UNITS METERS<BR>SHAPEPATH=20
"erenkoy"<BR>IMAGECOLOR 255 255 255<BR></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2># you may need to change this to match =
your=20
MapServer build<BR>IMAGETYPE PNG<BR></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Projection definition, consult =
the PROJ.4=20
documentation for parameter discussion<BR>#<BR>#PROJECTION<BR># =20
"proj=3Dutm"<BR># "ellps=3DGRS80"<BR># =
"zone=3D15"<BR># =20
"north"<BR># "no_defs"<BR>#<BR># OR:<BR>#<BR># =20
"init=3Depsg:26915"<BR>#END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of web interface =
definition (including=20
WMS enabling metadata)<BR>#<BR>WEB<BR> HEADER =
demo_header.html<BR> =20
TEMPLATE demo.html<BR> FOOTER demo_footer.html<BR> MINSCALE=20
1000<BR> MAXSCALE 1550000<BR> IMAGEPATH "set in=20
demo_init.html"<BR> IMAGEURL "set in demo_init.html"<BR> =20
METADATA<BR> WMS_TITLE "ERENKOY =
HARITA"<BR>@<BR>WMS_ABSTRACT=20
"This is the UMN MapServer demonstration application for ERENKOY County =
located=20
in north central ISTANBUL."<BR> WMS_ACCESSCONSTRAINTS=20
none</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> # change this value =
to match=20
your setup<BR> WMS_ONLINERESOURCE "<A=20
href=3D"http://localhost/mapser/itasca/demo_init.html">http://localhost/m=
apser/itasca/demo_init.html</A>"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> WMS_SRS =
"EPSG:26915"<BR> =20
END<BR>END<BR></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>QUERYMAP<BR> SIZE 200 =
200<BR> STATUS=20
ON<BR> STYLE HILITE<BR> COLOR 255 0 0<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of reference=20
map<BR>#<BR>REFERENCE<BR> IMAGE =
graphics/reference-erenkoy.png<BR> =20
EXTENT 393234.393701263 5205405.16440722 495769.579718949=20
5307959.02579127<BR> SIZE 120 120<BR> STATUS OFF<BR> =
COLOR -1=20
-1 -1<BR> OUTLINECOLOR 255 0 0<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of =
legend<BR>#<BR>LEGEND<BR> =20
KEYSIZE 18 12<BR> LABEL<BR> TYPE=20
BITMAP<BR> SIZE MEDIUM<BR> COLOR 0 0 =
89<BR> END<BR> STATUS ON<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of =
scalebar<BR>#<BR>SCALEBAR<BR> =20
IMAGECOLOR 255 255 255<BR> LABEL<BR> COLOR 255 =
255=20
255<BR> SIZE tiny<BR> END<BR> STYLE =
1<BR> =20
SIZE 80 2<BR> COLOR 255 255 255<BR> UNITS =
KILOMETERS<BR> =20
INTERVALS 1<BR> TRANSPARENT TRUE<BR> STATUS =
TRUE<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of symbol definitions =
(we're only=20
using a few)<BR>#<BR>SYMBOL<BR> NAME 'circle'<BR> TYPE=20
ELLIPSE<BR> POINTS 1 1 END<BR> FILLED =
TRUE<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>#<BR># Start of layer =
definitions<BR>#</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR> NAME=20
ERENKOY_ORNEKMAHALLE_PG_region </FONT></DIV>
<DIV><FONT face=3DArial size=3D2> TYPE POLYGON<BR> STATUS=20
DEFAULT<BR> DATA ERENKOY_ORNEKMAHALLE_PG_region</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> CLASSITEM 'cty_name'<BR> =20
CLASS<BR> EXPRESSION 'Erenkoy'<BR> =20
OUTLINECOLOR 128 128 128<BR> COLOR 225 225 =
185<BR> =20
END<BR> CLASS # every other county in the =
state<BR> =20
EXPRESSION /./<BR> OUTLINECOLOR 128 128=20
128<BR> COLOR 255 255 255<BR> END<BR> =20
METADATA<BR> WMS_TITLE =
"Erenkoy-genel"<BR> =20
WMS_ABSTRACT "Erenkoy"<BR> WMS_SRS =
"EPSG:26915"<BR> =20
END<BR>END<BR>#TAMAM</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR> NAME=20
ERENKOY_ORNEKSOKAK_PL_polyline<BR> GROUP sokaklar<BR> TYPE=20
POLYGON<BR> DATA ERENKOY_ORNEKSOKAK_PL_polyline<BR> STATUS=20
OFF<BR> CLASSITEM city_name<BR> CLASS<BR> =
NAME=20
"Sokaklar"<BR> EXPRESSION /./<BR> =
COLOR 255=20
225 90<BR> TEMPLATE "mcd90py2.html"<BR> =
END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> HEADER =
"mcd90py2_header.html"<BR> =20
FOOTER "mcd90py2_footer.html"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> DUMP TRUE # allow GML =
export</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> METADATA<BR> =
WMS_TITLE=20
"Sokak"<BR> WMS_ABSTRACT "Minor civil divisions for =
Erenkoy=20
County. (sokaklar only)"<BR> WMS_SRS =
"EPSG:26915"<BR> =20
END<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR> NAME=20
ERENKOY_ORNEKILCE_PG_region<BR> TYPE POLYGON<BR> DATA=20
ERENKOY_ORNEKILCE_PG_region<BR> STATUS OFF<BR> =20
CLASS<BR> SYMBOL 'circle'<BR> SIZE=20
2<BR> NAME 'Ilceler'<BR> =
OUTLINECOLOR 181=20
181 145<BR> END<BR> METADATA<BR> WMS_TITLE =
"Ilceler Boundaries"<BR> WMS_ABSTRACT Ilceler =
boundaries for=20
Erenkoy County. See MURAT for more information."<BR> =
WMS_SRS=20
"EPSG:26915"<BR> END<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV><FONT face=3DArial =
size=3D2>
<DIV><BR>LAYER<BR> NAME ERENKOY_ORNEKCADDE_PL_polyline<BR> =
TYPE=20
POLYGON<BR> STATUS OFF<BR> DATA =
ERENKOY_ORNEKCADDE_PL_polyline</DIV>
<DIV> </DIV>
<DIV> CLASS<BR> NAME =
'Caddeler'<BR> =20
TEMPLATE "lakespy2.html"<BR> COLOR 49 117 =
185<BR> =20
END</DIV>
<DIV> </DIV>
<DIV> HEADER "lakespy2_header.html"<BR> FOOTER=20
"lakespy2_footer.html"</DIV>
<DIV> </DIV>
<DIV> TOLERANCE 3</DIV>
<DIV> </DIV>
<DIV> DUMP TRUE # allow GML export</DIV>
<DIV> </DIV>
<DIV> METADATA<BR> WMS_TITLE=20
"Caddeler"<BR> WMS_ABSTRACT =
"Caddeler"<BR> =20
WMS_SRS "EPSG:26915"<BR> END<BR>END</DIV>
<DIV> </DIV>
<DIV>Erenkoy is the name of neighbourhood, sokak-ilceler and other stuff =
looking=20
unfamiliar for you, are the Turkish for streets-towns etc.</DIV>
<DIV>I had to keep TEMPLATE, FOOTER and HEADER for my layer same as the =
demo's=20
since I also have no idea of making my own templates, footers and =
headers.=20
</DIV>
<DIV>Overall, I am in a bottleneck, stuck up.</DIV>
<DIV> </DIV>
<DIV>Please help me:)</DIV>
<DIV> </DIV>
<DIV>Thanks in advance.....</DIV>
<DIV> </DIV>
<DIV>Have a nice day</DIV>
<DIV> </DIV>
<DIV>Murat Isik</DIV>
<DIV>Istanbul-Turkey</FONT></DIV></BODY></HTML>
------=_NextPart_000_010A_01C38E8D.6AE48540--
More information about the MapServer-users
mailing list