I have installed a got working the 3.6 demo of MapServer (windows 2000/IIS
5). When I change the files to insert my shapefiles (tgrds and usa) nothing
appears on the demo screen but I do get the reference map. Here are my
files used can anyone see what I am doing wrong. Thanks.
COSADEMO_INIT.HTML file:
MapServer Demo Interface
MapServer Demo Interface
Click on the initialize button to fire up the demo with 3 layers turned on
will be accessible for browsing. The
data are of Itasca County, MN and were derived, for the most part, from USGS
1:24,000 quadrangles. Some things to note are:
COSADEMO.MAP file the last 2 layers are what I added (tgroads and USA):
MAP
#
# Start of map file
#
NAME "DEMO"
STATUS ON
EXTENT -180.00 -90.0 180.00 90.0
#EXTENT -180.0 -90.0 180.0 90.0
SIZE 600 600
SHAPEPATH "data"
IMAGECOLOR 255 255 255
UNITS DD
# 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=utm"
# "ellps=GRS80"
# "zone=15"
# "north"
# "no_defs"
#
# OR:
#
# "init=epsg:26915"
#END
#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
MINSCALE 1000
MAXSCALE 5550000
IMAGEPATH "set in cosademo_init.html"
IMAGEURL "set in cosademo_init.html"
HEADER "demo_header.html"
FOOTER "demo_footer.html"
TEMPLATE "cosademo.html"
METADATA
"WMS_TITLE" "UMN MapServer Itasca Demo"
"WMS_ABSTRACT" "This is the UMN MapServer demonstration application
for Itasca County located in north central Minnesota."
"WMS_ACCESSCONSTRAINTS" "none"
"WMS_ONLINERESOURCE"
"http://192.168.110.21/itasca/cosademo_init.html"
"WMS_SRS" "EPSG:26915"
END
END
#
# Start of reference map
#
REFERENCE
STATUS ON
IMAGE "graphics/cosarefer.gif"
SIZE 120 120
EXTENT -180.0 -90.0 180.0 90.0
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END
QUERYMAP
STATUS ON
SIZE 200 200
COLOR 255 0 0
STYLE HILITE
END
#
# Start of legend
#
LEGEND
STATUS ON
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
END
#
# Start of scalebar
#
SCALEBAR
STATUS TRUE
COLOR 255 255 255
IMAGECOLOR 255 255 255
UNITS MILES
INTERVALS 1
SIZE 80 2
STYLE 1
LABEL
SIZE tiny
COLOR 255 255 255
END
END
#
# Start of symbol definitions (we're only using a few)
#
SYMBOL
NAME "circle"
TYPE ELLIPSE
FILLED TRUE
POINTS
1 1
END
END
#
# Start of layer definitions
#
LAYER
NAME "ctybdpy2"
STATUS OFF
DATA "ctybdpy2"
TYPE POLYGON
CLASSITEM "cty_name"
METADATA
"WMS_TITLE" "County Boundary"
"WMS_ABSTRACT" "Itasca County boundary shapefile. See
http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html for more
information."
"WMS_SRS" "EPSG:26915"
END
CLASS
EXPRESSION "Itasca"
COLOR 225 225 185
OUTLINECOLOR 128 128 128
END
CLASS
# every other county in the state
EXPRESSION /./
COLOR 255 255 255
OUTLINECOLOR 128 128 128
END
END
LAYER
NAME "mcd90py2"
GROUP "cities"
STATUS OFF
DATA "mcd90py2"
TYPE POLYGON
CLASSITEM "city_name"
HEADER "mcd90py2_header.html"
FOOTER "mcd90py2_footer.html"
# allow GML export
METADATA
"WMS_TITLE" "Minor Civil Divisions"
"WMS_ABSTRACT" "Minor civil divisions for Itasca County.
(boundaries only)"
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Cities & Towns"
EXPRESSION /./
COLOR 255 225 90
TEMPLATE "mcd90py2.html"
END
END
LAYER
NAME "twprgpy3"
STATUS OFF
DATA "twprgpy3"
TYPE POLYGON
METADATA
"WMS_TITLE" "Township Boundaries"
"WMS_ABSTRACT" "Pulic Land Survey (PLS) township boundaries for
Itasca County. See http://deli.dnr.state.mn.us/metadata/full/twprgne2.html
for more information."
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Townships"
SYMBOL "circle"
OUTLINECOLOR 181 181 145
SIZE 2
END
END
LAYER
NAME "lakespy2"
STATUS OFF
DATA "lakespy2"
TYPE POLYGON
TOLERANCE 3
HEADER "lakespy2_header.html"
FOOTER "lakespy2_footer.html"
# allow GML export
METADATA
"WMS_TITLE" "Lakes and Rivers"
"WMS_ABSTRACT" "DLG lake and river polygons for Itasca County. See
http://deli.dnr.state.mn.us/metadata/full/dlglkpy2.html for more
information."
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Lakes & Rivers"
COLOR 49 117 185
TEMPLATE "lakespy2.html"
END
END
# lakes
LAYER
NAME "dlgstln2"
STATUS OFF
DATA "dlgstln2"
TYPE LINE
TOLERANCE 5
HEADER "dlgstln2_header.html"
FOOTER "dlgstln2_footer.html"
# allow GML export
METADATA
"WMS_TITLE" "Streams"
"WMS_ABSTRACT" "DLG streams for Itasca County. See
http://deli.dnr.state.mn.us/metadata/full/dlgstln2.html for more
information."
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Streams"
COLOR 49 117 185
TEMPLATE "dlgstln2.html"
END
END
# streams
LAYER
NAME "ctyrdln3"
GROUP "roads"
STATUS OFF
DATA "ctyrdln3"
TYPE LINE
MAXSCALE 300000
METADATA
"WMS_TITLE" "County Roads"
"WMS_ABSTRACT" "County roads. (lines only) Derived from MNDOT
roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for
more information."
"WMS_SRS" "EPSG:26915"
END
CLASS
COLOR 0 0 0
END
END
# county roads
LAYER
NAME "ctyrdln3_anno"
GROUP "roads"
STATUS OFF
DATA "ctyrdln3"
TYPE ANNOTATION
MAXSCALE 300000
LABELITEM "road_name"
METADATA
"WMS_TITLE" "County Roads"
"WMS_ABSTRACT" "County roads. (shields only) Derived from MNDOT
roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for
more information."
"WMS_SRS" "EPSG:26915"
END
CLASS
SYMBOL "symbols/ctyhwy.gif"
COLOR 255 255 255
LABEL
SIZE TINY
POSITION CC
MINDISTANCE 150
MINFEATURESIZE 40
COLOR 0 0 0
END
END
END
# county road annotation
LAYER
NAME "majrdln3"
GROUP "roads"
STATUS OFF
DATA "majrdln3"
TYPE LINE
MAXSCALE 600000
METADATA
"WMS_TITLE" "Highways"
"WMS_ABSTRACT" "Highways- state, US and interstate. (lines only)
Derived from MNDOT roads layer, see
http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more
information."
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Roads"
COLOR 0 0 0
END
END
# highways
LAYER
NAME "majrdln3_anno"
GROUP "roads"
STATUS OFF
DATA "majrdln3"
TYPE ANNOTATION
CLASSITEM "road_class"
MAXSCALE 600000
LABELITEM "road_num"
METADATA
"WMS_TITLE" "Highways"
"WMS_ABSTRACT" "Highways- state, US and interstate. (shields only)
Derived from MNDOT roads layer, see
http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more
information."
"WMS_SRS" "EPSG:26915"
END
CLASS
EXPRESSION "3"
# dummy color
SYMBOL "symbols/sthwy.gif"
COLOR 0 0 0
LABEL
SIZE TINY
POSITION CC
MINDISTANCE 150
MINFEATURESIZE 50
COLOR 0 0 0
END
END
CLASS
EXPRESSION "2"
# dummy color
SYMBOL "symbols/ushwy.gif"
COLOR 0 0 0
LABEL
SIZE TINY
POSITION CC
MINDISTANCE 150
MINFEATURESIZE 50
COLOR 0 0 0
END
END
CLASS
EXPRESSION "1"
# dummy color
SYMBOL "symbols/interstate.gif"
COLOR 0 0 0
LABEL
SIZE TINY
POSITION CC
MINDISTANCE 150
MINFEATURESIZE 50
COLOR 255 255 255
END
END
END
# highway annotation
LAYER
NAME "airports"
STATUS OFF
DATA "airports"
TYPE POINT
TOLERANCE 5
HEADER "airports_header.html"
FOOTER "airports_footer.html"
METADATA
"WMS_TITLE" "Airports"
"WMS_ABSTRACT" "Airport runways for Itasca County."
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Airports"
SYMBOL "circle"
COLOR 128 255 164
SIZE 7
TEMPLATE "airports.html"
END
END
LAYER
NAME "cities"
STATUS OFF
DATA "mcd90py2"
TYPE ANNOTATION
CLASSITEM "city_name"
LABELITEM "city_name"
LABELMAXSCALE 500000
METADATA
"WMS_TITLE" "Minor Civil Divisions"
"WMS_ABSTRACT" "Minor civil divisions for Itasca County.
(annotation only)"
"WMS_SRS" "EPSG:26915"
END
CLASS
EXPRESSION /./
COLOR -1 -1 -1
LABEL
TYPE BITMAP
SIZE MEDIUM
POSITION CC
BUFFER 2
COLOR 0 0 0
SHADOWCOLOR 218 218 218
SHADOWSIZE 2 2
PARTIALS FALSE
END
END
END
LAYER
NAME "tgroads"
STATUS ON
DATA "tgrds"
TYPE LINE
CLASSITEM "Street"
UNITS DD
END
LAYER
NAME "usa"
STATUS DEFAULT
DATA "usa"
TYPE POLYGON
UNITS DD
END
END
COSADEMO.HTML template file:
MapServer Demo Interface
MapServer Demo Interface
Michael Smith, Planner II
City of San Angelo
Planning & Development
325.657.4210 Fax: 325.481.2648
Email: msmith@sanangelompo.org
From gayathri@ou.edu Tue Sep 2 18:19:31 2003
From: gayathri@ou.edu (Swaminathan, Gayathri)
Date: Tue, 2 Sep 2003 12:19:31 -0500
Subject: [Mapserver-users] Beginner -- What's wrong?
Message-ID:
Mike,
See that you have only one "PROJECTION" definition and that is commented
out....
Is this how the map file is on demo?
Thanks,
-----Original Message-----
From: Michael Smith [mailto:msmith@sanangelompo.org]
Sent: Tuesday, September 02, 2003 11:55 AM
To: mapserver-users@lists.gis.umn.edu
Subject: [Mapserver-users] Beginner -- What's wrong?
I have installed a got working the 3.6 demo of MapServer (windows 2000/IIS
5). When I change the files to insert my shapefiles (tgrds and usa) nothing
appears on the demo screen but I do get the reference map. Here are my
files used can anyone see what I am doing wrong. Thanks.
COSADEMO_INIT.HTML file:
MapServer Demo Interface
MapServer Demo Interface
Click on the initialize button to fire up the demo with 3 layers turned on
will be accessible for browsing. The data are of Itasca County, MN and were
derived, for the most part, from USGS 1:24,000 quadrangles. Some things to
note are:
COSADEMO.MAP file the last 2 layers are what I added (tgroads and USA): MAP
#
# Start of map file
#
NAME "DEMO"
STATUS ON
EXTENT -180.00 -90.0 180.00 90.0
#EXTENT -180.0 -90.0 180.0 90.0
SIZE 600 600
SHAPEPATH "data"
IMAGECOLOR 255 255 255
UNITS DD
# 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=utm"
# "ellps=GRS80"
# "zone=15"
# "north"
# "no_defs"
#
# OR:
#
# "init=epsg:26915"
#END
#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
MINSCALE 1000
MAXSCALE 5550000
IMAGEPATH "set in cosademo_init.html"
IMAGEURL "set in cosademo_init.html"
HEADER "demo_header.html"
FOOTER "demo_footer.html"
TEMPLATE "cosademo.html"
METADATA
"WMS_TITLE" "UMN MapServer Itasca Demo"
"WMS_ABSTRACT" "This is the UMN MapServer demonstration application
for Itasca County located in north central Minnesota."
"WMS_ACCESSCONSTRAINTS" "none"
"WMS_ONLINERESOURCE" "http://192.168.110.21/itasca/cosademo_init.html"
"WMS_SRS" "EPSG:26915"
END
END
#
# Start of reference map
#
REFERENCE
STATUS ON
IMAGE "graphics/cosarefer.gif"
SIZE 120 120
EXTENT -180.0 -90.0 180.0 90.0
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END
QUERYMAP
STATUS ON
SIZE 200 200
COLOR 255 0 0
STYLE HILITE
END
#
# Start of legend
#
LEGEND
STATUS ON
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
END
#
# Start of scalebar
#
SCALEBAR
STATUS TRUE
COLOR 255 255 255
IMAGECOLOR 255 255 255
UNITS MILES
INTERVALS 1
SIZE 80 2
STYLE 1
LABEL
SIZE tiny
COLOR 255 255 255
END
END
#
# Start of symbol definitions (we're only using a few)
#
SYMBOL
NAME "circle"
TYPE ELLIPSE
FILLED TRUE
POINTS
1 1
END
END
#
# Start of layer definitions
#
LAYER
NAME "ctybdpy2"
STATUS OFF
DATA "ctybdpy2"
TYPE POLYGON
CLASSITEM "cty_name"
METADATA
"WMS_TITLE" "County Boundary"
"WMS_ABSTRACT" "Itasca County boundary shapefile. See
http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html for more
information."
"WMS_SRS" "EPSG:26915"
END
CLASS
EXPRESSION "Itasca"
COLOR 225 225 185
OUTLINECOLOR 128 128 128
END
CLASS
# every other county in the state
EXPRESSION /./
COLOR 255 255 255
OUTLINECOLOR 128 128 128
END
END
LAYER
NAME "mcd90py2"
GROUP "cities"
STATUS OFF
DATA "mcd90py2"
TYPE POLYGON
CLASSITEM "city_name"
HEADER "mcd90py2_header.html"
FOOTER "mcd90py2_footer.html"
# allow GML export
METADATA
"WMS_TITLE" "Minor Civil Divisions"
"WMS_ABSTRACT" "Minor civil divisions for Itasca County.
(boundaries only)"
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Cities & Towns"
EXPRESSION /./
COLOR 255 225 90
TEMPLATE "mcd90py2.html"
END
END
LAYER
NAME "twprgpy3"
STATUS OFF
DATA "twprgpy3"
TYPE POLYGON
METADATA
"WMS_TITLE" "Township Boundaries"
"WMS_ABSTRACT" "Pulic Land Survey (PLS) township boundaries for
Itasca County. See http://deli.dnr.state.mn.us/metadata/full/twprgne2.html
for more information."
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Townships"
SYMBOL "circle"
OUTLINECOLOR 181 181 145
SIZE 2
END
END
LAYER
NAME "lakespy2"
STATUS OFF
DATA "lakespy2"
TYPE POLYGON
TOLERANCE 3
HEADER "lakespy2_header.html"
FOOTER "lakespy2_footer.html"
# allow GML export
METADATA
"WMS_TITLE" "Lakes and Rivers"
"WMS_ABSTRACT" "DLG lake and river polygons for Itasca County. See
http://deli.dnr.state.mn.us/metadata/full/dlglkpy2.html for more
information."
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Lakes & Rivers"
COLOR 49 117 185
TEMPLATE "lakespy2.html"
END
END
# lakes
LAYER
NAME "dlgstln2"
STATUS OFF
DATA "dlgstln2"
TYPE LINE
TOLERANCE 5
HEADER "dlgstln2_header.html"
FOOTER "dlgstln2_footer.html"
# allow GML export
METADATA
"WMS_TITLE" "Streams"
"WMS_ABSTRACT" "DLG streams for Itasca County. See
http://deli.dnr.state.mn.us/metadata/full/dlgstln2.html for more
information."
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Streams"
COLOR 49 117 185
TEMPLATE "dlgstln2.html"
END
END
# streams
LAYER
NAME "ctyrdln3"
GROUP "roads"
STATUS OFF
DATA "ctyrdln3"
TYPE LINE
MAXSCALE 300000
METADATA
"WMS_TITLE" "County Roads"
"WMS_ABSTRACT" "County roads. (lines only) Derived from MNDOT
roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for
more information."
"WMS_SRS" "EPSG:26915"
END
CLASS
COLOR 0 0 0
END
END
# county roads
LAYER
NAME "ctyrdln3_anno"
GROUP "roads"
STATUS OFF
DATA "ctyrdln3"
TYPE ANNOTATION
MAXSCALE 300000
LABELITEM "road_name"
METADATA
"WMS_TITLE" "County Roads"
"WMS_ABSTRACT" "County roads. (shields only) Derived from MNDOT
roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for
more information."
"WMS_SRS" "EPSG:26915"
END
CLASS
SYMBOL "symbols/ctyhwy.gif"
COLOR 255 255 255
LABEL
SIZE TINY
POSITION CC
MINDISTANCE 150
MINFEATURESIZE 40
COLOR 0 0 0
END
END
END
# county road annotation
LAYER
NAME "majrdln3"
GROUP "roads"
STATUS OFF
DATA "majrdln3"
TYPE LINE
MAXSCALE 600000
METADATA
"WMS_TITLE" "Highways"
"WMS_ABSTRACT" "Highways- state, US and interstate. (lines only)
Derived from MNDOT roads layer, see
http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more
information."
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Roads"
COLOR 0 0 0
END
END
# highways
LAYER
NAME "majrdln3_anno"
GROUP "roads"
STATUS OFF
DATA "majrdln3"
TYPE ANNOTATION
CLASSITEM "road_class"
MAXSCALE 600000
LABELITEM "road_num"
METADATA
"WMS_TITLE" "Highways"
"WMS_ABSTRACT" "Highways- state, US and interstate. (shields only)
Derived from MNDOT roads layer, see
http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more
information."
"WMS_SRS" "EPSG:26915"
END
CLASS
EXPRESSION "3"
# dummy color
SYMBOL "symbols/sthwy.gif"
COLOR 0 0 0
LABEL
SIZE TINY
POSITION CC
MINDISTANCE 150
MINFEATURESIZE 50
COLOR 0 0 0
END
END
CLASS
EXPRESSION "2"
# dummy color
SYMBOL "symbols/ushwy.gif"
COLOR 0 0 0
LABEL
SIZE TINY
POSITION CC
MINDISTANCE 150
MINFEATURESIZE 50
COLOR 0 0 0
END
END
CLASS
EXPRESSION "1"
# dummy color
SYMBOL "symbols/interstate.gif"
COLOR 0 0 0
LABEL
SIZE TINY
POSITION CC
MINDISTANCE 150
MINFEATURESIZE 50
COLOR 255 255 255
END
END
END
# highway annotation
LAYER
NAME "airports"
STATUS OFF
DATA "airports"
TYPE POINT
TOLERANCE 5
HEADER "airports_header.html"
FOOTER "airports_footer.html"
METADATA
"WMS_TITLE" "Airports"
"WMS_ABSTRACT" "Airport runways for Itasca County."
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Airports"
SYMBOL "circle"
COLOR 128 255 164
SIZE 7
TEMPLATE "airports.html"
END
END
LAYER
NAME "cities"
STATUS OFF
DATA "mcd90py2"
TYPE ANNOTATION
CLASSITEM "city_name"
LABELITEM "city_name"
LABELMAXSCALE 500000
METADATA
"WMS_TITLE" "Minor Civil Divisions"
"WMS_ABSTRACT" "Minor civil divisions for Itasca County.
(annotation only)"
"WMS_SRS" "EPSG:26915"
END
CLASS
EXPRESSION /./
COLOR -1 -1 -1
LABEL
TYPE BITMAP
SIZE MEDIUM
POSITION CC
BUFFER 2
COLOR 0 0 0
SHADOWCOLOR 218 218 218
SHADOWSIZE 2 2
PARTIALS FALSE
END
END
END
LAYER
NAME "tgroads"
STATUS ON
DATA "tgrds"
TYPE LINE
CLASSITEM "Street"
UNITS DD
END
LAYER
NAME "usa"
STATUS DEFAULT
DATA "usa"
TYPE POLYGON
UNITS DD
END
END
COSADEMO.HTML template file:
MapServer Demo Interface
MapServer Demo Interface
Michael Smith, Planner II
City of San Angelo
Planning & Development
325.657.4210 Fax: 325.481.2648
Email: msmith@sanangelompo.org
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From msmith@sanangelompo.org Tue Sep 2 19:23:58 2003
From: msmith@sanangelompo.org (Michael Smith)
Date: Tue, 2 Sep 2003 13:23:58 -0500
Subject: [Mapserver-users] Beginner -- What's wrong?
In-Reply-To:
Message-ID:
Yes, this is the way it appears in the demo.
-----Original Message-----
From: mapserver-users-admin@lists.gis.umn.edu
[mailto:mapserver-users-admin@lists.gis.umn.edu]On Behalf Of
Swaminathan, Gayathri
Sent: Tuesday, September 02, 2003 12:20 PM
To: 'Michael Smith'; mapserver-users@lists.gis.umn.edu
Subject: RE: [Mapserver-users] Beginner -- What's wrong?
Mike,
See that you have only one "PROJECTION" definition and that is commented
out....
Is this how the map file is on demo?
Thanks,
-----Original Message-----
From: Michael Smith [mailto:msmith@sanangelompo.org]
Sent: Tuesday, September 02, 2003 11:55 AM
To: mapserver-users@lists.gis.umn.edu
Subject: [Mapserver-users] Beginner -- What's wrong?
I have installed a got working the 3.6 demo of MapServer (windows 2000/IIS
5). When I change the files to insert my shapefiles (tgrds and usa) nothing
appears on the demo screen but I do get the reference map. Here are my
files used can anyone see what I am doing wrong. Thanks.
COSADEMO_INIT.HTML file:
MapServer Demo Interface
MapServer Demo Interface
Click on the initialize button to fire up the demo with 3 layers turned on
will be accessible for browsing. The data are of Itasca County, MN and were
derived, for the most part, from USGS 1:24,000 quadrangles. Some things to
note are:
COSADEMO.MAP file the last 2 layers are what I added (tgroads and USA): MAP
#
# Start of map file
#
NAME "DEMO"
STATUS ON
EXTENT -180.00 -90.0 180.00 90.0
#EXTENT -180.0 -90.0 180.0 90.0
SIZE 600 600
SHAPEPATH "data"
IMAGECOLOR 255 255 255
UNITS DD
# 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=utm"
# "ellps=GRS80"
# "zone=15"
# "north"
# "no_defs"
#
# OR:
#
# "init=epsg:26915"
#END
#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
MINSCALE 1000
MAXSCALE 5550000
IMAGEPATH "set in cosademo_init.html"
IMAGEURL "set in cosademo_init.html"
HEADER "demo_header.html"
FOOTER "demo_footer.html"
TEMPLATE "cosademo.html"
METADATA
"WMS_TITLE" "UMN MapServer Itasca Demo"
"WMS_ABSTRACT" "This is the UMN MapServer demonstration application
for Itasca County located in north central Minnesota."
"WMS_ACCESSCONSTRAINTS" "none"
"WMS_ONLINERESOURCE" "http://192.168.110.21/itasca/cosademo_init.html"
"WMS_SRS" "EPSG:26915"
END
END
#
# Start of reference map
#
REFERENCE
STATUS ON
IMAGE "graphics/cosarefer.gif"
SIZE 120 120
EXTENT -180.0 -90.0 180.0 90.0
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END
QUERYMAP
STATUS ON
SIZE 200 200
COLOR 255 0 0
STYLE HILITE
END
#
# Start of legend
#
LEGEND
STATUS ON
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
END
#
# Start of scalebar
#
SCALEBAR
STATUS TRUE
COLOR 255 255 255
IMAGECOLOR 255 255 255
UNITS MILES
INTERVALS 1
SIZE 80 2
STYLE 1
LABEL
SIZE tiny
COLOR 255 255 255
END
END
#
# Start of symbol definitions (we're only using a few)
#
SYMBOL
NAME "circle"
TYPE ELLIPSE
FILLED TRUE
POINTS
1 1
END
END
#
# Start of layer definitions
#
LAYER
NAME "ctybdpy2"
STATUS OFF
DATA "ctybdpy2"
TYPE POLYGON
CLASSITEM "cty_name"
METADATA
"WMS_TITLE" "County Boundary"
"WMS_ABSTRACT" "Itasca County boundary shapefile. See
http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html for more
information."
"WMS_SRS" "EPSG:26915"
END
CLASS
EXPRESSION "Itasca"
COLOR 225 225 185
OUTLINECOLOR 128 128 128
END
CLASS
# every other county in the state
EXPRESSION /./
COLOR 255 255 255
OUTLINECOLOR 128 128 128
END
END
LAYER
NAME "mcd90py2"
GROUP "cities"
STATUS OFF
DATA "mcd90py2"
TYPE POLYGON
CLASSITEM "city_name"
HEADER "mcd90py2_header.html"
FOOTER "mcd90py2_footer.html"
# allow GML export
METADATA
"WMS_TITLE" "Minor Civil Divisions"
"WMS_ABSTRACT" "Minor civil divisions for Itasca County.
(boundaries only)"
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Cities & Towns"
EXPRESSION /./
COLOR 255 225 90
TEMPLATE "mcd90py2.html"
END
END
LAYER
NAME "twprgpy3"
STATUS OFF
DATA "twprgpy3"
TYPE POLYGON
METADATA
"WMS_TITLE" "Township Boundaries"
"WMS_ABSTRACT" "Pulic Land Survey (PLS) township boundaries for
Itasca County. See http://deli.dnr.state.mn.us/metadata/full/twprgne2.html
for more information."
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Townships"
SYMBOL "circle"
OUTLINECOLOR 181 181 145
SIZE 2
END
END
LAYER
NAME "lakespy2"
STATUS OFF
DATA "lakespy2"
TYPE POLYGON
TOLERANCE 3
HEADER "lakespy2_header.html"
FOOTER "lakespy2_footer.html"
# allow GML export
METADATA
"WMS_TITLE" "Lakes and Rivers"
"WMS_ABSTRACT" "DLG lake and river polygons for Itasca County. See
http://deli.dnr.state.mn.us/metadata/full/dlglkpy2.html for more
information."
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Lakes & Rivers"
COLOR 49 117 185
TEMPLATE "lakespy2.html"
END
END
# lakes
LAYER
NAME "dlgstln2"
STATUS OFF
DATA "dlgstln2"
TYPE LINE
TOLERANCE 5
HEADER "dlgstln2_header.html"
FOOTER "dlgstln2_footer.html"
# allow GML export
METADATA
"WMS_TITLE" "Streams"
"WMS_ABSTRACT" "DLG streams for Itasca County. See
http://deli.dnr.state.mn.us/metadata/full/dlgstln2.html for more
information."
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Streams"
COLOR 49 117 185
TEMPLATE "dlgstln2.html"
END
END
# streams
LAYER
NAME "ctyrdln3"
GROUP "roads"
STATUS OFF
DATA "ctyrdln3"
TYPE LINE
MAXSCALE 300000
METADATA
"WMS_TITLE" "County Roads"
"WMS_ABSTRACT" "County roads. (lines only) Derived from MNDOT
roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for
more information."
"WMS_SRS" "EPSG:26915"
END
CLASS
COLOR 0 0 0
END
END
# county roads
LAYER
NAME "ctyrdln3_anno"
GROUP "roads"
STATUS OFF
DATA "ctyrdln3"
TYPE ANNOTATION
MAXSCALE 300000
LABELITEM "road_name"
METADATA
"WMS_TITLE" "County Roads"
"WMS_ABSTRACT" "County roads. (shields only) Derived from MNDOT
roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for
more information."
"WMS_SRS" "EPSG:26915"
END
CLASS
SYMBOL "symbols/ctyhwy.gif"
COLOR 255 255 255
LABEL
SIZE TINY
POSITION CC
MINDISTANCE 150
MINFEATURESIZE 40
COLOR 0 0 0
END
END
END
# county road annotation
LAYER
NAME "majrdln3"
GROUP "roads"
STATUS OFF
DATA "majrdln3"
TYPE LINE
MAXSCALE 600000
METADATA
"WMS_TITLE" "Highways"
"WMS_ABSTRACT" "Highways- state, US and interstate. (lines only)
Derived from MNDOT roads layer, see
http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more
information."
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Roads"
COLOR 0 0 0
END
END
# highways
LAYER
NAME "majrdln3_anno"
GROUP "roads"
STATUS OFF
DATA "majrdln3"
TYPE ANNOTATION
CLASSITEM "road_class"
MAXSCALE 600000
LABELITEM "road_num"
METADATA
"WMS_TITLE" "Highways"
"WMS_ABSTRACT" "Highways- state, US and interstate. (shields only)
Derived from MNDOT roads layer, see
http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more
information."
"WMS_SRS" "EPSG:26915"
END
CLASS
EXPRESSION "3"
# dummy color
SYMBOL "symbols/sthwy.gif"
COLOR 0 0 0
LABEL
SIZE TINY
POSITION CC
MINDISTANCE 150
MINFEATURESIZE 50
COLOR 0 0 0
END
END
CLASS
EXPRESSION "2"
# dummy color
SYMBOL "symbols/ushwy.gif"
COLOR 0 0 0
LABEL
SIZE TINY
POSITION CC
MINDISTANCE 150
MINFEATURESIZE 50
COLOR 0 0 0
END
END
CLASS
EXPRESSION "1"
# dummy color
SYMBOL "symbols/interstate.gif"
COLOR 0 0 0
LABEL
SIZE TINY
POSITION CC
MINDISTANCE 150
MINFEATURESIZE 50
COLOR 255 255 255
END
END
END
# highway annotation
LAYER
NAME "airports"
STATUS OFF
DATA "airports"
TYPE POINT
TOLERANCE 5
HEADER "airports_header.html"
FOOTER "airports_footer.html"
METADATA
"WMS_TITLE" "Airports"
"WMS_ABSTRACT" "Airport runways for Itasca County."
"WMS_SRS" "EPSG:26915"
END
CLASS
NAME "Airports"
SYMBOL "circle"
COLOR 128 255 164
SIZE 7
TEMPLATE "airports.html"
END
END
LAYER
NAME "cities"
STATUS OFF
DATA "mcd90py2"
TYPE ANNOTATION
CLASSITEM "city_name"
LABELITEM "city_name"
LABELMAXSCALE 500000
METADATA
"WMS_TITLE" "Minor Civil Divisions"
"WMS_ABSTRACT" "Minor civil divisions for Itasca County.
(annotation only)"
"WMS_SRS" "EPSG:26915"
END
CLASS
EXPRESSION /./
COLOR -1 -1 -1
LABEL
TYPE BITMAP
SIZE MEDIUM
POSITION CC
BUFFER 2
COLOR 0 0 0
SHADOWCOLOR 218 218 218
SHADOWSIZE 2 2
PARTIALS FALSE
END
END
END
LAYER
NAME "tgroads"
STATUS ON
DATA "tgrds"
TYPE LINE
CLASSITEM "Street"
UNITS DD
END
LAYER
NAME "usa"
STATUS DEFAULT
DATA "usa"
TYPE POLYGON
UNITS DD
END
END
COSADEMO.HTML template file:
MapServer Demo Interface
MapServer Demo Interface
Michael Smith, Planner II
City of San Angelo
Planning & Development
325.657.4210 Fax: 325.481.2648
Email: msmith@sanangelompo.org
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From geoffrey.rowland@noaa.gov Tue Sep 2 19:46:40 2003
From: geoffrey.rowland@noaa.gov (Geoffrey Rowland)
Date: Tue, 02 Sep 2003 14:46:40 -0400
Subject: [Mapserver-users] PHP MapScript problem (use of undefined constant)
In-Reply-To:
References:
Message-ID: <3F54E590.5070709@noaa.gov>
This is a multi-part message in MIME format.
--------------020104020707010103090708
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Notice: Use of undefined constant MS_SWF - assumed 'MS_SWF' in
D:\Inetpub\CIP ROOT BETA\wnv\wnv_pop.php on line 4
this will have the same notice no matter what type of file i try to
output...and the image doesn't output (nothing is written in the
directory that i specified to use in my map file). any idea what may be
causing this?
$map = ms_newMapObj("pop.map");
$image=$map->draw();
$image_url=$image->saveWebImage(MS_SWF,1,1,0);
?>
Example 1: Displaying a map
>
map file
#
# Start of map file
#
NAME "PopTest"
STATUS ON
SIZE 600 600
EXTENT -178.227822 18.913826 -66.949831 71.38269
UNITS dd
SHAPEPATH "data"
IMAGECOLOR 255 255 255
#IMAGETYPE PNG
OUTPUTFORMAT
NAME swf
MIMETYPE "application/x-shockwave-flash"
DRIVER swf
IMAGEMODE PC256
FORMATOPTION "OUTPUT_MOVIE=MULTIPLE"
END
#PROJECTION
# "proj=latlong"
#END
WEB
HEADER us_header.html
TEMPLATE temp.html
FOOTER us_footer.html
LOG popmapserver.log
MINSCALE 1
MAXSCALE 36335600
IMAGEPATH "d:/Inetpub/pop/swf/"
IMAGEURL "http://localhost/pop/swf/"
METADATA
WMS_TITLE "United States County Data"
WMS_ABSTRACT "This is a demonstration of using Mapserver to display
the County data set."
WMS_ACCESSCONSTRAINTS none
WMS_SRS "EPSG:4269"
END # End Metadata
END # End Web
QUERYMAP
SIZE 200 200
STATUS ON
STYLE HILITE
COLOR 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 MILES
INTERVALS 1
TRANSPARENT TRUE
STATUS TRUE
END
LAYER
NAME states
METADATA
"DESCRIPTION" "States"
"RESULT_FIELDS" "State_Name Pop1999"
"SWFDUMPATTRIBUTES" "State_Name,Pop1999"
END
TYPE POLYGON
STATUS ON
DATA states
CLASSITEM 'Pop1999'
NAME Pop1999
TEMPLATE us_pop.html
CLASS
EXPRESSION ([Pop1999] > 0 and [Pop1999] < 2135252)
COLOR 254 240 217
OUTLINECOLOR 128 128 128
END
CLASS
EXPRESSION ([Pop1999] > 2135251 and [Pop1999] < 4970311)
COLOR 253 212 158
OUTLINECOLOR 128 128 128
END
CLASS
EXPRESSION ([Pop1999] > 4970310 and [Pop1999] < 9866640)
COLOR 253 187 132
OUTLINECOLOR 128 128 128
END
CLASS
EXPRESSION ([Pop1999] > 9866639 and [Pop1999] < 20127338)
COLOR 252 141 89
OUTLINECOLOR 128 128 128
END
CLASS
EXPRESSION ([Pop1999] > 20127337 )
COLOR 227 74 51
OUTLINECOLOR 128 128 128
END
END # end class
END # end layer
END # end Map File
--
Geoffrey Rowland
Technical Officer
Climate Information Project
NOAA Research
Office of Global Programs
http://www.cip.ogp.noaa.gov
Contractor,
RGII Technologies, Inc., a Computer Horizons Company
http://www.rg2.com
Phone: 301-427-2089x186
Fax : 301-427-2082
geoffrey.rowland@noaa.gov
--------------020104020707010103090708
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Notice: Use of undefined constant MS_SWF - assumed 'MS_SWF' in D:\Inetpub\CIP
ROOT BETA\wnv\wnv_pop.php on line 4
this will have the same notice no matter what type of file i try to
output...and the image doesn't output (nothing is written in the
directory that i specified to use in my map file). any idea what may
be causing this?
<?
$map = ms_newMapObj("pop.map");
$image=$map->draw();
$image_url=$image->saveWebImage(MS_SWF,1,1,0);
?>
<HTML>
<HEAD>
<TITLE>Example 1: Displaying a map</TITLE>
</HEAD>
<BODY>
<IMG SRC=<?php echo $image_url; ?> >
</BODY>
</HTML>
map file
#
# Start of map file
#
NAME "PopTest"
STATUS ON
SIZE 600 600
EXTENT -178.227822 18.913826 -66.949831 71.38269
UNITS dd
SHAPEPATH "data"
IMAGECOLOR 255 255 255
#IMAGETYPE PNG
OUTPUTFORMAT
NAME swf
MIMETYPE "application/x-shockwave-flash"
DRIVER swf
IMAGEMODE PC256
FORMATOPTION "OUTPUT_MOVIE=MULTIPLE"
END
#PROJECTION
# "proj=latlong"
#END
WEB
HEADER us_header.html
TEMPLATE temp.html
FOOTER us_footer.html
LOG popmapserver.log
MINSCALE 1
MAXSCALE 36335600
IMAGEPATH "d:/Inetpub/pop/swf/"
IMAGEURL "http://localhost/pop/swf/"
METADATA
WMS_TITLE "United States County Data"
WMS_ABSTRACT "This is a demonstration of using Mapserver to display
the County data set."
WMS_ACCESSCONSTRAINTS none
WMS_SRS "EPSG:4269"
END # End Metadata
END # End Web
QUERYMAP
SIZE 200 200
STATUS ON
STYLE HILITE
COLOR 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 MILES
INTERVALS 1
TRANSPARENT TRUE
STATUS TRUE
END
LAYER
NAME states
METADATA
"DESCRIPTION" "States"
"RESULT_FIELDS" "State_Name Pop1999"
"SWFDUMPATTRIBUTES" "State_Name,Pop1999"
END
TYPE POLYGON
STATUS ON
DATA states
CLASSITEM 'Pop1999'
NAME Pop1999
TEMPLATE us_pop.html
CLASS
EXPRESSION ([Pop1999] > 0 and [Pop1999] < 2135252)
COLOR 254 240 217
OUTLINECOLOR 128 128 128
END
CLASS
EXPRESSION ([Pop1999] > 2135251 and [Pop1999] < 4970311)
COLOR 253 212 158
OUTLINECOLOR 128 128 128
END
CLASS
EXPRESSION ([Pop1999] > 4970310 and [Pop1999] < 9866640)
COLOR 253 187 132
OUTLINECOLOR 128 128 128
END
CLASS
EXPRESSION ([Pop1999] > 9866639 and [Pop1999] < 20127338)
COLOR 252 141 89
OUTLINECOLOR 128 128 128
END
CLASS
EXPRESSION ([Pop1999] > 20127337 )
COLOR 227 74 51
OUTLINECOLOR 128 128 128
END
END # end class
END # end layer
END # end Map File
--
Geoffrey Rowland
Technical Officer
Climate Information Project
NOAA Research
Office of Global Programs
http://www.cip.ogp.noaa.gov
Contractor,
RGII Technologies, Inc., a Computer Horizons Company
http://www.rg2.com
Phone: 301-427-2089x186
Fax : 301-427-2082
geoffrey.rowland@noaa.gov
--------------020104020707010103090708--
From sgillies@frii.com Tue Sep 2 20:09:59 2003
From: sgillies@frii.com (Sean Gillies)
Date: Tue, 2 Sep 2003 13:09:59 -0600
Subject: [Mapserver-users] hi all:any one have binary python mapscript suit mapserver 4.0 running on windows version?
In-Reply-To: <3847F35B08A3E342B56E79AD3393A6A20139AC92@nwcb-sh-mail.corp.nwcyberbase.com>
Message-ID: <0C027101-DD79-11D7-973F-000393B98B56@frii.com>
On Tuesday, September 2, 2003, at 12:07 AM, DellYan wrote:
> if have ,can distribute to public ??
>
>
>
> thanks a lot
>
Right before the 4.0 release, I discussed this with a maintainer of
Win32 builds. I will see if he has time to put a Python MapScript
together. When one is available, I willl make a link from the
Python MapScript Wiki page
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PythonMapScript
cheers,
Sean
--
Sean Gillies
sgillies at frii dot com
http://www.frii.com/~sgillies
From rjames57@yahoo.com Tue Sep 2 20:31:18 2003
From: rjames57@yahoo.com (Randy James)
Date: Tue, 2 Sep 2003 12:31:18 -0700 (PDT)
Subject: [Mapserver-users] PHP MapScript problem (use of undefined constant)
In-Reply-To: <3F54E590.5070709@noaa.gov>
Message-ID: <20030902193118.92180.qmail@web12507.mail.yahoo.com>
Hi
Does it make a differance if you define your image type
IMAGETYPE SWF
Cheers
Randy
--- Geoffrey Rowland wrote:
> Notice: Use of undefined constant MS_SWF - assumed
> 'MS_SWF' in
> D:\Inetpub\CIP ROOT BETA\wnv\wnv_pop.php on line 4
>
> this will have the same notice no matter what type of
> file i try to
> output...and the image doesn't output (nothing is written
> in the
> directory that i specified to use in my map file). any
> idea what may be
> causing this?
>
>
> $map = ms_newMapObj("pop.map");
> $image=$map->draw();
> $image_url=$image->saveWebImage(MS_SWF,1,1,0);
>
> ?>
>
>
>
> Example 1: Displaying a
> map
>
>
>
>
>
>
>
> map file
>
> #
> # Start of map file
> #
> NAME "PopTest"
> STATUS ON
> SIZE 600 600
> EXTENT -178.227822 18.913826 -66.949831 71.38269
> UNITS dd
> SHAPEPATH "data"
> IMAGECOLOR 255 255 255
>
>
> #IMAGETYPE PNG
>
> OUTPUTFORMAT
> NAME swf
> MIMETYPE "application/x-shockwave-flash"
> DRIVER swf
> IMAGEMODE PC256
> FORMATOPTION "OUTPUT_MOVIE=MULTIPLE"
> END
>
>
> #PROJECTION
> # "proj=latlong"
> #END
>
> WEB
> HEADER us_header.html
> TEMPLATE temp.html
> FOOTER us_footer.html
> LOG popmapserver.log
> MINSCALE 1
> MAXSCALE 36335600
> IMAGEPATH "d:/Inetpub/pop/swf/"
> IMAGEURL "http://localhost/pop/swf/"
> METADATA
> WMS_TITLE "United States County Data"
> WMS_ABSTRACT "This is a demonstration of using
> Mapserver to display
> the County data set."
> WMS_ACCESSCONSTRAINTS none
>
> WMS_SRS "EPSG:4269"
> END # End Metadata
> END # End Web
>
> QUERYMAP
> SIZE 200 200
> STATUS ON
> STYLE HILITE
> COLOR 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 MILES
> INTERVALS 1
> TRANSPARENT TRUE
> STATUS TRUE
> END
>
>
>
>
> LAYER
> NAME states
> METADATA
> "DESCRIPTION" "States"
> "RESULT_FIELDS" "State_Name Pop1999"
> "SWFDUMPATTRIBUTES" "State_Name,Pop1999"
> END
> TYPE POLYGON
> STATUS ON
> DATA states
>
>
> CLASSITEM 'Pop1999'
> NAME Pop1999
> TEMPLATE us_pop.html
> CLASS
> EXPRESSION ([Pop1999] > 0 and [Pop1999] < 2135252)
> COLOR 254 240 217
> OUTLINECOLOR 128 128 128
> END
>
> CLASS
> EXPRESSION ([Pop1999] > 2135251 and [Pop1999] <
> 4970311)
> COLOR 253 212 158
> OUTLINECOLOR 128 128 128
> END
>
> CLASS
> EXPRESSION ([Pop1999] > 4970310 and [Pop1999] <
> 9866640)
> COLOR 253 187 132
> OUTLINECOLOR 128 128 128
> END
>
> CLASS
> EXPRESSION ([Pop1999] > 9866639 and [Pop1999] <
> 20127338)
> COLOR 252 141 89
> OUTLINECOLOR 128 128 128
> END
>
> CLASS
> EXPRESSION ([Pop1999] > 20127337 )
> COLOR 227 74 51
> OUTLINECOLOR 128 128 128
> END
>
>
>
> END # end class
>
> END # end layer
>
>
> END # end Map File
>
> --
> Geoffrey Rowland
> Technical Officer
> Climate Information Project
> NOAA Research
> Office of Global Programs
> http://www.cip.ogp.noaa.gov
> Contractor,
> RGII Technologies, Inc., a Computer Horizons Company
> http://www.rg2.com
> Phone: 301-427-2089x186
> Fax : 301-427-2082
> geoffrey.rowland@noaa.gov
>
>
>
>
>
>
>
>
>
>
>
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
From Armin Burger Tue Sep 2 22:11:31 2003
From: Armin Burger (Armin Burger)
Date: Tue, 2 Sep 2003 22:11:31 +0100
Subject: [Mapserver-users] PHP MapScript problem (use of undefined
constant)
Message-ID: <20030902201201.DKLW16764.viefep12-int.chello.at@libero.it>
Geoffrey,
are you using Mapserver 4? Then you have to define the image format
before:
$map->selectOutputFormat("swf");
$image=$map->draw();
$image_url=$image->saveWebImage();
Armin
> Notice: Use of undefined constant MS_SWF - assumed 'MS_SWF' in
> D:\Inetpub\CIP ROOT BETA\wnv\wnv_pop.php on line 4
> this will have the same notice no matter what type of file i try to
> output...and the image doesn't output (nothing is written in the
> directory that i specified to use in my map file). any idea what may
be
> causing this?
>
> $map = ms_newMapObj("pop.map");
> $image=$map->draw();
> $image_url=$image->saveWebImage(MS_SWF,1,1,0);
> ?>
>
>
> Example 1: Displaying a map
>
>
>
>
>
>
> map file
> #
> # Start of map file
> #
> NAME "PopTest"
> STATUS ON
> SIZE 600 600
> EXTENT -178.227822 18.913826 -66.949831 71.38269
> UNITS dd
> SHAPEPATH "data"
> IMAGECOLOR 255 255 255
> #IMAGETYPE PNG
> OUTPUTFORMAT
> NAME swf
> MIMETYPE "application/x-shockwave-flash"
> DRIVER swf
> IMAGEMODE PC256
> FORMATOPTION "OUTPUT_MOVIE=MULTIPLE"
> END
> #PROJECTION
> # "proj=latlong"
> #END
> WEB
> HEADER us_header.html
> TEMPLATE temp.html
> FOOTER us_footer.html
> LOG popmapserver.log
> MINSCALE 1
> MAXSCALE 36335600
> IMAGEPATH "d:/Inetpub/pop/swf/"
> IMAGEURL "http://localhost/pop/swf/"
> METADATA
> WMS_TITLE "United States County Data"
> WMS_ABSTRACT "This is a demonstration of using Mapserver to display
> the County data set."
> WMS_ACCESSCONSTRAINTS none
> WMS_SRS "EPSG:4269"
> END # End Metadata
> END # End Web
> QUERYMAP
> SIZE 200 200
> STATUS ON
> STYLE HILITE
> COLOR 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 MILES
> INTERVALS 1
> TRANSPARENT TRUE
> STATUS TRUE
> END
> LAYER
> NAME states
> METADATA
> "DESCRIPTION" "States"
> "RESULT_FIELDS" "State_Name Pop1999"
> "SWFDUMPATTRIBUTES" "State_Name,Pop1999"
> END
> TYPE POLYGON
> STATUS ON
> DATA states
> CLASSITEM 'Pop1999'
> NAME Pop1999
> TEMPLATE us_pop.html
> CLASS
> EXPRESSION ([Pop1999] > 0 and [Pop1999] < 2135252)
> COLOR 254 240 217
> OUTLINECOLOR 128 128 128
> END
> CLASS
> EXPRESSION ([Pop1999] > 2135251 and [Pop1999] < 4970311)
> COLOR 253 212 158
> OUTLINECOLOR 128 128 128
> END
> CLASS
> EXPRESSION ([Pop1999] > 4970310 and [Pop1999] < 9866640)
> COLOR 253 187 132
> OUTLINECOLOR 128 128 128
> END
> CLASS
> EXPRESSION ([Pop1999] > 9866639 and [Pop1999] < 20127338)
> COLOR 252 141 89
> OUTLINECOLOR 128 128 128
> END
> CLASS
> EXPRESSION ([Pop1999] > 20127337 )
> COLOR 227 74 51
> OUTLINECOLOR 128 128 128
> END
> END # end class
> END # end layer
> END # end Map File
> --
> Geoffrey Rowland
> Technical Officer
> Climate Information Project
> NOAA Research
> Office of Global Programs
> http://www.cip.ogp.noaa.gov
> Contractor,
> RGII Technologies, Inc., a Computer Horizons Company
> http://www.rg2.com
> Phone: 301-427-2089x186
> Fax : 301-427-2082
> geoffrey.rowland@noaa.gov
From toomas.aas@raad.tartu.ee Tue Sep 2 21:57:56 2003
From: toomas.aas@raad.tartu.ee (Toomas Aas)
Date: Tue, 2 Sep 2003 23:57:56 +0300
Subject: [Mapserver-users] Problems with umlauts in labels
Message-ID: <200309022058.h82Kw5210548@lv.raad.tartu.ee>
Hello!
A couple of days ago, some developers who are writing an application
in PHP/Mapscript (3.6.6) on our server told me that after they returned from
vacation they discovered that labels in their application no longer
display umlauts. It had worked fine when they went to vacation.
The only thing I had done with the server while they were away was upgrading
PHP from 4.2.3 to 4.3.3. I didn't rebuild the php_mapscript.so module at that
time, since in brief (too brief I guess) testing the application "seemed"
unaffected by the PHP upgrade.
The first thing I tried was rebuilding PHP/Mapscript but that didn't help.
What did help was rebuilding PHP using external GD library. As you may
know, PHP includes its own "bundled" GD library, but it can also use external GD.
My server is running FreeBSD and it seems that when building PHP from FreeBSD
ports the build process now chooses to use bundled GD, whereas earlier it
used external GD. Hence my problem (and the workaround).
OK, so I got it working now, but I'm sure it will bite me again next time I
upgrade PHP. I would like to find a more permanent fix. If someone is using
PHP/Mapscript 3.6.6 and PHP 4.3.x with bundled GD library, are you able to
display umlauts in labels? Just trying to make sure if the problem is in my
server or somewhere else.
--
Toomas Aas | toomas.aas@raad.tartu.ee | http://www.raad.tartu.ee/~toomas/
* Kindred: Fear that relatives are coming to stay.
From geoffrey.rowland@noaa.gov Tue Sep 2 21:52:46 2003
From: geoffrey.rowland@noaa.gov (Geoffrey Rowland)
Date: Tue, 02 Sep 2003 16:52:46 -0400
Subject: [Mapserver-users] PHP MapScript problem (use of undefined constant)
In-Reply-To: <20030902201201.DKLW16764.viefep12-int.chello.at@libero.it>
References: <20030902201201.DKLW16764.viefep12-int.chello.at@libero.it>
Message-ID: <3F55031E.2050809@noaa.gov>
This is a multi-part message in MIME format.
--------------010304030609070602010607
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Yes, I am using Mapserver 4 and PHP 4.3.2, I tried using the
selectOutputFormat and it still gives the same error. What is very
strange is I have this same script running on a different server, set up
(as far as I am aware) the same exact way as the server I am having
problems with, and it works fine.
Armin Burger wrote:
>Geoffrey,
>
>are you using Mapserver 4? Then you have to define the image format
>before:
>
>$map->selectOutputFormat("swf");
>$image=$map->draw();
>$image_url=$image->saveWebImage();
>
>Armin
>
>
>
>
>>Notice: Use of undefined constant MS_SWF - assumed 'MS_SWF' in
>>D:\Inetpub\CIP ROOT BETA\wnv\wnv_pop.php on line 4
>>
>>
>
>
>
>>this will have the same notice no matter what type of file i try to
>>output...and the image doesn't output (nothing is written in the
>>directory that i specified to use in my map file). any idea what may
>>
>>
>be
>
>
>>causing this?
>>
>>
>
>
>
>>
>> $map = ms_newMapObj("pop.map");
>> $image=$map->draw();
>> $image_url=$image->saveWebImage(MS_SWF,1,1,0);
>>
>>
>
>
>
>> ?>
>>
>>
--
Geoffrey Rowland
Technical Officer
Climate Information Project
NOAA Research
Office of Global Programs
http://www.cip.ogp.noaa.gov
Contractor,
RGII Technologies, Inc., a Computer Horizons Company
http://www.rg2.com
Phone: 301-427-2089x186
Fax : 301-427-2082
geoffrey.rowland@noaa.gov
--------------010304030609070602010607
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Yes, I am using Mapserver 4 and PHP 4.3.2, I tried using the
selectOutputFormat and it still gives the same error. What is very
strange is I have this same script running on a different server, set
up (as far as I am aware) the same exact way as the server I am having
problems with, and it works fine.
Armin Burger wrote:
Geoffrey,
are you using Mapserver 4? Then you have to define the image format
before:
$map->selectOutputFormat("swf");
$image=$map->draw();
$image_url=$image->saveWebImage();
Armin
Notice: Use of undefined constant MS_SWF - assumed 'MS_SWF' in
D:\Inetpub\CIP ROOT BETA\wnv\wnv_pop.php on line 4
this will have the same notice no matter what type of file i try to
output...and the image doesn't output (nothing is written in the
directory that i specified to use in my map file). any idea what may
be
causing this?
<?
$map = ms_newMapObj("pop.map");
$image=$map->draw();
$image_url=$image->saveWebImage(MS_SWF,1,1,0);
?>
--
Geoffrey Rowland
Technical Officer
Climate Information Project
NOAA Research
Office of Global Programs
http://www.cip.ogp.noaa.gov
Contractor,
RGII Technologies, Inc., a Computer Horizons Company
http://www.rg2.com
Phone: 301-427-2089x186
Fax : 301-427-2082
geoffrey.rowland@noaa.gov
--------------010304030609070602010607--
From fx.gamoy@mapxplore.com Tue Sep 2 23:08:38 2003
From: fx.gamoy@mapxplore.com (fx gamoy)
Date: Tue, 2 Sep 2003 23:08:38 +0100
Subject: [Mapserver-users] exporting dxf file using php/mapscript
Message-ID: <001101c3719e$c345aa40$0201a8c0@mapxplore.com>
C'est un message de format MIME en plusieurs parties.
------=_NextPart_000_000E_01C371A7.24F97070
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
hello world,
Is it a way to export dxf file with php/mapscript?
I would like to enable a function which allow the end-user to export on =
th fly a dxf file of the image map.
any suggestion?
thanks
fx
------=_NextPart_000_000E_01C371A7.24F97070
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
hello world,
Is it a way to export dxf file with=20
php/mapscript?
I would like to enable a function which =
allow=20
the end-user to export on th fly a dxf file of the image =
map.
any suggestion?
thanks
fx
------=_NextPart_000_000E_01C371A7.24F97070--
From kgeurts@gis.umn.edu Tue Sep 2 23:49:23 2003
From: kgeurts@gis.umn.edu (Kari Geurts)
Date: Tue, 02 Sep 2003 17:49:23 CDT
Subject: [Mapserver-users] RE:MapServer Documentation Webpages
Message-ID: <200309022249.h82MnNfg012323@firefox.software.umn.edu>
Hello MapServer Users,
I have made some changes to the MapServer Documentation Project webpages.
These changes were made in an attempt to make the documentation of
MapServer easier to find, more up-to-date, and to provide more
explaination. You can visit the pages that have changed at the following
URLs or just go to the MapServer home page and click on the Documentation
link.
http://mapserver.gis.umn.edu/doc.html
http://mapserver.gis.umn.edu/mdp/mdp.html
http://mapserver.gis.umn.edu/doc/develop_index.html
http://mapserver.gis.umn.edu/mdp/current_projects.html
http://mapserver.gis.umn.edu/doc/doc_es.html
http://mapserver.gis.umn.edu/doc/doc_fr.html
I would appreciate any and all feedback about the new webpages.
Thanks,
Kari A. Geurts
MDP Coordinator
Department of Forest Resources
University of Minnesota
115 Green Hall
1530 Cleveland Ave. N.
St. Paul, MN 55108-6112
Phone: 612-624-3459
Email: kgeurts@gis.umn.edu
From Ann.Keane@noaa.gov Wed Sep 3 00:54:03 2003
From: Ann.Keane@noaa.gov (Ann Keane)
Date: Tue, 02 Sep 2003 17:54:03 -0600
Subject: [Mapserver-users] Tutorial raster examples on Mapserver 4.0?
Message-ID: <3F552D9B.706@noaa.gov>
I'm trying to run the 3.5 tutorial examples on a 4.0 mapserver to test
the GDAL installation. I can't get the raster examples to work:
http://terrasip.gis.umn.edu/projects/tutorial35/s2/s2ex3.html
mapserv -v
MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
The example works if I remove the raster layer. I've set DEBUG on and
tried logging it to a file, but I don't get any errors. Is there any
other way to test the installation?
Thanks-
Ann
From woodbri@swoodbridge.com Wed Sep 3 00:54:07 2003
From: woodbri@swoodbridge.com (woodbri@swoodbridge.com)
Date: Tue, 02 Sep 2003 19:54:07 -0400
Subject: [Mapserver-users] exporting dxf file using php/mapscript
In-Reply-To: <001101c3719e$c345aa40$0201a8c0@mapxplore.com>
Message-ID: <3F54F55F.16815.1E0F7990@localhost>
Well, aside from various difficulties you might face with respect to
handling data that dxf may not handle well, like image data, I think
the best way to do this would be to write an OUTFORMAT driver for DXF
format. I think you be able to use the Flash driver as a start point
and modify it to write DXF instead. Having never ventured into this
code I may not know what I'm talking about but both Flash and DXF
support vectors, polygons and annotation.
Just a thought,
-Steve W.
On 2 Sep 2003 at 23:08, fx gamoy wrote:
> hello world,
> Is it a way to export dxf file with php/mapscript?
> I would like to enable a function which allow the end-user to export
> on th fly a dxf file of the image map.
>
> any suggestion?
> thanks
> fx
>
From warmerdam@pobox.com Wed Sep 3 03:20:39 2003
From: warmerdam@pobox.com (Frank Warmerdam)
Date: Tue, 02 Sep 2003 22:20:39 -0400
Subject: [Mapserver-users] Tutorial raster examples on Mapserver 4.0?
In-Reply-To: <3F552D9B.706@noaa.gov>
References: <3F552D9B.706@noaa.gov>
Message-ID: <3F554FF7.7060907@pobox.com>
Ann Keane wrote:
>
> I'm trying to run the 3.5 tutorial examples on a 4.0 mapserver to test
> the GDAL installation. I can't get the raster examples to work:
>
> http://terrasip.gis.umn.edu/projects/tutorial35/s2/s2ex3.html
>
> mapserv -v
>
> MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
> SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG
> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
>
> The example works if I remove the raster layer. I've set DEBUG on and
> tried logging it to a file, but I don't get any errors. Is there any
> other way to test the installation?
Ann,
Things that may be different now:
o The way paths to data files are resolved is different in subtle ways.
Try an absolute path, or relative to SHAPEPATH or relative to the map.
o World file handling may be slightly different. Does gdalinfo report
proper georeferencing for the file in question? Georeferencing that
makes sense relative to the map area?
o Offsite handling is different, you may need OFFSITE r g b to get proper
offsite handling.
Good luck,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
From plists@prometheus.org.yu Wed Sep 3 11:05:48 2003
From: plists@prometheus.org.yu (Attila Csipa)
Date: Wed, 3 Sep 2003 12:05:48 +0200
Subject: [Mapserver-users] exporting dxf file using php/mapscript
In-Reply-To: <3F54F55F.16815.1E0F7990@localhost>
References: <3F54F55F.16815.1E0F7990@localhost>
Message-ID: <200309031204.45543.plists@prometheus.org.yu>
On Wednesday 03 September 2003 01:54, woodbri@swoodbridge.com wrote:
> Well, aside from various difficulties you might face with respect to
> handling data that dxf may not handle well, like image data, I think
> the best way to do this would be to write an OUTFORMAT driver for DXF
> format. I think you be able to use the Flash driver as a start point
Actually there already is an (untested and just as undocumented) DXF
OUTPUTFORMAT, not for the faint at heart. You can try it out if you have a v4
mapserver or newer cvs code. Do everything as usual, just drop the following
in your mapfile to generate dxf-s instead of images:
OUTPUTFORMAT
NAME imagemap
MIMETYPE "text/plain"
DRIVER imagemap
EXTENSION dxf
FORMATOPTION DXF=ON
END
From nf10@hotmail.com Wed Sep 3 13:34:04 2003
From: nf10@hotmail.com (Jeff L.)
Date: Wed, 03 Sep 2003 12:34:04 +0000
Subject: [Mapserver-users] Zoom In to a defined area
Message-ID:
Hi Palle and David,
I tried to change my code by setting mapext to the ViewArea value, but no
success so far.
When i select an option from my combo box, the map is redrawed but with the
old mapext value.
It's seems that i'm not setting correctly the new mapext. MapServer is using
it's mapext value not the one i'm setting.
I'm using this code snippet. Any help how to set correctly mapext is
appreciated.
function AreaSelected()
{
if (document.forms[0].ViewArea.selectedIndex != 0 &&
document.forms[0].ViewArea.selectedIndex !=1)
{
mapext = document.forms[0].ViewArea.value;
document.forms[0].submit();
}
}
...
Jeff Lacoste
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
From dlowther@ou.edu Wed Sep 3 13:56:46 2003
From: dlowther@ou.edu (Lowther, David W)
Date: Wed, 3 Sep 2003 07:56:46 -0500
Subject: [Mapserver-users] Zoom In to a defined area
Message-ID:
Jeff,
First - yes, it is correct to set IMGEXT.
Your problem is with javascript - that was my biggest hurdle also.
What you want to do is:
A - get the value of the selected element of the combo box
B - assign it to imgext in your mapserv form
C - submit the form.
Only javascript could make this difficult...
Try this:
function AreaSelected(){
msForm = document.myform;
//a
newExtent =
msForm.ViewArea.options[msForm.ViewArea.selectedIndex].value;
//b
msForm.imgext.value = newExtent;
//c
msForm.submit();
}
Dave
> -----Original Message-----
> From: Jeff L. [mailto:nf10@hotmail.com]
> Sent: Wednesday, September 03, 2003 7:34 AM
> To: dlowther@ou.edu; palle@mail-online.dk;
> mapserver-users@lists.gis.umn.edu
> Subject: Re: [Mapserver-users] Zoom In to a defined area
>
>
> Hi Palle and David,