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 at sanangelompo.org
From gayathri at ou.edu Tue Sep 2 10:19:31 2003
From: gayathri at 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 at sanangelompo.org]
Sent: Tuesday, September 02, 2003 11:55 AM
To: mapserver-users at 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 at sanangelompo.org
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From msmith at sanangelompo.org Tue Sep 2 11:23:58 2003
From: msmith at 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 at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of
Swaminathan, Gayathri
Sent: Tuesday, September 02, 2003 12:20 PM
To: 'Michael Smith'; mapserver-users at 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 at sanangelompo.org]
Sent: Tuesday, September 02, 2003 11:55 AM
To: mapserver-users at 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 at sanangelompo.org
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From geoffrey.rowland at noaa.gov Tue Sep 2 11:46:40 2003
From: geoffrey.rowland at 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 at 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 at noaa.gov
--------------020104020707010103090708--
From sgillies at frii.com Tue Sep 2 12:09:59 2003
From: sgillies at 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 at yahoo.com Tue Sep 2 12:31:18 2003
From: rjames57 at 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 at noaa.gov
>
>
>
>
>
>
>
>
>
>
>
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
From armin.burger at libero.it Tue Sep 2 14:11:31 2003
From: armin.burger at libero.it (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 at noaa.gov
From toomas.aas at raad.tartu.ee Tue Sep 2 13:57:56 2003
From: toomas.aas at 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 at raad.tartu.ee | http://www.raad.tartu.ee/~toomas/
* Kindred: Fear that relatives are coming to stay.
From geoffrey.rowland at noaa.gov Tue Sep 2 13:52:46 2003
From: geoffrey.rowland at 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 at 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 at noaa.gov
--------------010304030609070602010607--
From fx.gamoy at mapxplore.com Tue Sep 2 15:08:38 2003
From: fx.gamoy at 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 at gis.umn.edu Tue Sep 2 15:49:23 2003
From: kgeurts at 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 at gis.umn.edu
From Ann.Keane at noaa.gov Tue Sep 2 16:54:03 2003
From: Ann.Keane at 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 at swoodbridge.com Tue Sep 2 16:54:07 2003
From: woodbri at swoodbridge.com (woodbri at 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 at pobox.com Tue Sep 2 19:20:39 2003
From: warmerdam at 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 at 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 at prometheus.org.yu Wed Sep 3 03:05:48 2003
From: plists at 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 at 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 at hotmail.com Wed Sep 3 05:34:04 2003
From: nf10 at 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 at ou.edu Wed Sep 3 05:56:46 2003
From: dlowther at 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 at hotmail.com]
> Sent: Wednesday, September 03, 2003 7:34 AM
> To: dlowther at ou.edu; palle at mail-online.dk;
> mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] Zoom In to a defined area
>
>
> 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 palle at mail-online.dk Wed Sep 3 06:38:37 2003
From: palle at mail-online.dk (Palle Due Larsen)
Date: Wed, 03 Sep 2003 15:38:37 +0200
Subject: [Mapserver-users] Zoom In to a defined area
In-Reply-To:
References:
Message-ID:
Another possibility is
newExtent =
msForm.ViewArea.options[msForm.ViewArea.selectedIndex].value.replace(/
/g, "+");
That will replace the blanks with +'s.
Best Regadrs
Pall Due Larsen
Carl Bro GIS&IT
-----Original Message-----
From: "Lowther, David W"
To: mapserver-users at lists.gis.umn.edu
Date: Wed, 3 Sep 2003 07:56:46 -0500
Subject: RE: [Mapserver-users] Zoom In to a defined area
> 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 at hotmail.com]
> > Sent: Wednesday, September 03, 2003 7:34 AM
> > To: dlowther at ou.edu; palle at mail-online.dk;
> > mapserver-users at lists.gis.umn.edu
> > Subject: Re: [Mapserver-users] Zoom In to a defined area
> >
> >
> > 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
> >
> >
> >
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
F? en gratis emailkonto her: www.mail-online.dk
-----------------------------------------------
Deltag i en lille konkurrence p? nettet, og
vind et gavekort p? 50.000 kroner...
KLIK HER: www.directoffice.dk/konkurrence
From morissette at dmsolutions.ca Wed Sep 3 07:30:36 2003
From: morissette at dmsolutions.ca (Daniel Morissette)
Date: Wed, 03 Sep 2003 10:30:36 -0400
Subject: [Mapserver-users] Problems with umlauts in labels
In-Reply-To: <200309022058.h82Kw5210548@lv.raad.tartu.ee>
References: <200309022058.h82Kw5210548@lv.raad.tartu.ee>
Message-ID: <3F55FB0C.3030101@dmsolutions.ca>
Toomas Aas wrote:
>
> 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.
>
The problem is not just that umlauts may not display, you may also
experience other types of odd behaviors or instability. If you build
php_mapscript using the system GD and build PHP using the bundled GD,
then at runtime when you load php_mapscript.so inside PHP you end up
pulling two copies of slightly different versions of GD into the same
process, and this is very bad.
You really have to make sure that both MapScript and PHP are built using
the exact same version of GD. Perhaps you could try compiling
Mapserver/mapscript using PHP's bundled GD library, we never tried it,
but that would be another way to ensure that both mapscript and PHP use
the same version of GD.
Daniel
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
From joe at poconogis.com Wed Sep 3 08:29:15 2003
From: joe at poconogis.com (Joe Smith)
Date: Wed, 3 Sep 2003 11:29:15 -0400
Subject: [Mapserver-users] 4.0 mapscript on freebsd 4.4
In-Reply-To: <36242.192.168.0.5.1062443709.squirrel@vogon.ccgis.de>
Message-ID:
I should have posted that I found the problem, sorry bout that. R. Piepul's
suggestion to use gmake was correct. I guess FreeBSD doesn't come with
gmake, so you need to download GNU make, configure and compile it. What got
me is that it wasn't the default make: you have to use '/usr/local/bin/make'
instead of 'make' (at least, that's how I did it). Good luck.
Joe
-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of Benjamin
Thelen (CCGIS)
Sent: Monday, September 01, 2003 3:15 PM
To: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] 4.0 mapscript on freebsd 4.4
-------- Received an error from umn-mapserver mailman-2.0.13 ----
-------- This mail could not be delivered! -------------
-------- 2nd attempt -----------
Hi Joe,
I exactly have the same error code on FreeBSD 4.7 and FreeBSD 4.8!
As you wrote with mapscript 3.6.5 and 3.6.5 it was possible to compile
after a few changes within mapscript Makefile:
Change:
CC= cc to CC= gcc
LD= cc -Wl -Wl, to LD= gcc -Wl -Wl,-share
and
-I$(PHP_SRC_DIR)/dl to -I$(PHP_SRC_DIR)/ext
This does not work anymore!!
Here is some mapserver related software listed, I've installed!
GD 2.0.15
php 4.3.3
gdal 1.1.8
pg-sql 7.3.2
curl 7.10.5
proj 4.4.5
gcc-3.2.3
gmake 3.80
Sorry, I have no idea what to do, either! :-(
What I found out is, that in php_mapscript_util.h are two lines #Include
"php.h" and #Include "php_globals.h". Both files are definitely within the
source tree of php, given within the mapserver configure option
--with-php=PATH-TO-SOURCE-TREE. What I really do not understand is, why
the file maperror.h cannot be found. It is within the source tree of
mapserver 4.0 I'm actually building?! Additionally I do not understand the
last line of the error code, as there is no #Include "maperror.h" within
php_mapscript_util.h. I found that in php_mapscript_util.c on line 101.
Perhaps the code is making use of a variable or something like that, which
isn't provide on FreeBSD?
Well, I don't know how all that works!
Regards,
Benjamin
> Has anyone tried to compile mapserver 4.0 with mapscript on freebsd yet?
> I'm trying on freebsd 4.4, but the php mapscript Makefile seems to be
> erroring during compile - much like the old version of mapserver did.
> Except this time the Makefile is different, and the old fixes that worked
> in
> 3.6 don't work in 4.0.
>
> Here's the error code:
>
> gcc -fPIC -02 -Wall -DCOMPILE_DL=1 -DPHP4 -c php_mapscript_util.c
> In file included from php_mapscript_util.c:101:
> php_mapscript_util.h:58: php.h: No such file or directory
> php_mapscript_util.h:59: php_globals.h: No such file or directory
> php_mapscript_util.h:102: maperror.h: No such file or directory
> *** Error code 1
>
> Stop in /usr/home/joe/mapserver40/mapscript/php3.
> *** Error code 1
>
> Here's part of the Makefile (where the error might be):
>
> CC = gcc -fPIC
> LD = c++ -shared
> CFLAGS = -02 -Wall -DCOMPILE_DL=1 -DPHP4
> RUNPATHS=
>
> What do I need to change?
>
> Joe
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From steve.lime at dnr.state.mn.us Wed Sep 3 10:15:10 2003
From: steve.lime at dnr.state.mn.us (Steve Lime)
Date: Wed, 03 Sep 2003 12:15:10 -0500
Subject: [Mapserver-users] SDE point query with version 4.0
Message-ID:
SDE is very picky about extents. For example, to extract features from a
layer
your selection extent cannot be larger than the extent of the layer so
you're
forced to clip the extent. A tolerance of zero results in a rectangle
that's actually
a point xmin=max and so on and I imagine SDE is puking on that. I don't
have
the code in front of me but I suspect that the tolerance may be type
specific.
So for polygon layers the tolerance is 0, and for lines an points it's
something
else. I'd have to check in mapfile.c to be sure.
Steve
Stephen Lime
Data & Applications Manager
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> "Liz Godwin" 09/02/03 10:25AM >>>
I solved the problem! I'm hoping someone can tell me what changed in
mapserver, and why it worked.
In my older version of the mapfile that was used with Mapserver 3.6, I
relied on default tolerances and thus did not list them in my map file.
This file wouldn't work with mapserver 4.0. That is...it wouldn't
query.
The new mapfile works because I added tolerance and toleranceunits to
my mapfile for my queryable layer. The tolerance could not be zero,
else the same error would result. It was my understanding (from the
docs) that the default tolerance was 3 pixels. Has it changed to zero?
Does anyone know why SDE layers don't like a tolerance of 0?
Cheers,
Liz
>>> "Liz Godwin" 08/28/03 03:00PM >>>
Hello,
I'm trying to upgrade a simple application to the new version of
Mapserver (4.0) and I am running into an error I haven't seen before,
and haven't been able to sort out.
"msSDELayerWhichShapes(): SDE error. SE_shape_generate_rectangle():
The
number of points is less than required for feature. (-148)"
I get the same error with or without my template file. My mapfile is
referencing only SDE layers. The error only occurs when I am trying
to
query a layer, not when I'm just navigating around the map.
The application queries fine if I point to Mapserver 3.6 instead.
Has anyone had any luck in upgrading sites using SDE that might have a
clue into where I should poke? Thanks!!
Liz Godwin
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From m.spring at gmx.de Wed Sep 3 10:09:30 2003
From: m.spring at gmx.de (m.spring at gmx.de)
Date: Wed, 03 Sep 2003 19:09:30 +0200
Subject: [Mapserver-users] Best Path & Best Path Length?
In-Reply-To: <4207.200.68.160.84.1061787438.squirrel@juda.megatherion.com> (David
Sarmiento Quintero's message of "Sun, 24 Aug 2003 23:57:18 -0500 (COT)")
References: <4207.200.68.160.84.1061787438.squirrel@juda.megatherion.com>
Message-ID:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Have a look at bbbike.sourceforge.net. This is a routing application
which can be modified to use shapefiles for the routing network -
maybe this is already in cvs.
Slaven Rezic, the author, adapted his software for the munich
bicycling map (http://dream.lrrl.arch.tu-muenchen.de/cgi-bin/radl.cgi
- -- only in german) and I wrote a wrapper around it to display the
routing results in mapserver using temporary shapefiles created with
mapscript.
regards - markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard
iD8DBQE/ViBKxxUzQSse11ARAiKwAJ9UWA1lA9euLCRJiQ6481GdSqcY9ACfVmhf
P9rxoMJGYzR4BZlibzoqvPI=
=woOq
-----END PGP SIGNATURE-----
From nf10 at hotmail.com Wed Sep 3 12:07:59 2003
From: nf10 at hotmail.com (Jeff L.)
Date: Wed, 03 Sep 2003 19:07:59 +0000
Subject: [Mapserver-users] Re: FYI: Enhancement request Was: Loading data from another server
Message-ID:
That would be really great to support accessing data directly through an
url.
Thanks Lowell.
Jeff Lacoste
>From: "Lowell Filak"
>To: mapserver-users at lists.gis.umn.edu, nf10 at hotmail.com
>Subject: FYI: Enhancement request Was: Loading data from another server
>Date: Wed, 03 Sep 2003 14:36:58 -0400
>
>After some review and discussion regarding:
>http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0308/msg00621.html
>I have submitted an enhancement request:
>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=423
>to allow the use of a URL in the layer->data member.
>
>Lowell
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
From lfilak at medinaco.org Wed Sep 3 11:36:58 2003
From: lfilak at medinaco.org (Lowell Filak)
Date: Wed, 03 Sep 2003 14:36:58 -0400
Subject: [Mapserver-users] FYI: Enhancement request Was: Loading data from another server
Message-ID: <200309031836.h83Iap717636@yogi.medinaco.net>
After some review and discussion regarding:
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0308/msg00621.html
I have submitted an enhancement request:
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=423
to allow the use of a URL in the layer->data member.
Lowell
From morissette at dmsolutions.ca Wed Sep 3 13:40:59 2003
From: morissette at dmsolutions.ca (Daniel Morissette)
Date: Wed, 03 Sep 2003 16:40:59 -0400
Subject: [Mapserver-users] Oracle 8 vs 9
Message-ID: <3F5651DB.2040604@dmsolutions.ca>
Hi,
Does anyone know if a MapServer built using the Oracle 8.1.7 libraries
would be able to connnect to an Oracle 9i server? Has anyone ever tried
that combination?
Thanks
Daniel
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Sep 3 14:17:10 2003
From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Jean-Francois.Doyon at CCRS.NRCan.gc.ca)
Date: Wed, 3 Sep 2003 17:17:10 -0400
Subject: [Mapserver-users] Oracle 8 vs 9
Message-ID: <7CDD7B94357FD5119E800002A537C46E23096E@s5-ccr-r1.ccrs.nrcan.gc.ca>
Daniel,
I know the client librairies for 8.x connect fine to a 9.x server, as I do
it all time, though not with mapserver specifically. But the 8.1.x windows
ODBC drivers for instance connect fine to a 9.x instance.
Not knowing how low-level MapServer's use of the libs is, I can't *swear* it
would work, but it is very likely you won't have any problems.
J.F.
-----Original Message-----
From: Daniel Morissette [mailto:morissette at dmsolutions.ca]
Sent: Wednesday, September 03, 2003 4:41 PM
To: mapserver-users
Subject: [Mapserver-users] Oracle 8 vs 9
Hi,
Does anyone know if a MapServer built using the Oracle 8.1.7 libraries
would be able to connnect to an Oracle 9i server? Has anyone ever tried
that combination?
Thanks
Daniel
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From vatsavai at mail.cs.umn.edu Wed Sep 3 14:54:32 2003
From: vatsavai at mail.cs.umn.edu (Ranga Raju Vatsavai)
Date: Wed, 3 Sep 2003 16:54:32 -0500 (CDT)
Subject: [Mapserver-users] few things to note
Message-ID: <200309032154.QAA06600@pluto.cs.umn.edu>
Hello Mapserver-users,
We are facing performance and as well as resource problems due to heavy
spam. As a result I am cleaning all the pending mails without looking
at them. This might effect non subscribed (genuine) users who want to
post without subscribing to the list. Till we figureout a way to deal
with spam, I request all users (subscribed or non subscribed) who
think that their mail is not getting on to the list in a reasonable
amount of time to forward their post to me (vrraju at gis.umn.edu).
I am also open to any suggestions on dealing with spam,
from experienced users of mailman software.
Thanks,
Raju
----
From Ann.Keane at noaa.gov Wed Sep 3 15:06:19 2003
From: Ann.Keane at noaa.gov (Ann Keane)
Date: Wed, 03 Sep 2003 16:06:19 -0600
Subject: [Mapserver-users] Tutorial raster examples on Mapserver 4.0?
In-Reply-To: <3F554FF7.7060907@pobox.com>
References: <3F552D9B.706@noaa.gov> <3F554FF7.7060907@pobox.com>
Message-ID: <3F5665DB.5070102@noaa.gov>
Maybe you can see what I'm missing. I compiled MS3.5 and the original
example works. Under MS4.0, all I get is an empty png image. Here's
what I've got for MS4.0.
The map file for ms4.0 is:
NAME S2EX2
EXTENT -97.5 41.619778 -82.122902 49.38562
SIZE 400 300
SHAPEPATH ""
LAYER # Shaded Relief Raster
NAME "relief"
DATA
"/httpd/www/programs/2003/neaqs/tutorial35/data/raster/shdrlfi020g_ugl.tif"
# STATUS DEFAULT # default does not work
STATUS ON
TYPE RASTER
END
END # end of map file
gdalinfo returns:
Driver: GTiff/GeoTIFF
Size is 2066, 1023
Coordinate System is `'
Origin = (-98.607616,49.868450)
Pixel Size = (0.009075,-0.009075)
Metadata:
TIFFTAG_SOFTWARE=IMAGINE TIFF Support
Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved
@(#)$RCSfile: etif.c $ $Revision: 1.8 $ $Date: 2001/01/25 22:04:51Z $
Corner Coordinates:
Upper Left ( -98.6076164, 49.8684504)
Lower Left ( -98.6076164, 40.5847254)
Upper Right ( -79.8586664, 49.8684504)
Lower Right ( -79.8586664, 40.5847254)
Center ( -89.2331414, 45.2265879)
Band 1 Block=2066x3 Type=Byte, ColorInterp=Palette
Color Table (RGB with 256 entries)
The world file is:
0.00907499999999999970
0.0
0.0
-0.00907499999999999970
-98.603078920282087
49.863912932356655
I've also tried:
0.009075
0.0
0.0
-0.009075
-98.6076164
49.8684504
Thanks-
Ann
Frank Warmerdam wrote:
> 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,
From Timothy.Mackey at ga.gov.au Wed Sep 3 18:30:57 2003
From: Timothy.Mackey at ga.gov.au (Timothy.Mackey at ga.gov.au)
Date: Thu, 4 Sep 2003 11:30:57 +1000
Subject: [Mapserver-users] Oracle 8 vs 9
Message-ID:
Yes, I've used the 8.1.7 libraries to connect to 9.1.2.0 on Solaris, using
mapserver 4.0, without any problems.
Tim Mackey
Webmaster
Geoscience Australia
timothy.mackey at ga.gov.au
http://www.ga.gov.au
-----Original Message-----
From: Daniel Morissette [mailto:morissette at dmsolutions.ca]
Sent: Thursday, 4 September 2003 6:41 AM
To: mapserver-users
Subject: [Mapserver-users] Oracle 8 vs 9
Hi,
Does anyone know if a MapServer built using the Oracle 8.1.7 libraries
would be able to connnect to an Oracle 9i server? Has anyone ever tried
that combination?
Thanks
Daniel
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From flavio at tydac.ch Wed Sep 3 22:45:25 2003
From: flavio at tydac.ch (Flavio Hendry)
Date: Thu, 04 Sep 2003 07:45:25 +0200
Subject: [Mapserver-users] few things to note
In-Reply-To: <200309032154.QAA06600@pluto.cs.umn.edu>
References: <200309032154.QAA06600@pluto.cs.umn.edu>
Message-ID:
Hi Raju
Since a while I use spampal (free, however for windows,
www.spampal.org) and it gets almost everything ... for linux consider
spamassassin: http://au.spamassassin.org/index.html
best regards
flavio
From fx.gamoy at mapxplore.com Thu Sep 4 00:44:28 2003
From: fx.gamoy at mapxplore.com (fx gamoy)
Date: Thu, 4 Sep 2003 08:44:28 +0100
Subject: [Mapserver-users] exporting dxf file using php/mapscript
References: <3F54F55F.16815.1E0F7990@localhost> <200309031204.45543.plists@prometheus.org.yu>
Message-ID: <000a01c372b8$5ebed720$0201a8c0@mapxplore.com>
thanks
but i am still using mapserver 3.6.6 release..
and i don't want to generate a dxf instead of images. I would like to allow
the end user to download a dxf files corresponding to the image generated..
Thanks
fx
----- Original Message -----
From: "Attila Csipa"
To: ; "fx gamoy"
Sent: Wednesday, September 03, 2003 11:05 AM
Subject: Re: [Mapserver-users] exporting dxf file using php/mapscript
> On Wednesday 03 September 2003 01:54, woodbri at 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
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
From jorpoz at pesquera.tel.uva.es Thu Sep 4 01:52:33 2003
From: jorpoz at pesquera.tel.uva.es (Jorge del Pozo)
Date: Thu, 4 Sep 2003 08:52:33 +0000
Subject: [Mapserver-users] Where can I find help about mapscrip-java?
Message-ID: <20030904085233.A9701@gabo.tel.uva.es>
Hello.
I want to make a program that works with java into mapscript. I compiled
the mapscript/java functions that i found in mapserver directories but I
don't find any documentation about the class. Where can i find any
documentation or any example about how to work with java in mapserver?
Thanks and sorry for my poor english.
From plists at prometheus.org.yu Thu Sep 4 01:06:46 2003
From: plists at prometheus.org.yu (Attila Csipa)
Date: Thu, 4 Sep 2003 10:06:46 +0200
Subject: [Mapserver-users] exporting dxf file using php/mapscript
In-Reply-To: <000a01c372b8$5ebed720$0201a8c0@mapxplore.com>
References: <3F54F55F.16815.1E0F7990@localhost> <200309031204.45543.plists@prometheus.org.yu> <000a01c372b8$5ebed720$0201a8c0@mapxplore.com>
Message-ID: <200309041006.46686.plists@prometheus.org.yu>
On Thursday 04 September 2003 09:44, fx gamoy wrote:
> but i am still using mapserver 3.6.6 release..
Sorry, AFAIK no dxf support is available in that version.
> and i don't want to generate a dxf instead of images. I would like to allow
> the end user to download a dxf files corresponding to the image generated..
Not a problem, just generate two maps at the same time, with identical
parameters except for the outputformat.
From fx.gamoy at mapxplore.com Thu Sep 4 02:34:22 2003
From: fx.gamoy at mapxplore.com (fx gamoy)
Date: Thu, 4 Sep 2003 10:34:22 +0100
Subject: [Mapserver-users] exporting dxf file using php/mapscript
References: <3F54F55F.16815.1E0F7990@localhost> <200309031204.45543.plists@prometheus.org.yu> <000a01c372b8$5ebed720$0201a8c0@mapxplore.com> <200309041006.46686.plists@prometheus.org.yu>
Message-ID: <000701c372c7$b928e7f0$0201a8c0@mapxplore.com>
good
i will do the update of mapserver and then will try the dxf driver
thanks a lot
best regards
fx
----- Original Message -----
From: "Attila Csipa"
To: "fx gamoy" ;
Sent: Thursday, September 04, 2003 9:06 AM
Subject: Re: [Mapserver-users] exporting dxf file using php/mapscript
> On Thursday 04 September 2003 09:44, fx gamoy wrote:
> > but i am still using mapserver 3.6.6 release..
>
> Sorry, AFAIK no dxf support is available in that version.
>
> > and i don't want to generate a dxf instead of images. I would like to
allow
> > the end user to download a dxf files corresponding to the image
generated..
>
> Not a problem, just generate two maps at the same time, with identical
> parameters except for the outputformat.
>
>
From nf10 at hotmail.com Thu Sep 4 03:40:55 2003
From: nf10 at hotmail.com (Jeff L.)
Date: Thu, 04 Sep 2003 10:40:55 +0000
Subject: [Mapserver-users] Re: Zoom In to a defined area
Message-ID:
Thanks Dave and Pall for your help. It's working.
Best Regards,
Jeff
Another possibility is
newExtent =
msForm.ViewArea.options[msForm.ViewArea.selectedIndex].value.replace(/
/g, "+");
That will replace the blanks with +'s.
Best Regadrs
Pall Due Larsen
Carl Bro GIS&IT
-----Original Message-----
From: "Lowther, David W"
To: mapserver-users at lists.gis.umn.edu
Date: Wed, 3 Sep 2003 07:56:46 -0500
Subject: RE: [Mapserver-users] Zoom In to a defined area
>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
>
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
From m.spring at gmx.de Thu Sep 4 04:20:09 2003
From: m.spring at gmx.de (m.spring at gmx.de)
Date: Thu, 04 Sep 2003 13:20:09 +0200
Subject: [Mapserver-users] ArcView 8.2 for preparing mapserver maps
Message-ID:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
a lot of us are using ArcView 3 as desktop gis, and there are at least
two solutions to convert its layer definitions into a mapfile.
Now ESRI tries to urge people to switch to 8.2 - I got a demo version
for this purpose.
What I could not find out when playing with the demo is:
*Is there a human readable format for the map or layer definition as
the old .apr/.odb was?*
.mxd and .lyr are OLE containers which have binary structures inside,
and I did not find any documentation about these.
I would glad to get any information about this as it will influence
very much my decision to upgrade or not.
Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard
iD8DBQE/Vx/pxxUzQSse11ARAlHFAJ9p/NDrSY9krptSKi2a3VQiBvI1ugCfacmL
BGrxYdLiGSY34LnE7MqO6Es=
=FEEc
-----END PGP SIGNATURE-----
From adams at terrestris.de Thu Sep 4 05:38:20 2003
From: adams at terrestris.de (Till Adams)
Date: Thu, 04 Sep 2003 14:38:20 +0200
Subject: [Mapserver-users] ArcView 8.2 for preparing mapserver maps
References:
Message-ID: <3F57323C.5000305@terrestris.de>
Dear Markus,
I'm sorry, but I have "bad" news for you:
The mxd-format is binary and not readable like the old *.apr from AV3.x
was. The *.lyr is no more than a "small project", storitng the datapath
and some more like legend, etc.
If I may give you an advice: Of course Esri will hurry up people to
switch to 8.2 - because there's a lot moorem oney to make, at least with
the update-service you HAVE to pay every year, otherwise you don't get
any updates - and you have to pay them after, if you missed pay it for a
year or two and then want to update.
My experience in this case is, that most people remain using AV3.x -
some of our customers change one or two licences and keep the rest as it
is, because ArcGIS 8.x for most users is abssolutely overloadad with
functionality....
We can discuss more on this topic outside the list if you like, as I
guess it does not concern the main target from this list ;-)
m.spring at gmx.de schrieb:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi list,
>
> a lot of us are using ArcView 3 as desktop gis, and there are at least
> two solutions to convert its layer definitions into a mapfile.
>
> Now ESRI tries to urge people to switch to 8.2 - I got a demo version
> for this purpose.
>
> What I could not find out when playing with the demo is:
>
> *Is there a human readable format for the map or layer definition as
> the old .apr/.odb was?*
>
> .mxd and .lyr are OLE containers which have binary structures inside,
> and I did not find any documentation about these.
>
> I would glad to get any information about this as it will influence
> very much my decision to upgrade or not.
>
> Markus
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard
>
> iD8DBQE/Vx/pxxUzQSse11ARAlHFAJ9p/NDrSY9krptSKi2a3VQiBvI1ugCfacmL
> BGrxYdLiGSY34LnE7MqO6Es=
> =FEEc
> -----END PGP SIGNATURE-----
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
--
***** Besuchen Sie uns auf der INTERGEO in Hamburg *****
***** vom 17.-19. September, Halle 12, EG Stand D02 *****
-----
Dipl. Geogr. Till Adams
terrestris, Paulsen&Adams GbR
Siemensstr. 8 * 53121 Bonn
Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57
info at terrestris.de * www.terrestris.de
From bpicinbono at worldonline.fr Thu Sep 4 05:42:27 2003
From: bpicinbono at worldonline.fr (=?iso-8859-1?Q?bpicinbono@worldonline.fr?=)
Date: Thu, 4 Sep 2003 14:42:27 +0200
Subject: [Mapserver-users] =?iso-8859-1?Q?exporting_dxf_file_using_php/mapscript?=
Message-ID:
Hi all
I haven't heard of the DXF OUTPUTFORMAT of
Mapserver 4, since I'am still on v3.6.
You could write your own DXF function.
Basics of DXF files aren't too complicated,
it's just a text file (with the good datas !-)
I've written a code that write DXF files with
lines and arc, it's quite simple, you just have
to know the coordonates of your shapes. Points
and polygon should not be harder. I don't know
yet about text and images.
But the export of point, line and polygone to
dxf is very simple.
To understand DXF files, find a good doc, but,
better, download QCad (a free light Autocad)
and generate some simple DXF files (1 point,
1 line,...) and then see the changes by editing
the DXF files.
bye
Blaise
********** L'ADSL A 20 EUR/MOIS**********
Avec Tiscali, l'ADSL est ? 20 EUR/mois. Vous pourrez chercher longtemps avant de trouver moins cher !
Pour profiter de cette offre exceptionnelle, cliquez ici : http://register.tiscali.fr/adsl/
Offre soumise ? conditions.
From flavio at tydac.ch Thu Sep 4 07:40:36 2003
From: flavio at tydac.ch (Flavio Hendry)
Date: Thu, 04 Sep 2003 16:40:36 +0200
Subject: [Mapserver-users] ArcView 8.2 for preparing mapserver maps
In-Reply-To:
References:
Message-ID:
hi markus
> *Is there a human readable format for the map or layer definition as
> the old .apr/.odb was?*
I suppose the ArcGIS intergarted VBA could be used to do waht you
want ... as there is no ASCII format of anything (long live MapInfo) ...
ciao
flavio
From geoffrey.rowland at noaa.gov Thu Sep 4 07:42:18 2003
From: geoffrey.rowland at noaa.gov (Geoffrey Rowland)
Date: Thu, 04 Sep 2003 10:42:18 -0400
Subject: [Mapserver-users] SWF Output formatoption Single vs Multiple
In-Reply-To:
References:
Message-ID: <3F574F4A.4060302@noaa.gov>
Hello,
In my .map file, if have the FORMATOPTION "OUTPUT_MOVIE=MULTIPLE", my
php script generates the SWF correctly. However if I change MULTIPLE to
SINGLE, then I get a Fatal Error saying it failed writing the image. Am
I missing something?
OUTPUTFORMAT
NAME swf
MIMETYPE "application/x-shockwave-flash"
DRIVER swf
IMAGEMODE PC256
FORMATOPTION "OUTPUT_MOVIE=SINGLE"
END
$map_path="d:/inet/site/pop/";
$map = ms_newMapObj($map_path."swf_pop.map");
$map->selectOutputFormat("SWF");
$image=$map->draw();
$image_url=$image->saveWebImage();
From mschulz at webgis.de Thu Sep 4 08:26:31 2003
From: mschulz at webgis.de (Michael Schulz)
Date: Thu, 04 Sep 2003 17:26:31 +0200
Subject: [Mapserver-users] python mapscript 4.0 for windows
References: <3F574F4A.4060302@noaa.gov>
Message-ID: <3F5759A7.3040801@webgis.de>
Hi,
anyone who is interested in a windows binary package of
python-mapscript-4.0 can find one now on the PythonMapScript Wiki Page:
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PythonMapScript
Please note the requirements.
Cheers, Michael
--
-----------------------------------------------------------
Michael Schulz in medias res
Dipl.-Geologe Gesellschaft f?r
Informationstechnologie mbH
In den Weihermatten 66
79108 Freiburg
0761 55695-95 (Fax 96)
mschulz at webgis.de www.webgis.de/www.zopecms.de
From geoffrey.rowland at noaa.gov Thu Sep 4 08:44:03 2003
From: geoffrey.rowland at noaa.gov (Geoffrey Rowland)
Date: Thu, 04 Sep 2003 11:44:03 -0400
Subject: [Mapserver-users] SWF Output formatoption Single vs Multiple
In-Reply-To: <3F575D78.4070404@dmsolutions.ca>
References: <3F574F4A.4060302@noaa.gov> <3F575D78.4070404@dmsolutions.ca>
Message-ID: <3F575DC3.2050809@noaa.gov>
I'm using the latest windows binaries.
Yewondwossen Assefa wrote:
> There was a bug corrected August 8 on that. Are you using the latest
> version ?
>
> Later,
>
> Geoffrey Rowland wrote:
>
>> Hello,
>>
>> In my .map file, if have the FORMATOPTION "OUTPUT_MOVIE=MULTIPLE", my
>> php script generates the SWF correctly. However if I change MULTIPLE
>> to SINGLE, then I get a Fatal Error saying it failed writing the
>> image. Am I missing something?
>>
>> OUTPUTFORMAT
>> NAME swf
>> MIMETYPE "application/x-shockwave-flash"
>> DRIVER swf
>> IMAGEMODE PC256
>> FORMATOPTION "OUTPUT_MOVIE=SINGLE"
>> END
>>
>>
>>
>>
>> $map_path="d:/inet/site/pop/";
>> $map = ms_newMapObj($map_path."swf_pop.map");
>> $map->selectOutputFormat("SWF");
>> $image=$map->draw();
>> $image_url=$image->saveWebImage();
>>
>> _______________________________________________
>> Mapserver-users mailing list
>> Mapserver-users at lists.gis.umn.edu
>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>
>
>
--
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 at noaa.gov
From assefa at dmsolutions.ca Thu Sep 4 08:42:48 2003
From: assefa at dmsolutions.ca (Yewondwossen Assefa)
Date: Thu, 04 Sep 2003 11:42:48 -0400
Subject: [Mapserver-users] SWF Output formatoption Single vs Multiple
References: <3F574F4A.4060302@noaa.gov>
Message-ID: <3F575D78.4070404@dmsolutions.ca>
There was a bug corrected August 8 on that. Are you using the latest
version ?
Later,
Geoffrey Rowland wrote:
> Hello,
>
> In my .map file, if have the FORMATOPTION "OUTPUT_MOVIE=MULTIPLE", my
> php script generates the SWF correctly. However if I change MULTIPLE to
> SINGLE, then I get a Fatal Error saying it failed writing the image. Am
> I missing something?
>
> OUTPUTFORMAT
> NAME swf
> MIMETYPE "application/x-shockwave-flash"
> DRIVER swf
> IMAGEMODE PC256
> FORMATOPTION "OUTPUT_MOVIE=SINGLE"
> END
>
>
>
>
> $map_path="d:/inet/site/pop/";
> $map = ms_newMapObj($map_path."swf_pop.map");
> $map->selectOutputFormat("SWF");
> $image=$map->draw();
> $image_url=$image->saveWebImage();
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
From warmerdam at pobox.com Thu Sep 4 09:03:52 2003
From: warmerdam at pobox.com (Frank Warmerdam)
Date: Thu, 04 Sep 2003 12:03:52 -0400
Subject: [Mapserver-users] Tutorial raster examples on Mapserver 4.0?
In-Reply-To: <3F5665DB.5070102@noaa.gov>
References: <3F552D9B.706@noaa.gov> <3F554FF7.7060907@pobox.com> <3F5665DB.5070102@noaa.gov>
Message-ID: <3F576268.60001@pobox.com>
Ann Keane wrote:
>
> Maybe you can see what I'm missing. I compiled MS3.5 and the original
> example works. Under MS4.0, all I get is an empty png image. Here's
> what I've got for MS4.0.
>
>
> The map file for ms4.0 is:
>
>
> NAME S2EX2
> EXTENT -97.5 41.619778 -82.122902 49.38562
> SIZE 400 300
> SHAPEPATH ""
>
> LAYER # Shaded Relief Raster
> NAME "relief"
> DATA
> "/httpd/www/programs/2003/neaqs/tutorial35/data/raster/shdrlfi020g_ugl.tif"
> # STATUS DEFAULT # default does not work
> STATUS ON
> TYPE RASTER
> END
>
> END # end of map file
Ann,
It would appear that GDAL is recognising the georeferencing just fine. The
only questionable thing I can see is the STATUS ON flag. Does it work any
better with STATUS DEFAULT? If the problem persists, then I would encourage
you to zip up the .map file, and the TIFF file and the world file and put
it somewhere I can grab it (or upload to ftp://gdal.velocet.ca/pub/incoming).
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
From Ann.Keane at noaa.gov Thu Sep 4 09:31:59 2003
From: Ann.Keane at noaa.gov (Ann Keane)
Date: Thu, 04 Sep 2003 10:31:59 -0600
Subject: [Mapserver-users] Tutorial raster examples on Mapserver 4.0?
In-Reply-To: <3F576268.60001@pobox.com>
References: <3F552D9B.706@noaa.gov> <3F554FF7.7060907@pobox.com> <3F5665DB.5070102@noaa.gov> <3F576268.60001@pobox.com>
Message-ID: <3F5768FF.4060906@noaa.gov>
STATUS DEFAULT causes the following error:
[Thu Sep 4 10:08:24 2003] [error] [client 140.46.83.25] Premature end
of script headers: /usr/local/apache_1.3.27/cgi-bin/mapserv
The same GDAL installation works for 3.5, so I'm inclined to think GDAL
is working and mapserv is the problem. I'm not sure how to trouble
shoot it from here. I will probably use 3.6 and php and not worry about
4.0 until later.
Thanks for your help and for open sourcing your work. We'd never have
the GIS support to develop our project website otherwise.
-Ann
Frank Warmerdam wrote:
> Ann Keane wrote:
>
>>
>> Maybe you can see what I'm missing. I compiled MS3.5 and the original
>> example works. Under MS4.0, all I get is an empty png image. Here's
>> what I've got for MS4.0.
>>
>>
>> The map file for ms4.0 is:
>>
>>
>> NAME S2EX2
>> EXTENT -97.5 41.619778 -82.122902 49.38562
>> SIZE 400 300
>> SHAPEPATH ""
>>
>> LAYER # Shaded Relief Raster
>> NAME "relief"
>> DATA
>> "/httpd/www/programs/2003/neaqs/tutorial35/data/raster/shdrlfi020g_ugl.tif"
>>
>> # STATUS DEFAULT # default does not work
>> STATUS ON
>> TYPE RASTER
>> END
>>
>> END # end of map file
>
>
> Ann,
>
> It would appear that GDAL is recognising the georeferencing just fine. The
> only questionable thing I can see is the STATUS ON flag. Does it work any
> better with STATUS DEFAULT? If the problem persists, then I would
> encourage
> you to zip up the .map file, and the TIFF file and the world file and put
> it somewhere I can grab it (or upload to
> ftp://gdal.velocet.ca/pub/incoming).
>
> Best regards,
>
From blewis at atsincorp.com Thu Sep 4 09:56:25 2003
From: blewis at atsincorp.com (Ben Lewis)
Date: Thu, 4 Sep 2003 12:56:25 -0400
Subject: [Mapserver-users] Reading DWG
Message-ID: <4514D1DE1E069744839F24247A63503208C9EB@deathstar.ats.atsincorp.com>
Does anyone know of efforts to get Mapserver read AutoCAD DWG files?
(I am aware of a group, OpenDWG http://www.opendwg.org/ that has created a DWG toolkit and some specs.)
- Ben
:::::::::::::::::::::::::::::::::::::
Benjamin Lewis
Advanced Technology Solutions, Inc.
1525 Oregon Pike, Suite 202
Lancaster, Pennsylvania 17601-4372
717.399.7007
blewis at atsincorp.com
http://www.atsincorp.com
:::::::::::::::::::::::::::::::::::::
From warmerdam at pobox.com Thu Sep 4 10:13:27 2003
From: warmerdam at pobox.com (Frank Warmerdam)
Date: Thu, 04 Sep 2003 13:13:27 -0400
Subject: [Mapserver-users] Reading DWG
In-Reply-To: <4514D1DE1E069744839F24247A63503208C9EB@deathstar.ats.atsincorp.com>
References: <4514D1DE1E069744839F24247A63503208C9EB@deathstar.ats.atsincorp.com>
Message-ID: <3F5772B7.7030807@pobox.com>
Ben Lewis wrote:
> Does anyone know of efforts to get Mapserver read AutoCAD DWG files?
> (I am aware of a group, OpenDWG http://www.opendwg.org/ that has created a DWG toolkit and some specs.)
> - Ben
Ben,
I have been intended to implement OGR support for DWG (and DXF) via the
OpenDWG toolkit at some point but haven't gotten to it yet. I have a couple
clients who have expressed some interest, so there might be work on this in
coming months but nothing is certain.
One issue with doing this is that DWG and DXF files are "graphically rich".
Getting the line work out and accessable in MapServer wouldn't be too hard.
Getting a DWG file to look the same when rendered in MapServer as it looks
in AutoCAD is worlds harder.
With the DGN format some graphical information was captured and passed through
to MapServer and with STYLEITEM AUTO you would get something that look similar
to what the picture looked like in Microstation. I would imagine this would
also be done for DWG but it is important to realize that even if a moderate
effort is made to support DWG it will come with many limitations and caveats.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
From jeff at planyukon.ca Thu Sep 4 10:28:53 2003
From: jeff at planyukon.ca (Jeff Hamm)
Date: Thu, 04 Sep 2003 10:28:53 -0700
Subject: [Mapserver-users] Highlighting Multiple queryByAttribute selections
Message-ID: <3F577655.40BCCD3@planyukon.ca>
This is a multi-part message in MIME format.
--------------D53EEB25C14CE2184E298AFC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I've combed the archives and documentation, but so far I'm still abit
adrift on how to highlight the returns from queryByAttribute (Mapscript
4.0). The approach of Andreas and Paul was helpful to start, but I want
to highlight the selected features within the existing map extent.
I'm modifying a file produced by GMapFactory
(RH8;Apache;Mapserver4.0;MapLab 2.0), so perhaps I have access to some
features in the wrappers, but I'm not sure where to look.
/* -- Given this results array : --*/
$oQueryLayer->queryByAttributes($szqitem,$szqstring,MS_MULTIPLE );
/*--How to highlight the selections? --*/
/*-- I'm not sure if I need to process the results array--*/
$numresults=$oQueryLayer->getNumResults();
if ($numresults >0)
{
for ($i=0; $i<$numresults; $i++)
{ $oResult = $oQueryLayer->getResult($i); .....etc
...or if there is a more direct route ??
TIA.
All tips are appreciated, this list is an excellent resource!
--------------D53EEB25C14CE2184E298AFC
Content-Type: text/x-vcard; charset=us-ascii;
name="jeff.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jeff Hamm
Content-Disposition: attachment;
filename="jeff.vcf"
begin:vcard
n:Hamm;Jeff
tel;fax:(867) 667-4624
tel;home:(867) 668-6467
tel;work:(867) 667-7397
x-mozilla-html:FALSE
url:www.planyukon.ca
org:Yukon Land Use Planning Council
adr:;;201 - 307 Jarvis Street;Whitehorse;Yukon;Y1A 2H3;Canada
version:2.1
email;internet:jeff at planyukon.ca
title:GIS & Planning Advisor
fn:Jeff Hamm
end:vcard
--------------D53EEB25C14CE2184E298AFC--
From assefa at dmsolutions.ca Thu Sep 4 10:37:24 2003
From: assefa at dmsolutions.ca (Yewondwossen Assefa)
Date: Thu, 04 Sep 2003 13:37:24 -0400
Subject: [Mapserver-users] SWF Output formatoption Single vs Multiple
References: <3F574F4A.4060302@noaa.gov> <3F575D78.4070404@dmsolutions.ca> <3F575DC3.2050809@noaa.gov> <3F57612C.2030000@dmsolutions.ca> <3F576F61.5040105@noaa.gov>
Message-ID: <3F577854.207@dmsolutions.ca>
I have put a new mapserver/php-mapscript windows binaries with the
latest mapserver source code at :
http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html
(in section developpment version)
Later,
Geoffrey Rowland wrote:
> great, that fixed the problem..thanks!!
>
> Geoff
>
> Yewondwossen Assefa wrote:
>
>> I will do an update with the latest source code and let you know. It
>> should be working then (at least tha specific bug is working with my
>> test data). I have attached a php_mapscript_40.dll (build for
>> php4.3.2) that I use so you can give it a try while I build the full
>> package.
>>
>> Later,
>>
>> Geoffrey Rowland wrote:
>>
>>> I'm using the latest windows binaries.
>>>
>>> Yewondwossen Assefa wrote:
>>>
>>>> There was a bug corrected August 8 on that. Are you using the latest
>>>> version ?
>>>>
>>>> Later,
>>>>
>>>> Geoffrey Rowland wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> In my .map file, if have the FORMATOPTION "OUTPUT_MOVIE=MULTIPLE",
>>>>> my php script generates the SWF correctly. However if I change
>>>>> MULTIPLE to SINGLE, then I get a Fatal Error saying it failed
>>>>> writing the image. Am I missing something?
>>>>>
>>>>> OUTPUTFORMAT
>>>>> NAME swf
>>>>> MIMETYPE "application/x-shockwave-flash"
>>>>> DRIVER swf
>>>>> IMAGEMODE PC256
>>>>> FORMATOPTION "OUTPUT_MOVIE=SINGLE"
>>>>> END
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> $map_path="d:/inet/site/pop/";
>>>>> $map = ms_newMapObj($map_path."swf_pop.map");
>>>>> $map->selectOutputFormat("SWF");
>>>>> $image=$map->draw();
>>>>> $image_url=$image->saveWebImage();
>>>>>
>>>>> _______________________________________________
>>>>> Mapserver-users mailing list
>>>>> Mapserver-users at lists.gis.umn.edu
>>>>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>>>>
>>>>
>>>>
>>>
>>
>>
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
From stephen.clark at focus.ca Thu Sep 4 11:11:31 2003
From: stephen.clark at focus.ca (Stephen Clark)
Date: Thu, 4 Sep 2003 11:11:31 -0700
Subject: [Mapserver-users] Reading DWG
References: <4514D1DE1E069744839F24247A63503208C9EB@deathstar.ats.atsincorp.com> <3F5772B7.7030807@pobox.com>
Message-ID: <007a01c3730f$f7e01f70$6c000a0a@sclark>
Frank and others,
My two cents:
I have tried using the opendwg software with not much luck.
I am now interested in FME from Safe software. www.safe.com
It has scripting abilities via a perl system command that can convert DWG to
SHP, vice versa and many more tricks for handling spatial data.
My plans with DWG files are to automate the viewing of many of my DWG files
on top of the SHP files I already have.
Stephen
----- Original Message -----
From: "Frank Warmerdam"
To: "Ben Lewis"
Cc: "mapserver-users"
Sent: Thursday, September 04, 2003 10:13 AM
Subject: Re: [Mapserver-users] Reading DWG
> Ben Lewis wrote:
> > Does anyone know of efforts to get Mapserver read AutoCAD DWG files?
> > (I am aware of a group, OpenDWG http://www.opendwg.org/ that has created
a DWG toolkit and some specs.)
> > - Ben
>
> Ben,
>
> I have been intended to implement OGR support for DWG (and DXF) via the
> OpenDWG toolkit at some point but haven't gotten to it yet. I have a
couple
> clients who have expressed some interest, so there might be work on this
in
> coming months but nothing is certain.
>
> One issue with doing this is that DWG and DXF files are "graphically
rich".
> Getting the line work out and accessable in MapServer wouldn't be too
hard.
> Getting a DWG file to look the same when rendered in MapServer as it looks
> in AutoCAD is worlds harder.
>
> With the DGN format some graphical information was captured and passed
through
> to MapServer and with STYLEITEM AUTO you would get something that look
similar
> to what the picture looked like in Microstation. I would imagine this
would
> also be done for DWG but it is important to realize that even if a
moderate
> effort is made to support DWG it will come with many limitations and
caveats.
>
> Best regards,
>
> --
> ---------------------------------------+----------------------------------
----
> I set the clouds in motion - turn up | Frank Warmerdam,
warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush | Geospatial Programmer for Rent
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
From map_surfer at yahoo.com Thu Sep 4 11:41:42 2003
From: map_surfer at yahoo.com (Map Surfers)
Date: Thu, 4 Sep 2003 11:41:42 -0700 (PDT)
Subject: [Mapserver-users] Mapserver Install 4.0b
Message-ID: <20030904184142.71541.qmail@web80704.mail.yahoo.com>
I installed once on another RH9 box with
Postgresql/PostGIS and PHP/Mapscript & ROSA applet. I
switched over to another box and the following is
happening: (not some configuration just better cpu)
1) Cannot see the main image via applet
2) PNG's are created, just not the mapserver main
image
3) I receive images for legend (png).
Any ideas?
TIA
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
From geoffrey.rowland at noaa.gov Thu Sep 4 11:50:54 2003
From: geoffrey.rowland at noaa.gov (Geoffrey Rowland)
Date: Thu, 04 Sep 2003 14:50:54 -0400
Subject: [Mapserver-users] Weather / Climate information using MapServer
In-Reply-To: <007a01c3730f$f7e01f70$6c000a0a@sclark>
References: <4514D1DE1E069744839F24247A63503208C9EB@deathstar.ats.atsincorp.com> <3F5772B7.7030807@pobox.com> <007a01c3730f$f7e01f70$6c000a0a@sclark>
Message-ID: <3F57898E.90100@noaa.gov>
Anyone doing this? Specifically I'm trying to get min/max temps and
precip layers on top of a shp file I am using. I have some data from
NOAA, however I'm not familair with it's format. I can open it up in
GrADS and view the data on a map, so I would think *in theory* I should
be able to get this data into a format that mapserver can work with, I'm
just not sure how to go about doing that. I also have access to safe
softwares feature manipulation engine if that would be of any help (for
translations). Can anyone point me in the right direction?
I am getting the data from the following locations
precip
ftp://ftpprd.ncep.noaa.gov/pub/precip/wd52ws/us_daily/
max/min
ftp://ftpprd.ncep.noaa.gov/pub/precip/wd52ws/us_temp/
From warmerdam at pobox.com Thu Sep 4 12:14:43 2003
From: warmerdam at pobox.com (Frank Warmerdam)
Date: Thu, 04 Sep 2003 15:14:43 -0400
Subject: [Mapserver-users] Weather / Climate information using MapServer
In-Reply-To: <3F57898E.90100@noaa.gov>
References: <4514D1DE1E069744839F24247A63503208C9EB@deathstar.ats.atsincorp.com> <3F5772B7.7030807@pobox.com> <007a01c3730f$f7e01f70$6c000a0a@sclark> <3F57898E.90100@noaa.gov>
Message-ID: <3F578F23.9040700@pobox.com>
Geoffrey Rowland wrote:
> Anyone doing this? Specifically I'm trying to get min/max temps and
> precip layers on top of a shp file I am using. I have some data from
> NOAA, however I'm not familair with it's format. I can open it up in
> GrADS and view the data on a map, so I would think *in theory* I should
> be able to get this data into a format that mapserver can work with, I'm
> just not sure how to go about doing that. I also have access to safe
> softwares feature manipulation engine if that would be of any help (for
> translations). Can anyone point me in the right direction?
>
> I am getting the data from the following locations
>
> precip
> ftp://ftpprd.ncep.noaa.gov/pub/precip/wd52ws/us_daily/
Geoffrey,
The data files are "raw" floating point according to the README. It would
be pretty easy to write a GDAL compatible .aux file describing them. I can
help with that offline if you can't find enough info in the GDAL "PAux" format
page.
But because the data is not 8bit raster there are issues with how it will
get displayed in MapServer. You can let MapServer rescale the data to 8bit
on the fly, but depending on how exact you want to be you might be better off
reclassifying it outside mapserver first. Note that MapServer does not
currently support raster classes for raster values outside the range 0-255
even though that might be ideal for situations like this.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
From warmerdam at pobox.com Thu Sep 4 12:21:39 2003
From: warmerdam at pobox.com (Frank Warmerdam)
Date: Thu, 04 Sep 2003 15:21:39 -0400
Subject: [Mapserver-users] Reading DWG
In-Reply-To: <007a01c3730f$f7e01f70$6c000a0a@sclark>
References: <4514D1DE1E069744839F24247A63503208C9EB@deathstar.ats.atsincorp.com> <3F5772B7.7030807@pobox.com> <007a01c3730f$f7e01f70$6c000a0a@sclark>
Message-ID: <3F5790C3.2070902@pobox.com>
Stephen Clark wrote:
> Frank and others,
>
> My two cents:
>
> I have tried using the opendwg software with not much luck.
>
> I am now interested in FME from Safe software. www.safe.com
> It has scripting abilities via a perl system command that can convert DWG to
> SHP, vice versa and many more tricks for handling spatial data.
>
> My plans with DWG files are to automate the viewing of many of my DWG files
> on top of the SHP files I already have.
Stephen,
FME is (in my somewhat biased opinion) an excellent translator and with a bit
of work should give you all you need in DWG to shapefile translation. I would
add that those with FME licenses should be able to use the FME/OGR gateway
to directly read FME supported vector formats in MapServer. However, this
isn't a particularly high performance approach so unless you need dynamic
translation I would encourage batch translation ahead of time with FME.
I would add that FME translation to shapefiles is going to result in alot
of sophisticated rendering information being lost, though with effort you
could capture some or all of it in Shapefile attributes.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
From sgillies at frii.com Thu Sep 4 12:31:15 2003
From: sgillies at frii.com (Sean Gillies)
Date: Thu, 4 Sep 2003 13:31:15 -0600
Subject: [Mapserver-users] Weather / Climate information using MapServer
In-Reply-To: <3F57898E.90100@noaa.gov>
Message-ID: <5996C3DC-DF0E-11D7-A6E1-000393B98B56@frii.com>
On Thursday, September 4, 2003, at 12:50 PM, Geoffrey Rowland wrote:
> Anyone doing this? Specifically I'm trying to get min/max temps and
> precip layers on top of a shp file I am using. I have some data from
> NOAA, however I'm not familair with it's format. I can open it up in
> GrADS and view the data on a map, so I would think *in theory* I
> should be able to get this data into a format that mapserver can work
> with, I'm just not sure how to go about doing that. I also have access
> to safe softwares feature manipulation engine if that would be of any
> help (for translations). Can anyone point me in the right direction?
>
> I am getting the data from the following locations
>
> precip
> ftp://ftpprd.ncep.noaa.gov/pub/precip/wd52ws/us_daily/
>
> max/min
> ftp://ftpprd.ncep.noaa.gov/pub/precip/wd52ws/us_temp/
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
Here's where to start:
http://mapserver.gis.umn.edu/doc40/raster-howto.html
cheers,
Sean
--
Sean Gillies
sgillies at frii dot com
http://www.frii.com/~sgillies
From deabelle at agro.uba.ar Fri Sep 5 00:49:50 2003
From: deabelle at agro.uba.ar (Diego de Abelleyra)
Date: Fri, 5 Sep 2003 04:49:50 -0300
Subject: [Mapserver-users] Weather / Climate information using MapServer
References: <4514D1DE1E069744839F24247A63503208C9EB@deathstar.ats.atsincorp.com> <3F5772B7.7030807@pobox.com> <007a01c3730f$f7e01f70$6c000a0a@sclark> <3F57898E.90100@noaa.gov>
Message-ID: <003b01c37382$49bd6ec0$0100a8c0@agro.uba.ar>
You are looking for a tool that make contour maps?
if so, me too. I think it is a very important tool.
Diego de Abelleyra.
----- Original Message -----
From: "Geoffrey Rowland"
To:
Sent: Thursday, September 04, 2003 3:50 PM
Subject: [Mapserver-users] Weather / Climate information using MapServer
> Anyone doing this? Specifically I'm trying to get min/max temps and
> precip layers on top of a shp file I am using. I have some data from
> NOAA, however I'm not familair with it's format. I can open it up in
> GrADS and view the data on a map, so I would think *in theory* I should
> be able to get this data into a format that mapserver can work with, I'm
> just not sure how to go about doing that. I also have access to safe
> softwares feature manipulation engine if that would be of any help (for
> translations). Can anyone point me in the right direction?
>
> I am getting the data from the following locations
>
> precip
> ftp://ftpprd.ncep.noaa.gov/pub/precip/wd52ws/us_daily/
>
> max/min
> ftp://ftpprd.ncep.noaa.gov/pub/precip/wd52ws/us_temp/
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From blaine at plansight.com Thu Sep 4 16:04:34 2003
From: blaine at plansight.com (Blaine Hackett)
Date: Thu, 4 Sep 2003 16:04:34 -0700
Subject: [Mapserver-users] Follow up to XP and server error
Message-ID:
All
Just wanted to let you all know that I solved my little problem with
the Server Error. It seems my new system did not have a zlib.dll
file. I copied it from my old computer to C:\windows\system32
and it works fine now.
Thanks
Blaine
From ed at topozone.com Thu Sep 4 20:04:30 2003
From: ed at topozone.com (Ed McNierney)
Date: Thu, 4 Sep 2003 23:04:30 -0400
Subject: [Mapserver-users] Whole lotta shakin' going on
Message-ID: <13858AA1A74F30419F319ACB66A9D1222C015A@mercator.topozone.com>
Folks -
As I posted on this list a week or so ago, we've migrated TopoZone over
to a 100%-MapServer site. Everything's been doing fine, but we're still
keeping an eye on things.
About an hour ago I noticed a sudden huge spike in traffic on TopoZone.
At TopoZone we get a lot of users, so together the average usage forms a
very characteristic curve over the course of the day. Weekdays it
starts climbing in the morning, leveling a bit around midday, reaching a
peak right around 4 PM Eastern time, then falling and climbing to a
lower, secondary peak around 9 - 10 PM Eastern time before dropping to
its 5 AM Eastern time low point.
At about 9:40 PM our traffic suddenly shot up to its highest level since
we made the switch to the MapServer site. This was very strange. When
I investigated, I found that actually almost all the traffic was being
handled by one of our eight MapServer systems. Our data is distributed
geographically across these systems, and it turned out that we were
getting a huge number of requests for maps of the same area.
Hmmmm.... a hacker? That was my first thought, but it would need to be
someone with a LOT of clear bandwidth. The log files showed the traffic
was coming from a lot of different clients - an attempt at a coordinated
Denial of Service attack?
A bit more log-sniffing took me here:
http://earthquake.usgs.gov/recenteqsUS/Quakes/nc40146208.htm
There's a "topo map" link in the "Additional Information" section near
the bottom. Mystery solved.
Things are still quite busy, but they've cooled off a bit. I'm sure
there will be a bunch of curious users in the morning, too.
The one MapServer system that was taking all the heat was serving an
average of 10 custom topo maps a second over a full 10 minute period.
MapServer was chugging along just fine - the only "problem" was that I
got one complaint from Apache that I might want to increase my
MaxClients setting .
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
Phone: (978) 251-4242 Fax: (978) 251-1396
ed at topozone.com
From gerry.creager at tamu.edu Thu Sep 4 20:49:48 2003
From: gerry.creager at tamu.edu (Gerry Creager N5JXS)
Date: Thu, 04 Sep 2003 22:49:48 -0500
Subject: [Mapserver-users] Weather / Climate information using MapServer
In-Reply-To: <3F578F23.9040700@pobox.com>
References: <4514D1DE1E069744839F24247A63503208C9EB@deathstar.ats.atsincorp.com> <3F5772B7.7030807@pobox.com> <007a01c3730f$f7e01f70$6c000a0a@sclark> <3F57898E.90100@noaa.gov> <3F578F23.9040700@pobox.com>
Message-ID: <3F5807DC.1090703@tamu.edu>
http://mesonet.tamu.edu/currentwx.html
And, then check out the links to the left side of the page...
Gerry
Frank Warmerdam wrote:
> Geoffrey Rowland wrote:
>
>> Anyone doing this? Specifically I'm trying to get min/max temps and
>> precip layers on top of a shp file I am using. I have some data from
>> NOAA, however I'm not familair with it's format. I can open it up in
>> GrADS and view the data on a map, so I would think *in theory* I
>> should be able to get this data into a format that mapserver can work
>> with, I'm just not sure how to go about doing that. I also have access
>> to safe softwares feature manipulation engine if that would be of any
>> help (for translations). Can anyone point me in the right direction?
>>
>> I am getting the data from the following locations
>>
>> precip
>> ftp://ftpprd.ncep.noaa.gov/pub/precip/wd52ws/us_daily/
>
>
> Geoffrey,
>
> The data files are "raw" floating point according to the README. It would
> be pretty easy to write a GDAL compatible .aux file describing them. I
> can
> help with that offline if you can't find enough info in the GDAL "PAux"
> format
> page.
>
> But because the data is not 8bit raster there are issues with how it will
> get displayed in MapServer. You can let MapServer rescale the data to 8bit
> on the fly, but depending on how exact you want to be you might be
> better off
> reclassifying it outside mapserver first. Note that MapServer does not
> currently support raster classes for raster values outside the range 0-255
> even though that might be ideal for situations like this.
>
> Best regards,
>
--
Gerry Creager -- gerry.creager at tamu.edu
Texas Mesonet -- AATLT, Texas A&M University
Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578
Page: 979.228.0173
Office: 903A Eller Bldg, TAMU, College Station, TX 77843
From arnulf.christl at ccgis.de Fri Sep 5 01:23:13 2003
From: arnulf.christl at ccgis.de (Arnulf Christl CCGIS)
Date: Fri, 5 Sep 2003 10:23:13 +0200
Subject: AW: [Mapserver-users] Whole lotta shakin' going on
In-Reply-To: <13858AA1A74F30419F319ACB66A9D1222C015A@mercator.topozone.com>
Message-ID:
Hi,
thats great news, congratulations. Could you share some information
concerning the hardware and architecture you are using. We have potential
users here who are very interested in using UMN MapServer but still fear
that performance might be a problem.
Its interesting right down to the details - whether to rather use
multiprocessor machines / which OS / amount of data served, etc.
We ourselves are more into vector graphics and use PostGIS with MapServer
where it is possible to distribute the load on several machines in a
distributed architecture. But we lack the know-how for serving real big
amounts of raster data (talking about terabyte).
Any information would be welcome.
Regards, Arnulf.
-----Ursprungliche Nachricht-----
Von: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]Im Auftrag von Ed
McNierney
Gesendet: Freitag, 5. September 2003 05:05
An: mapserver-users at lists.gis.umn.edu
Betreff: [Mapserver-users] Whole lotta shakin' going on
Folks -
As I posted on this list a week or so ago, we've migrated TopoZone over
to a 100%-MapServer site. Everything's been doing fine, but we're still
keeping an eye on things.
About an hour ago I noticed a sudden huge spike in traffic on TopoZone.
At TopoZone we get a lot of users, so together the average usage forms a
very characteristic curve over the course of the day. Weekdays it
starts climbing in the morning, leveling a bit around midday, reaching a
peak right around 4 PM Eastern time, then falling and climbing to a
lower, secondary peak around 9 - 10 PM Eastern time before dropping to
its 5 AM Eastern time low point.
At about 9:40 PM our traffic suddenly shot up to its highest level since
we made the switch to the MapServer site. This was very strange. When
I investigated, I found that actually almost all the traffic was being
handled by one of our eight MapServer systems. Our data is distributed
geographically across these systems, and it turned out that we were
getting a huge number of requests for maps of the same area.
Hmmmm.... a hacker? That was my first thought, but it would need to be
someone with a LOT of clear bandwidth. The log files showed the traffic
was coming from a lot of different clients - an attempt at a coordinated
Denial of Service attack?
A bit more log-sniffing took me here:
http://earthquake.usgs.gov/recenteqsUS/Quakes/nc40146208.htm
There's a "topo map" link in the "Additional Information" section near
the bottom. Mystery solved.
Things are still quite busy, but they've cooled off a bit. I'm sure
there will be a bunch of curious users in the morning, too.
The one MapServer system that was taking all the heat was serving an
average of 10 custom topo maps a second over a full 10 minute period.
MapServer was chugging along just fine - the only "problem" was that I
got one complaint from Apache that I might want to increase my
MaxClients setting .
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
Phone: (978) 251-4242 Fax: (978) 251-1396
ed at topozone.com
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From mukta at darya.nio.org Fri Sep 5 09:00:07 2003
From: mukta at darya.nio.org (Mukta Telang)
Date: Fri, 05 Sep 2003 16:00:07 +0000
Subject: [Mapserver-users] Newbie question
Message-ID: <3F58B307.51ED4DCC@darya.nio.org>
Hi,
I want to install mapserver on a Sun Solaris machine.
The system already has postgres,php and apache webserver installed.
The data to be served is in ascii format.Do I have to convert it into
raster format for the mapserver to use? If I had to use postgis/postgres
then how to go about it? If there are any articles/tutorials on net for
beginners who want to use postgis/postgres with mapserver then please
point me to them.
Is there any tutorial which describes the different formats of data and
how to use the same with the mapserver?
Please help.
Thanks in advance,
regards,
Mukta
From ed at topozone.com Fri Sep 5 04:59:21 2003
From: ed at topozone.com (Ed McNierney)
Date: Fri, 5 Sep 2003 07:59:21 -0400
Subject: [Mapserver-users] Whole lotta shakin' going on
Message-ID: <13858AA1A74F30419F319ACB66A9D1222C015D@mercator.topozone.com>
Arnulf -
Performance tuning is pretty complicated, and I'm always very reluctant
to tell someone "Here's the hardware we use and performance is great"
because it's my belief that the actual organization of the DATA and the
APPLICATION are much more important.
And serving large amounts of data (we're now in the 20 TB range with
MapServer) is often very misleading. At any one moment the vast
majority of that data is sitting there on disk doing nothing (or at
least it SHOULD be doing nothing ), so what's the difference between
100GB of idle disk and 40TB of idle disk?
For serving large amounts of raster data, I think the rules are simple
to state (but not always easy to follow):
1. Make sure you have resampled the imagery (if necessary) so
small-scale (zoomed-out) views use a data source with input resolution.
2. Do not use compressed imagery unless you fully understand how the
decompression works.
3. Do not use compression schemes that require a LOT of data to be read
from disk in order to decode a small portion of the image.
4. Use good disk hardware (RAID-5) and organization.
5. Use lots of RAM so the server can both cache data and avoid swapping.
6. Tile the imagery into tiles that are of relatively modest size and
use tile indexes. Do not break the tiles too small - most map requests
should require only one input tile to be read.
By far the most important part is to understand what's going on when the
user requests a map, and cut out the parts that aren't needed!
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
Phone: (978) 251-4242 Fax: (978) 251-1396
ed at topozone.com
-----Original Message-----
From: Arnulf Christl (CCGIS) [mailto:arnulf.christl at ccgis.de]
Sent: Friday, September 05, 2003 4:23 AM
To: Ed McNierney; mapserver-users at lists.gis.umn.edu
Subject: AW: [Mapserver-users] Whole lotta shakin' going on
Hi,
thats great news, congratulations. Could you share some information
concerning the hardware and architecture you are using. We have
potential
users here who are very interested in using UMN MapServer but still fear
that performance might be a problem.
Its interesting right down to the details - whether to rather use
multiprocessor machines / which OS / amount of data served, etc.
We ourselves are more into vector graphics and use PostGIS with
MapServer
where it is possible to distribute the load on several machines in a
distributed architecture. But we lack the know-how for serving real big
amounts of raster data (talking about terabyte).
Any information would be welcome.
Regards, Arnulf.
-----Ursprungliche Nachricht-----
Von: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]Im Auftrag von Ed
McNierney
Gesendet: Freitag, 5. September 2003 05:05
An: mapserver-users at lists.gis.umn.edu
Betreff: [Mapserver-users] Whole lotta shakin' going on
Folks -
As I posted on this list a week or so ago, we've migrated TopoZone over
to a 100%-MapServer site. Everything's been doing fine, but we're still
keeping an eye on things.
About an hour ago I noticed a sudden huge spike in traffic on TopoZone.
At TopoZone we get a lot of users, so together the average usage forms a
very characteristic curve over the course of the day. Weekdays it
starts climbing in the morning, leveling a bit around midday, reaching a
peak right around 4 PM Eastern time, then falling and climbing to a
lower, secondary peak around 9 - 10 PM Eastern time before dropping to
its 5 AM Eastern time low point.
At about 9:40 PM our traffic suddenly shot up to its highest level since
we made the switch to the MapServer site. This was very strange. When
I investigated, I found that actually almost all the traffic was being
handled by one of our eight MapServer systems. Our data is distributed
geographically across these systems, and it turned out that we were
getting a huge number of requests for maps of the same area.
Hmmmm.... a hacker? That was my first thought, but it would need to be
someone with a LOT of clear bandwidth. The log files showed the traffic
was coming from a lot of different clients - an attempt at a coordinated
Denial of Service attack?
A bit more log-sniffing took me here:
http://earthquake.usgs.gov/recenteqsUS/Quakes/nc40146208.htm
There's a "topo map" link in the "Additional Information" section near
the bottom. Mystery solved.
Things are still quite busy, but they've cooled off a bit. I'm sure
there will be a bunch of curious users in the morning, too.
The one MapServer system that was taking all the heat was serving an
average of 10 custom topo maps a second over a full 10 minute period.
MapServer was chugging along just fine - the only "problem" was that I
got one complaint from Apache that I might want to increase my
MaxClients setting .
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
Phone: (978) 251-4242 Fax: (978) 251-1396
ed at topozone.com
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From cpurvis at asg.sc.edu Fri Sep 5 13:38:33 2003
From: cpurvis at asg.sc.edu (Charlton Purvis)
Date: Fri, 5 Sep 2003 16:38:33 -0400
Subject: [Mapserver-users] MapLab point query modification
Message-ID:
Hi, folks:
I couldn't get Maplab point queries to do what I wanted. As a matter of
fact, I couldn't get them to do anything right off-the-bat. So I made
the following changes, and all is great.
Problem was, on a single click, the first part of the if/then block that
decides to execute a point or a rect query, only checks to see if
$adMax[0 and 1] are numeric, i.e. do we have a max X,Y for a mouse
selection box? That seems to be true in all cases, so I added a check
to see if they were identical to $adMin[0 and 1]. If so, a single point
has been clicked. Otherwise, they've made a rectangle.
./wrapper/drawmap.php
* changed the if/then block under // execute query (line 402) to be:
if ( ( is_numeric( $adMax[0] ) && is_numeric( $adMax[1] ) ) &&
( $adMax[0] != $adMin[0] && $adMax[1] != $adMin[1] ) ) {
$oResultSet = $oMapQuery->executeRectQuery( $adMin[0],
$adMin[1],$adMax[0], $adMax[1] );
}
else {
$oResultSet = $oMapQuery->executePointQuery( $adMin[0],
$adMin[1] );
}
./query.phtml
* changed the if/then block under // execute query (line 124) to be:
if ( ( is_numeric( $adMax[0] ) && is_numeric( $adMax[1] ) ) &&
( $adMax[0] != $adMin[0] && $adMax[1] != $adMin[1] ) ) {
$oResultSet = $oMapQuery->executeRectQuery( $adMin[0],
$adMin[1],$adMax[0], $adMax[1] );
}
else {
$oResultSet = $oMapQuery->executePointQuery( $adMin[0],
$adMin[1] );
}
Maybe I had to do this because of my browser? I didn't go back to
quintuple-y check the origins of $adMin and $adMax, but the above
solution works for me.
Charlton
Charlton Purvis
(803) 777-8858 : voice
(803) 777-8833 : fax
cpurvis at sc.edu
Advanced Solutions Group
Department of Physics and Astronomy
University of South Carolina
Columbia, SC 29208
From stephen.clark at focus.ca Fri Sep 5 14:57:51 2003
From: stephen.clark at focus.ca (Stephen Clark)
Date: Fri, 5 Sep 2003 14:57:51 -0700
Subject: [Mapserver-users] demo for version 4 : error
Message-ID: <00d601c373f8$c0b13b30$6c000a0a@sclark>
This is a multi-part message in MIME format.
------=_NextPart_000_00D3_01C373BE.141B9BC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Can someone post a demo map file that will work with version 4.0
I downloaded the itasca demo files but they will not work.
The error I am getting is :
Internal Server Error
The server encountered an internal error or misconfiguration and was =
unable to complete your request.
Please contact the server administrator, admin at fsj.focus.ca and inform =
them of the time the error occurred, and anything you might have done =
that may have caused the error.
More information about this error may be available in the server error =
log.
-------------------------------------------------------------------------=
-------
Apache/2.0.46 (Win32) Server at sclark Port 80
Any thought are welcome
Stephen
------=_NextPart_000_00D3_01C373BE.141B9BC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Can someone post a demo map file that =
will work=20
with version 4.0
I downloaded the itasca demo files but =
they will=20
not work.
The error I am getting is =
:
Internal Server Error
The server encountered an internal error or misconfiguration and was =
unable=20
to complete your request.
Please contact the server administrator, admin at fsj.focus.ca and =
inform them=20
of the time the error occurred, and anything you might have done that =
may have=20
caused the error.
More information about this error may be available in the server =
error=20
log.
Apache/2.0.46 (Win32) Server at sclark Port =
80
Any thought are welcome
Stephen
------=_NextPart_000_00D3_01C373BE.141B9BC0--
From thelen at ccgis.de Fri Sep 5 14:59:25 2003
From: thelen at ccgis.de (Benjamin Thelen CCGIS)
Date: Fri, 5 Sep 2003 23:59:25 +0200 (CEST)
Subject: [Mapserver-users] 4.0 mapscript on freebsd 4.4
In-Reply-To:
References: <36242.192.168.0.5.1062443709.squirrel@vogon.ccgis.de>
Message-ID: <1416.192.168.2.109.1062799165.squirrel@vogon.ccgis.de>
Hi Joe,
Well, I did not see any mail. Perhaps I overlooked it.
It was no problem, I just used gmake. I did not test mapscript yet, but
the compiling process went through. Interesting, it is the same with
postgis, doesn't compile with make, just gmake! On debian, Red Hat Linux,
'make' makes it.
Thanks very much for your mail!!
Regards,
Benjamin
> I should have posted that I found the problem, sorry bout that. R.
> Piepul's
> suggestion to use gmake was correct. I guess FreeBSD doesn't come with
> gmake, so you need to download GNU make, configure and compile it. What
> got
> me is that it wasn't the default make: you have to use
> '/usr/local/bin/make'
> instead of 'make' (at least, that's how I did it). Good luck.
>
> Joe
>
> -----Original Message-----
> From: mapserver-users-admin at lists.gis.umn.edu
> [mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of Benjamin
> Thelen (CCGIS)
> Sent: Monday, September 01, 2003 3:15 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] 4.0 mapscript on freebsd 4.4
>
>
> -------- Received an error from umn-mapserver mailman-2.0.13 ----
> -------- This mail could not be delivered! -------------
>
> -------- 2nd attempt -----------
>
>
> Hi Joe,
>
> I exactly have the same error code on FreeBSD 4.7 and FreeBSD 4.8!
> As you wrote with mapscript 3.6.5 and 3.6.5 it was possible to compile
> after a few changes within mapscript Makefile:
>
> Change:
> CC= cc to CC= gcc
> LD= cc -Wl -Wl, to LD= gcc -Wl -Wl,-share
> and
> -I$(PHP_SRC_DIR)/dl to -I$(PHP_SRC_DIR)/ext
>
> This does not work anymore!!
>
> Here is some mapserver related software listed, I've installed!
> GD 2.0.15
> php 4.3.3
> gdal 1.1.8
> pg-sql 7.3.2
> curl 7.10.5
> proj 4.4.5
> gcc-3.2.3
> gmake 3.80
>
> Sorry, I have no idea what to do, either! :-(
>
> What I found out is, that in php_mapscript_util.h are two lines #Include
> "php.h" and #Include "php_globals.h". Both files are definitely within the
> source tree of php, given within the mapserver configure option
> --with-php=PATH-TO-SOURCE-TREE. What I really do not understand is, why
> the file maperror.h cannot be found. It is within the source tree of
> mapserver 4.0 I'm actually building?! Additionally I do not understand the
> last line of the error code, as there is no #Include "maperror.h" within
> php_mapscript_util.h. I found that in php_mapscript_util.c on line 101.
> Perhaps the code is making use of a variable or something like that, which
> isn't provide on FreeBSD?
>
> Well, I don't know how all that works!
>
> Regards,
> Benjamin
>
>> Has anyone tried to compile mapserver 4.0 with mapscript on freebsd yet?
>> I'm trying on freebsd 4.4, but the php mapscript Makefile seems to be
>> erroring during compile - much like the old version of mapserver did.
>> Except this time the Makefile is different, and the old fixes that
>> worked
>> in
>> 3.6 don't work in 4.0.
>>
>> Here's the error code:
>>
>> gcc -fPIC -02 -Wall -DCOMPILE_DL=1 -DPHP4 -c php_mapscript_util.c
>> In file included from php_mapscript_util.c:101:
>> php_mapscript_util.h:58: php.h: No such file or directory
>> php_mapscript_util.h:59: php_globals.h: No such file or directory
>> php_mapscript_util.h:102: maperror.h: No such file or directory
>> *** Error code 1
>>
>> Stop in /usr/home/joe/mapserver40/mapscript/php3.
>> *** Error code 1
>>
>> Here's part of the Makefile (where the error might be):
>>
>> CC = gcc -fPIC
>> LD = c++ -shared
>> CFLAGS = -02 -Wall -DCOMPILE_DL=1 -DPHP4
>> RUNPATHS=
>>
>> What do I need to change?
>>
>> Joe
>>
>> _______________________________________________
>> Mapserver-users mailing list
>> Mapserver-users at lists.gis.umn.edu
>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>
>>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
From rjames57 at yahoo.com Fri Sep 5 15:36:50 2003
From: rjames57 at yahoo.com (Randy James)
Date: Fri, 5 Sep 2003 15:36:50 -0700 (PDT)
Subject: [Mapserver-users] demo for version 4 : error
In-Reply-To: <00d601c373f8$c0b13b30$6c000a0a@sclark>
Message-ID: <20030905223650.18680.qmail@web12501.mail.yahoo.com>
Hi
Just one thought: i wonder what is in the server log?
Cheers
Randy
--- Stephen Clark wrote:
> Can someone post a demo map file that will work with
> version 4.0
>
> I downloaded the itasca demo files but they will not
> work.
>
> The error I am getting is :
>
>
>
> Internal Server Error
> The server encountered an internal error or
> misconfiguration and was unable to complete your request.
>
> Please contact the server administrator,
> admin at fsj.focus.ca and inform them of the time the error
> occurred, and anything you might have done that may have
> caused the error.
>
> More information about this error may be available in the
> server error log.
>
>
>
--------------------------------------------------------------------------------
>
> Apache/2.0.46 (Win32) Server at sclark Port 80
>
>
>
> Any thought are welcome
>
> Stephen
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
From stephen.clark at focus.ca Fri Sep 5 15:53:08 2003
From: stephen.clark at focus.ca (Stephen Clark)
Date: Fri, 5 Sep 2003 15:53:08 -0700
Subject: [Mapserver-users] demo for version 4 : error
References: <20030905223650.18680.qmail@web12501.mail.yahoo.com>
Message-ID: <00fb01c37400$79a60010$6c000a0a@sclark>
I managed to get it fixed.
Apache needed to be restarted.
----- Original Message -----
From: "Randy James"
To: "Stephen Clark"
Cc: "Mapserver Users"
Sent: Friday, September 05, 2003 3:36 PM
Subject: Re: [Mapserver-users] demo for version 4 : error
> Hi
>
> Just one thought: i wonder what is in the server log?
>
> Cheers
> Randy
> --- Stephen Clark wrote:
> > Can someone post a demo map file that will work with
> > version 4.0
> >
> > I downloaded the itasca demo files but they will not
> > work.
> >
> > The error I am getting is :
> >
> >
> >
> > Internal Server Error
> > The server encountered an internal error or
> > misconfiguration and was unable to complete your request.
> >
> > Please contact the server administrator,
> > admin at fsj.focus.ca and inform them of the time the error
> > occurred, and anything you might have done that may have
> > caused the error.
> >
> > More information about this error may be available in the
> > server error log.
> >
> >
> >
> --------------------------------------------------------------------------
------
> >
> > Apache/2.0.46 (Win32) Server at sclark Port 80
> >
> >
> >
> > Any thought are welcome
> >
> > Stephen
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
From Rich at GreenwoodMap.com Fri Sep 5 18:32:52 2003
From: Rich at GreenwoodMap.com (Richard Greenwood)
Date: Fri, 05 Sep 2003 19:32:52 -0600
Subject: [Mapserver-users] Corollary to the McNierney Principal (or setting up Windows
2003)
Message-ID: <5.2.0.9.0.20030905192023.00affd18@mail.GreenwoodMap.com>
Ed McNierney always points out the best way to achieve high performance is
to serve (and process) little or no data. In Ed's own words: "Absolutely,
guaranteed the fastest - no data at all. It renders in zero time on even
the slowest machines!" (see
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0301/msg00023.html).
Words of wisdom, and I have respectfully dubbed this the "McNierney Principal".
I suspect that someone at Microsoft has followed Ed's logic and applied it
to the security features in Windows 2003 Server / IIS 6.0. Here's the
story. Earlier this week I had the displeasure of setting up Mapserver on a
Windows 2003 / IIS 6.0 server. I've setup Mapserver on IIS enough times to
be confident with the process, and I had a laptop with a functioning IIS /
Mapserver installation at my side. But all I could get from the Windows
2003 / IIS 6.0 server was 404 errors.
To make a long story short, Server 2003 and/or IIS 6 has a new top level
"Web Service Extensions node" which has all dynamic content turned off by
default. (A server that servers little or nothing is secure, hence the
corollary to the McNierney Principal (and I think that a computer that is
turned off may be even more secure)).
You can enable scripting and executables in all the usual IIS places for
individual virtual directories or entire web sites, but the top level
default setting for the computer will over-ride your settings for all web
sites and virtual directories. And IIS Service Manager will give you no
clue that that it is doing this aside from generating 404 errors. The
relevant MS pages are:
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/proddocs/standard/ca_enabledynamiccontent.asp
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/proddocs/standard/ca_configcgi.asp
If you have read this far, I hope you realize that:
1. I am ranting (and I have a 12 oz aluminum can at hand)
2. I have the upmost respect for Ed McNierney
3. I have some disdain for Microsoft
Have a good weekend,
Rich
Richard W. Greenwood, PLS
Greenwood Mapping, Inc.
Rich GreenwoodMap com
(307) 733-0203
http://www.GreenwoodMap.com
From krung at cad.go.th Fri Sep 5 23:29:17 2003
From: krung at cad.go.th (Krung Saengpole)
Date: Sat, 6 Sep 2003 13:29:17 +0700
Subject: [Mapserver-users] How to set class' color by code.
Message-ID: <200309061329.AA367460578@cad.go.th>
Hi all,
I want to set the class' color by code using PHPMapscript/PHP4.3.2 on Windows XP but have no luck. I didn't find any members or methods of ClassObj to set its color. Can I do this? (Not set color of LABEL in CLASS) e.g.
$class=ms_newClassObj($layer);
$class->....# how to set class color
TIA
Krung.
From mschulz at webgis.de Sat Sep 6 08:49:53 2003
From: mschulz at webgis.de (Michael Schulz)
Date: Sat, 06 Sep 2003 17:49:53 +0200
Subject: [Mapserver-users] metadata object?
Message-ID: <3F5A0221.7070909@webgis.de>
Hi,
what would be the correct way to access the metadata of map and layer
objects via mapscript, if you don't know the names of the metadata
properties?
Is there a function like getMetaData(), that doesn't take a name but
returns a list of all metadata entries for the object?
Just curious.
Cheers, Michael
--
-----------------------------------------------------------
Michael Schulz in medias res
Dipl.-Geologe Gesellschaft f?r
Informationstechnologie mbH
In den Weihermatten 66
79108 Freiburg
0761 55695-95 (Fax 96)
mschulz at webgis.de www.webgis.de/www.zopecms.de
From sgillies at frii.com Sat Sep 6 09:45:08 2003
From: sgillies at frii.com (Sean Gillies)
Date: Sat, 6 Sep 2003 10:45:08 -0600
Subject: [Mapserver-users] metadata object?
In-Reply-To: <3F5A0221.7070909@webgis.de>
Message-ID: <79613CD8-E089-11D7-865D-000393B98B56@frii.com>
On Saturday, September 6, 2003, at 09:49 AM, Michael Schulz wrote:
> Hi,
> what would be the correct way to access the metadata of map and layer
> objects via mapscript, if you don't know the names of the metadata
> properties?
>
> Is there a function like getMetaData(), that doesn't take a name but
> returns a list of all metadata entries for the object?
> Just curious.
>
> Cheers, Michael
>
Hi Michael,
I've thought about this a lot. My particular need was to access the
hash
of fonts through something like
fonts = mapobj.fontset.getFonts()
fonts
['Arial','ArialHB',...]
I had this working, but then some other changes to the MapServer code
broke
my code, and then things got too hectic before the 4.0 release ... I
ended
up removing my work from the CVS.
Metadata are stored in a hashTableObj, but unfortunately there seems to
be
problems between this code and SWIG with the result that a hashTableObj
can't yet be exposed in MapScript. Ideally we want hashTableObjs with
methods like keys(), has_key(), &c.
Enter this as a feature request in the MapServer Bugzilla and I'll help
you
lobby for work on it. I think it will require a re-write of the code in
maphash.c to make it SWIG compatible or require some work on the SWIG
code
itself.
Meanwhile, I think you'll have to write some code to parse the mapfile
and
get the metadata keys.
cheers,
Sean
--
Sean Gillies
sgillies at frii dot com
http://www.frii.com/~sgillies
From vinko at cprsig.cl Sat Sep 6 20:11:32 2003
From: vinko at cprsig.cl (Vinko Vrsalovic)
Date: Sat, 6 Sep 2003 23:11:32 -0400
Subject: [Mapserver-users] How to set class' color by code.
In-Reply-To: <200309061329.AA367460578@cad.go.th>
References: <200309061329.AA367460578@cad.go.th>
Message-ID: <20030907031132.GA1875@landsat.cprsig.cl>
On Sat, Sep 06, 2003 at 01:29:17PM +0700, Krung Saengpole wrote:
> Hi all,
>
> I want to set the class' color by code using PHPMapscript/PHP4.3.2 on Windows XP but have no luck. I didn't find any members or methods of ClassObj to set its color. Can I do this? (Not set color of LABEL in CLASS) e.g.
>
> $class=ms_newClassObj($layer);
> $class->....# how to set class color
I guess you're using MapServer 4.0.
There's a new StyleObj that manages the colors and symbols of a class.
So, now you have the ClassObj that has an instance of a LabelObj and an
instance of a StyleObj (or more than one).
$class = ms_newClassObj($layer);
$style = ms_newStyleObj($class);
$style->color->setRGB(0,0,0); // New method for adding colors
BTW, what's the use of having more than one style per class?
--
Vinko Vrsalovic
http://www.cprsig.cl
From thfischer at mapmedia.de Sun Sep 7 07:54:15 2003
From: thfischer at mapmedia.de (Thorsten Fischer)
Date: Sun, 07 Sep 2003 16:54:15 +0200
Subject: [Mapserver-users] Corollary to the McNierney Principal (or
setting up Windows 2003)
In-Reply-To: <5.2.0.9.0.20030905192023.00affd18@mail.GreenwoodMap.com>
References: <5.2.0.9.0.20030905192023.00affd18@mail.GreenwoodMap.com>
Message-ID: <1062946455.1676.23.camel@jeanjacques>
On Sat, 2003-09-06 at 03:32, Richard Greenwood wrote:
> I suspect that someone at Microsoft has followed Ed's logic and applied it
> to the security features in Windows 2003 Server / IIS 6.0. Here's the
> story. Earlier this week I had the displeasure of setting up Mapserver on a
> Windows 2003 / IIS 6.0 server. I've setup Mapserver on IIS enough times to
> be confident with the process, and I had a laptop with a functioning IIS /
> Mapserver installation at my side. But all I could get from the Windows
> 2003 / IIS 6.0 server was 404 errors.
>
> To make a long story short, Server 2003 and/or IIS 6 has a new top level
> "Web Service Extensions node" which has all dynamic content turned off by
> default. (A server that servers little or nothing is secure, hence the
> corollary to the McNierney Principal (and I think that a computer that is
> turned off may be even more secure)).
So, Microsoft is finally starting to get at least a little bit sensible
about these topics; they are finally making a good decision about
default configuration (forcing you to whitelist, i.e. disallowing
everything and then you have to turn on what you need), and you are
actually _complaining_? Now this is new. One of Microsoft biggest
problems is that their default configurations are absolutely bonkers.
The way you described is the way it should be done - at least in theory,
since I can imagine that they screwed it somehow anyway.
Apart from that, static content != no content. This is different for a
CGI application like MapServer of course.
And a computer is not a secure one just because it's turned off.
Security is not a state, it's
a process. :)
> You can enable scripting and executables in all the usual IIS places for
> individual virtual directories or entire web sites, but the top level
> default setting for the computer will over-ride your settings for all web
> sites and virtual directories.
This is what a default setting is supposed to do, right?
But to be honest, your sentence is confusing me a bit; do you really
mean that a top-level setting is overriding every other setting all the
time? That would be a bit weird. I would expect it to define ... well, a
default, and then you make changes to whatever places, overriding the
defaults.
> And IIS Service Manager will give you no
> clue that that it is doing this aside from generating 404 errors. The
> relevant MS pages are:
My favourite sentence from the first URL is the very first one:
"In order to take a more proactive stance against malicious users and
attackers, IIS is not installed on members of the Microsoft? Windows?
Server 2003 family by default."
Bravo! :)
> If you have read this far, I hope you realize that:
> 1. I am ranting (and I have a 12 oz aluminum can at hand)
So am I (without the can).
> 3. I have some disdain for Microsoft
Don't we all? :)
> Have a good weekend,
Yes, same to you. I will spend the remainder of mine with finding out
why my various flavours of queries are breaking in MapServer 4.0. Oh,
the sheer joy of it! :)
thorsten
From thfischer at mapmedia.de Sun Sep 7 08:53:38 2003
From: thfischer at mapmedia.de (Thorsten Fischer)
Date: Sun, 07 Sep 2003 17:53:38 +0200
Subject: [Mapserver-users] Whole lotta shakin' going on
In-Reply-To: <13858AA1A74F30419F319ACB66A9D1222C015D@mercator.topozone.com>
References: <13858AA1A74F30419F319ACB66A9D1222C015D@mercator.topozone.com>
Message-ID: <1062950018.1676.39.camel@jeanjacques>
On Fri, 2003-09-05 at 13:59, Ed McNierney wrote:
[ tips on serving raster data ]
> 1. Make sure you have resampled the imagery (if necessary) so
> small-scale (zoomed-out) views use a data source with input resolution.
1. a) for simple 'intro' type of pages you might even want to consider
static images (.png for example) with image maps in HTML. You might for
example have a map of Germany and then branch out to dynamic views of
the Bundesl?nder.
> 2. Do not use compressed imagery unless you fully understand how the
> decompression works.
> 3. Do not use compression schemes that require a LOT of data to be read
> from disk in order to decode a small portion of the image.
This is a very important point. You gain nothing from a compression
scheme that has to read the entire file to decode a small section of the
image. This fact can completely destroy your performance, and most of
all: it's a hell to debug. I am emphasizing this because I spent quite
some time with it.
Btw: Hard disks are cheap :)
> 4. Use good disk hardware (RAID-5) and organization.
> 5. Use lots of RAM so the server can both cache data and avoid swapping.
RAM. Give. More. Throw it at me. Now.
5. a) Get someone with a clue about hardware to help you. I was really
amazed how much detailed knowledge about which kind of RAM and hard disk
to use in combination with mainboard X and operation system Y can gain
you in performance.
> 6. Tile the imagery into tiles that are of relatively modest size and
> use tile indexes. Do not break the tiles too small - most map requests
> should require only one input tile to be read.
6. a) Do not only tile your data, but also make sensible decisions on
when and where to show them. MAXSCALE and MINSCALE are your friends.
Never show everything you've got at once, no matter how great it would
look. The smaller (and fewwer) your chunks are, the less time the
computer has to spend with time-critical data processing.
thorsten
From fx.gamoy at mapxplore.com Sun Sep 7 09:35:58 2003
From: fx.gamoy at mapxplore.com (fx gamoy)
Date: Sun, 7 Sep 2003 17:35:58 +0100
Subject: [Mapserver-users] transparent and PNG pixmap symbol???
Message-ID: <001901c3755e$1e0e11c0$0201a8c0@mapxplore.com>
C'est un message de format MIME en plusieurs parties.
------=_NextPart_000_0016_01C37566.7FCB4DD0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
hello world
i have compiled a mapserver3.6.6 release with gd2.0.12 on a debian =
plateform.
I use png pixmap symbols with "transparent 0" but the transparent =
parameter don't work in my debian platform
(it works when i try it in a WINNT platform)
What is the mystake??
thanks
fx
------=_NextPart_000_0016_01C37566.7FCB4DD0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
hello world
i have compiled a mapserver3.6.6 =
release with=20
gd2.0.12 on a debian plateform.
I use png pixmap symbols with =
"transparent 0" but=20
the transparent parameter don't work in my debian platform
(it works when i try it in a WINNT=20
platform)
What is the mystake??
thanks
fx
------=_NextPart_000_0016_01C37566.7FCB4DD0--
From krung at cad.go.th Sun Sep 7 12:30:41 2003
From: krung at cad.go.th (Krung Saengpole)
Date: Mon, 8 Sep 2003 02:30:41 +0700
Subject: [Mapserver-users] How to set class' color by code.
Message-ID: <200309080230.AA526975202@cad.go.th>
Vinko,
Thank you for your help. My problem's solved.
Krung.
>> I want to set the class' color by code using PHPMapscript/PHP4.3.2 on Windows XP but have no luck. I didn't find any members or methods of ClassObj to set its color. Can I do this? (Not set color of LABEL in CLASS) e.g.
>>
>> $class=ms_newClassObj($layer);
>> $class->....# how to set class color
>
>I guess you're using MapServer 4.0.
>
>There's a new StyleObj that manages the colors and symbols of a class.
>
>So, now you have the ClassObj that has an instance of a LabelObj and an
>instance of a StyleObj (or more than one).
>
>$class = ms_newClassObj($layer);
>$style = ms_newStyleObj($class);
>$style->color->setRGB(0,0,0); // New method for adding colors
>
>BTW, what's the use of having more than one style per class?
>
>--
>Vinko Vrsalovic
>http://www.cprsig.cl
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
From nf10 at hotmail.com Sun Sep 7 17:16:31 2003
From: nf10 at hotmail.com (Jeff L.)
Date: Mon, 08 Sep 2003 00:16:31 +0000
Subject: [Mapserver-users] MapServer and CGI Error under IIS 5
Message-ID:
Hi,
I installed MapServer 4 on a windows 2000 machine with IIS 5. I edited the
demo path.
Whe I run the demo, some times it works (an image is produced), but some
times i have an error:
"CGI Error
The specified CGI application misbehaved by not returning a complete set
of HTTP headers. The headers it did return are:".
This error occurs randomly and i was wondering if any one had this kind of
error. What would be the cause and eventuelly if there is any way to fix it.
Thanks in advance for any information
Jeff Lacoste
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
From fx.gamoy at mapxplore.com Mon Sep 8 03:32:05 2003
From: fx.gamoy at mapxplore.com (fx gamoy)
Date: Mon, 8 Sep 2003 11:32:05 +0100
Subject: [Mapserver-users] writing new object to a Mapinfo TAB using php/mapscript and mapserver
Message-ID: <004201c375f4$72853b70$0201a8c0@mapxplore.com>
C'est un message de format MIME en plusieurs parties.
------=_NextPart_000_003F_01C375FC.D444E880
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello
Is it possible to write and save new objects (line or polygon) into a =
Mapinfo File using Mapserver and php/mapscript?
Thanks
fx
------=_NextPart_000_003F_01C375FC.D444E880
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello
Is it possible to write and save new =
objects (line=20
or polygon) into a Mapinfo File using Mapserver and =
php/mapscript?
Thanks
fx
------=_NextPart_000_003F_01C375FC.D444E880--
From twan at twansoft.com Mon Sep 8 02:34:16 2003
From: twan at twansoft.com (Twan Kogels)
Date: Mon, 08 Sep 2003 11:34:16 +0200
Subject: [Mapserver-users] Spatial/geometric extent of DGN?
Message-ID: <6.0.0.22.2.20030908112705.03c249d8@pop.xs4all.nl>
Hello,
I've received a couple of DGN files orginal made in Microstation. I ran
"ogrinfo" (a program supplied with gdal) on a single dgn and it output was:
========
using driver `DGN' successful.
1: elements
========
So i guess gdal can read the dgn file. But now i want mapserver to display
the DGN files. So i made a .map file and got stuck when defining the EXTENT
part of the map file, cause i don't know it.
When using ESRI shapefile, a program named "shpinfo" gives me the
spatial/geometric extent of a shapefile which i then use in the .map file.
Is there a program (for *nix) which gives me the spatial/geometric extent
of a DGN file?
Best regards,
Twan Kogels
From twan at twansoft.com Mon Sep 8 03:41:36 2003
From: twan at twansoft.com (Twan Kogels)
Date: Mon, 08 Sep 2003 12:41:36 +0200
Subject: [Mapserver-users] Spatial/geometric extent of DGN?
In-Reply-To: <20030908101958.GA12340@lowresbox.lan>
References: <6.0.0.22.2.20030908112705.03c249d8@pop.xs4all.nl>
<20030908101958.GA12340@lowresbox.lan>
Message-ID: <6.0.0.22.2.20030908123635.0429d940@pop.xs4all.nl>
Vincent,
Thanks for the usefull reply! I just tryed your suggestion and it works,
but the -so option was not known. It appears it's introduced in gdal 1.1.9
and i was using 1.1.8. No problem, i've downloaded/installed the
1.1.9 version and the -so option is now known. I tested it on a DGN file
and the Extent: is printed. Now i'm gonna try to get the dgn to work with
mapserver.
The given link is a handy link, i've bookmarked it.
Best regards,
Twan
At 12:19 8-9-2003, you wrote:
>Twan,
>
>running ogr on a file without specifying the layer you want info on will
>output the available layers. Even with files with only one layer. This is
>just how ogr works. In your case the layer name is 'elements', so
>specifying this after the ogrinfo [filename.dgn] command will show you the
>info on the layer. Note that this will also output info on all geometries,
>so you might want to use the summary option (-so). E.g. try 'ogrinfo -so
>[filename.dgn] elements'
>
>cheers,
>Vincent.
>
>btw have a look at www.remotesensing.org/gdal/ogr/ogr_utilities.html
>
>On 11:34 Mon 08 Sep , Twan Kogels wrote:
> > Hello,
> >
> > I've received a couple of DGN files orginal made in Microstation. I ran
> > "ogrinfo" (a program supplied with gdal) on a single dgn and it output was:
> >
> > ========
> > using driver `DGN' successful.
> > 1: elements
> > ========
> >
> > So i guess gdal can read the dgn file. But now i want mapserver to display
> > the DGN files. So i made a .map file and got stuck when defining the
> EXTENT
> > part of the map file, cause i don't know it.
> >
> > When using ESRI shapefile, a program named "shpinfo" gives me the
> > spatial/geometric extent of a shapefile which i then use in the .map file.
> >
> > Is there a program (for *nix) which gives me the spatial/geometric extent
> > of a DGN file?
> >
> > Best regards,
> > Twan Kogels
> >
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From gayathri at ou.edu Mon Sep 8 06:15:13 2003
From: gayathri at ou.edu (Swaminathan, Gayathri)
Date: Mon, 8 Sep 2003 08:15:13 -0500
Subject: [Mapserver-users] MapServer and CGI Error under IIS 5
Message-ID:
Hi,
Did you check if it ran well under command prompt?
When you enter in command prompt, "mapserv -v" it should give version and
other details. If it is missing dlls in C:\\system32 it will
tell you at this stage. And this is one reason for it to give the error
message, "CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:".
Good luck,
Gayathri
-----Original Message-----
From: Jeff L. [mailto:nf10 at hotmail.com]
Sent: Sunday, September 07, 2003 7:17 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] MapServer and CGI Error under IIS 5
Hi,
I installed MapServer 4 on a windows 2000 machine with IIS 5. I edited the
demo path.
Whe I run the demo, some times it works (an image is produced), but some
times i have an error:
"CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:".
This error occurs randomly and i was wondering if any one had this kind of
error. What would be the cause and eventuelly if there is any way to fix it.
Thanks in advance for any information
Jeff Lacoste
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From justin at augsignals.com Mon Sep 8 06:32:21 2003
From: justin at augsignals.com (Justin Chan)
Date: Mon, 8 Sep 2003 09:32:21 -0400
Subject: [Mapserver-users] Beginner - WFS Setup Questions
Message-ID: <006201c3760d$a1efb700$2c01a8c0@Justin>
This is a multi-part message in MIME format.
------=_NextPart_000_005F_01C375EC.1A98D0A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello, I am interested in using mapserver to display certain features =
and their corresponding attributes. I understand that mapserver will =
allow me to accomplish this. However, after reading the documentation on =
setting up WFS and the MySQL database, I was very confused. I am hoping =
that someone will be able to help me.=20
My project requires me to develop an application such that a feature =
would be displayed on a map, and upon clicking that feature, certain =
attributes such as name of the image, ownership, a user provided =
description and other text data would be displayed. It is my =
understanding that this information can be stored in a MySQL database =
and WFS can somehow access this data and return it.
In order to accomplish these tasks, I believe that I must do the =
following,
1. download source, set flag to allow mapserver to act as a WFS client
2. set up the MySQL database
3. set up a map file to display the feature
4. inform WFS of the loaction of the mapfile and the database.
Unfortunately, I do not know how to do these steps, so any help would be =
greatly appreciated.
Thanks,
Justin
------=_NextPart_000_005F_01C375EC.1A98D0A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello, I am interested in using =
mapserver to=20
display certain features and their corresponding attributes. I =
understand that=20
mapserver will allow me to accomplish this. However, after reading the=20
documentation on setting up WFS and the MySQL database, I was very =
confused. I=20
am hoping that someone will be able to help me.
My project requires me to develop an =
application=20
such that a feature would be displayed on a map, and upon clicking that=20
feature, certain attributes such as name of the image, ownership, a =
user=20
provided description and other text data would be displayed. It is my=20
understanding that this information can be stored in a MySQL database =
and WFS=20
can somehow access this data and return it.
In order to accomplish these tasks, I =
believe that=20
I must do the following,
1. download source, set flag to allow =
mapserver to=20
act as a WFS client
2. set up the MySQL =
database
3. set up a map file to display the=20
feature
4. inform WFS of the loaction of the =
mapfile and=20
the database.
Unfortunately, I do not know how to do =
these steps,=20
so any help would be greatly appreciated.
Thanks,
Justin
------=_NextPart_000_005F_01C375EC.1A98D0A0--
From nf10 at hotmail.com Mon Sep 8 06:27:34 2003
From: nf10 at hotmail.com (Jeff L.)
Date: Mon, 08 Sep 2003 13:27:34 +0000
Subject: [Mapserver-users] MapServer and CGI Error under IIS 5
Message-ID:
Hi,
The demo is working, but not all the times. When I tried it some times it
works. Other times it give me the header CGI error. I'm using the same demo
with the same commands. Randmoly it's works but also randomly it's produces
header CGI error. As MapServer 4.0 is taged stable, probably this error is
the result of the IIS. I'm not sure.
Jeff Lacoste
>From: "Swaminathan, Gayathri"
>To: "'Jeff L.'"
>CC: "'mapserver-users at lists.gis.umn.edu'"
>
>Subject: RE: [Mapserver-users] MapServer and CGI Error under IIS 5
>Date: Mon, 8 Sep 2003 08:15:13 -0500
>
>Hi,
>Did you check if it ran well under command prompt?
>
>When you enter in command prompt, "mapserv -v" it should give version and
>other details. If it is missing dlls in C:\\system32 it will
>tell you at this stage. And this is one reason for it to give the error
>message, "CGI Error
>The specified CGI application misbehaved by not returning a complete set of
>HTTP headers. The headers it did return are:".
>
>Good luck,
>Gayathri
>
>-----Original Message-----
>From: Jeff L. [mailto:nf10 at hotmail.com]
>Sent: Sunday, September 07, 2003 7:17 PM
>To: mapserver-users at lists.gis.umn.edu
>Subject: [Mapserver-users] MapServer and CGI Error under IIS 5
>
>
>Hi,
>
>I installed MapServer 4 on a windows 2000 machine with IIS 5. I edited the
>demo path.
>Whe I run the demo, some times it works (an image is produced), but some
>times i have an error:
>"CGI Error
>The specified CGI application misbehaved by not returning a complete set of
>HTTP headers. The headers it did return are:".
>
>This error occurs randomly and i was wondering if any one had this kind of
>error. What would be the cause and eventuelly if there is any way to fix
>it.
>
>Thanks in advance for any information
>
>Jeff Lacoste
>
>_________________________________________________________________
>Add photos to your messages with MSN 8. Get 2 months FREE*.
>http://join.msn.com/?page=features/featuredemail
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
From Lars-goran.Edholm at sandviken.se Mon Sep 8 06:44:31 2003
From: Lars-goran.Edholm at sandviken.se (Lars-goran Edholm)
Date: Mon, 08 Sep 2003 15:44:31 +0200
Subject: [Mapserver-users] Export DXF
Message-ID:
Trying to export DXF-file with:
OUTPUTFORMAT
NAME imagemap
MIMETYPE "text/plain"
DRIVER imagemap
EXTENSION dxf
FORMATOPTION DXF=ON
END
I get :
msDrawMap(): GD library error. Unable to initialize image.
I'm using the latest mapserver 4.0.
Mvh
Lars-G?ran Edholm tel 026/24 14 36
1:e byggnadsinspekt?r
Bygg- och milj?kontoret
811 80 Sandviken
lars-goran.edholm at sandviken.se
From morissette at dmsolutions.ca Mon Sep 8 07:25:03 2003
From: morissette at dmsolutions.ca (Daniel Morissette)
Date: Mon, 08 Sep 2003 10:25:03 -0400
Subject: [Mapserver-users] writing new object to a Mapinfo TAB using php/mapscript
and mapserver
In-Reply-To: <004201c375f4$72853b70$0201a8c0@mapxplore.com>
References: <004201c375f4$72853b70$0201a8c0@mapxplore.com>
Message-ID: <3F5C913F.5090002@dmsolutions.ca>
fx gamoy wrote:
> Hello
> Is it possible to write and save new objects (line or polygon) into a
> Mapinfo File using Mapserver and php/mapscript?
> Thanks
> fx
It's not possible to write to anything other than shapefiles using
MapScript. However we have developed a PHP wrapper for the OGR C API a
little while ago that would allow you to do that. The intention is to
make it available as open source but I haven't had the time yet to
package it for public redistribution.
Daniel
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
From steve.lime at dnr.state.mn.us Mon Sep 8 07:50:42 2003
From: steve.lime at dnr.state.mn.us (Steve Lime)
Date: Mon, 08 Sep 2003 09:50:42 -0500
Subject: [Mapserver-users] MapServer and CGI Error under IIS 5
Message-ID:
Stable yes, but not free of bugs. If you can make note of exactly what
was going on that would help. If you are just running the demo then
simply saving the URL would suffice.
Steve
>>> "Jeff L." 09/08/03 08:27AM >>>
Hi,
The demo is working, but not all the times. When I tried it some times
it
works. Other times it give me the header CGI error. I'm using the same
demo
with the same commands. Randmoly it's works but also randomly it's
produces
header CGI error. As MapServer 4.0 is taged stable, probably this error
is
the result of the IIS. I'm not sure.
Jeff Lacoste
>From: "Swaminathan, Gayathri"
>To: "'Jeff L.'"
>CC: "'mapserver-users at lists.gis.umn.edu'"
>
>Subject: RE: [Mapserver-users] MapServer and CGI Error under IIS 5
>Date: Mon, 8 Sep 2003 08:15:13 -0500
>
>Hi,
>Did you check if it ran well under command prompt?
>
>When you enter in command prompt, "mapserv -v" it should give version
and
>other details. If it is missing dlls in C:\\system32 it
will
>tell you at this stage. And this is one reason for it to give the
error
>message, "CGI Error
>The specified CGI application misbehaved by not returning a complete
set of
>HTTP headers. The headers it did return are:".
>
>Good luck,
>Gayathri
>
>-----Original Message-----
>From: Jeff L. [mailto:nf10 at hotmail.com]
>Sent: Sunday, September 07, 2003 7:17 PM
>To: mapserver-users at lists.gis.umn.edu
>Subject: [Mapserver-users] MapServer and CGI Error under IIS 5
>
>
>Hi,
>
>I installed MapServer 4 on a windows 2000 machine with IIS 5. I edited
the
>demo path.
>Whe I run the demo, some times it works (an image is produced), but
some
>times i have an error:
>"CGI Error
>The specified CGI application misbehaved by not returning a complete
set of
>HTTP headers. The headers it did return are:".
>
>This error occurs randomly and i was wondering if any one had this
kind of
>error. What would be the cause and eventuelly if there is any way to
fix
>it.
>
>Thanks in advance for any information
>
>Jeff Lacoste
>
>_________________________________________________________________
>Add photos to your messages with MSN 8. Get 2 months FREE*.
>http://join.msn.com/?page=features/featuredemail
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From fx.gamoy at mapxplore.com Mon Sep 8 09:30:41 2003
From: fx.gamoy at mapxplore.com (fx gamoy)
Date: Mon, 8 Sep 2003 17:30:41 +0100
Subject: [Mapserver-users] TRANSPARENCY and PIXMAP on debian plateform
Message-ID: <008701c37626$8b3b9b00$0201a8c0@mapxplore.com>
C'est un message de format MIME en plusieurs parties.
------=_NextPart_000_0084_01C3762E.ECF66610
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello everybody
i ve compiled mapserver 3.6.6 with gd 2.0.15 (patched release with GIF =
support) on debian plateform
i would like to define tranparency for a pixmap symbol (GIF format) but =
mapserver return a gray background instead of no color.
When i change the transparency to 1 in order to make sure of the effect, =
the color "1" become gray.
Any suggestion??
thanks
fx
------=_NextPart_000_0084_01C3762E.ECF66610
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello everybody
i ve compiled mapserver 3.6.6 with gd =
2.0.15=20
(patched release with GIF support) on debian plateform
i would like to define tranparency for =
a pixmap=20
symbol (GIF format) but mapserver return a gray background instead of no =
color.
When i change the transparency to 1 in =
order to=20
make sure of the effect, the color "1" become gray.
Any suggestion??
thanks
fx
------=_NextPart_000_0084_01C3762E.ECF66610--
From stephen.clark at focus.ca Mon Sep 8 09:44:14 2003
From: stephen.clark at focus.ca (Stephen Clark)
Date: Mon, 8 Sep 2003 09:44:14 -0700
Subject: [Mapserver-users] Binaries for Windows
References: <008701c37626$8b3b9b00$0201a8c0@mapxplore.com>
Message-ID: <056801c37628$702750a0$6c000a0a@sclark>
This is a multi-part message in MIME format.
------=_NextPart_000_0565_01C375ED.C393FB20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
To all,
Option #1:
I am wondering if someone can compile mapserver with a default of 100 =
layers instead of 50 and post the binary in the windows download.
I would also like to know if there is general support for increasing the =
default number of layers to 100.
Option #2:
I not could someone post the instructions to build using cygwin.
I am not very good with compiling using cygwin so be patient!
My specs are:
Win2k
Cygwin=20
gcc version 3.2=20
make version 3.79.1
thanks
Stephen
------=_NextPart_000_0565_01C375ED.C393FB20
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
To all,
Option #1:
I am wondering if someone can compile =
mapserver=20
with a default of 100 layers instead of 50 and post the binary in the =
windows=20
download.
I would also like to know if there is =
general=20
support for increasing the default number of layers to 100.
Option #2:
I not could someone post the =
instructions to build=20
using cygwin.
I am not very good with compiling using =
cygwin so=20
be patient!
My specs are:
Win2k
Cygwin
gcc version 3.2
make version 3.79.1
thanks
Stephen
------=_NextPart_000_0565_01C375ED.C393FB20--
From nf10 at hotmail.com Mon Sep 8 09:56:55 2003
From: nf10 at hotmail.com (Jeff L.)
Date: Mon, 08 Sep 2003 16:56:55 +0000
Subject: [Mapserver-users] MapServer and CGI Error under IIS 5
Message-ID:
Steve,
Thanks for your e-mail.
I reported this to my web host and this seems to be fixed. Currently I'm not
able to reproduce the CGI error. If it appears again i'll send the url.
Jeff
>From: "Steve Lime"
>To: ,
>CC:
>Subject: RE: [Mapserver-users] MapServer and CGI Error under IIS 5
>Date: Mon, 08 Sep 2003 09:50:42 -0500
>
>Stable yes, but not free of bugs. If you can make note of exactly what
>was going on that would help. If you are just running the demo then
>simply saving the URL would suffice.
>
>Steve
>
> >>> "Jeff L." 09/08/03 08:27AM >>>
>Hi,
>
>The demo is working, but not all the times. When I tried it some times
>it
>works. Other times it give me the header CGI error. I'm using the same
>demo
>with the same commands. Randmoly it's works but also randomly it's
>produces
>header CGI error. As MapServer 4.0 is taged stable, probably this error
>is
>the result of the IIS. I'm not sure.
>
>Jeff Lacoste
>
>
> >From: "Swaminathan, Gayathri"
> >To: "'Jeff L.'"
> >CC: "'mapserver-users at lists.gis.umn.edu'"
> >
> >Subject: RE: [Mapserver-users] MapServer and CGI Error under IIS 5
> >Date: Mon, 8 Sep 2003 08:15:13 -0500
> >
> >Hi,
> >Did you check if it ran well under command prompt?
> >
> >When you enter in command prompt, "mapserv -v" it should give version
>and
> >other details. If it is missing dlls in C:\\system32 it
>will
> >tell you at this stage. And this is one reason for it to give the
>error
> >message, "CGI Error
> >The specified CGI application misbehaved by not returning a complete
>set of
> >HTTP headers. The headers it did return are:".
> >
> >Good luck,
> >Gayathri
> >
> >-----Original Message-----
> >From: Jeff L. [mailto:nf10 at hotmail.com]
> >Sent: Sunday, September 07, 2003 7:17 PM
> >To: mapserver-users at lists.gis.umn.edu
> >Subject: [Mapserver-users] MapServer and CGI Error under IIS 5
> >
> >
> >Hi,
> >
> >I installed MapServer 4 on a windows 2000 machine with IIS 5. I edited
>the
> >demo path.
> >Whe I run the demo, some times it works (an image is produced), but
>some
> >times i have an error:
> >"CGI Error
> >The specified CGI application misbehaved by not returning a complete
>set of
> >HTTP headers. The headers it did return are:".
> >
> >This error occurs randomly and i was wondering if any one had this
>kind of
> >error. What would be the cause and eventuelly if there is any way to
>fix
> >it.
> >
> >Thanks in advance for any information
> >
> >Jeff Lacoste
> >
> >_________________________________________________________________
> >Add photos to your messages with MSN 8. Get 2 months FREE*.
> >http://join.msn.com/?page=features/featuredemail
> >
> >_______________________________________________
> >Mapserver-users mailing list
> >Mapserver-users at lists.gis.umn.edu
> >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
>
>_________________________________________________________________
>The new MSN 8: smart spam protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
From dawgfan97 at yahoo.com Mon Sep 8 10:33:39 2003
From: dawgfan97 at yahoo.com (nils hayden)
Date: Mon, 8 Sep 2003 10:33:39 -0700 (PDT)
Subject: [Mapserver-users] Need help getting php to run on apache
Message-ID: <20030908173339.98317.qmail@web12707.mail.yahoo.com>
I am trying to get php to run on apache version 1.3.27
on a windows 2000 OS. We are using mapserver 3.6.6
and php 4.3.2
We have run into the problem that we have fcgi enabled
instead of just plain old cgi. this, the php wont
work, and our needs require just cgi, not fcgi.
I have already doubled checked with the install.txt
file and followed the instructions on installing PHP
as a CGI binary.
I set the cgi.force_redirect = 1 in the php.ini file.
then in the httpd.conf file i made sure that:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
were all set as required in the installation text.
alas, this was apparantly not the problem as the
information was already correct, and not the cause of
the php not working.
I also spent a considerable amount of the day googling
my troubles and looking for documentation, similar
situations for my OS/webclient, and any information I
could find, but to no avail.
If anyone has experienced similar problems and worked
through them, or sees something obvious that I am
missing I would greatly appreciate the help.
Thanks
From progigraph.vd at cablevision.qc.ca Mon Sep 8 11:37:16 2003
From: progigraph.vd at cablevision.qc.ca (Danny Bisson)
Date: Mon, 08 Sep 2003 14:37:16 -0400
Subject: [Mapserver-users] Fonts and Mapserver 4.0
Message-ID: <3.0.32.20030908143703.00935e00@mail.cablevision.qc.ca>
Anyone had problems using fonts and Mapserver 4.0?
We tried everything (with or without the path) in the fonts.list file, but
we still get an error message telling us Mapserver does not find the font.
We used the exact same configuration in previous version of Mapserver and
it did ok. Is there a known bug with fonts and version 4.0?
Thanks
Danny Bisson
From mark at markrodrigo.com Mon Sep 8 11:41:50 2003
From: mark at markrodrigo.com (Mark Rodrigo)
Date: Mon, 8 Sep 2003 11:41:50 -0700
Subject: [Mapserver-users] Newbie Complilation
Message-ID:
Hello all:
After working on the windows versions for about a half a year, I am finally
breaking into Linux and trying to do the compile. When executing the make I
get this:
gcc -c -02 -wall -Dignore_Missing_Data -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP
-DUSE_GD_FT -I/usr/local/include maptemplate.c -o maptemplate.o
and certainly a bunch more of them. This is mapserver 4.x on RH 8. I am
pretty sure all necessary libraries are there. I can definitely post more of
the message if necessary. Bottomline is my Mapserv won't execute. Does this
raise a basic redflag to somebody. The archives were a little cryptic on
this one.
Thanks
Mark
From eric at gomoos.org Mon Sep 8 08:19:52 2003
From: eric at gomoos.org (Eric Bridger)
Date: 08 Sep 2003 15:19:52 +0000
Subject: [Mapserver-users] Newbie Complilation
In-Reply-To:
References:
Message-ID: <1063034398.1857.42.camel@ubet.gomoos.org>
Mark,
The line you quote is not an error message, just a standard make output
message. Looks fine.
What do you mean by Mapserv won't execute. What exactly happens when
you type mapserv from the command line. Or mapserv -v?
Eric
On Mon, 2003-09-08 at 18:41, Mark Rodrigo wrote:
> Hello all:
>
> After working on the windows versions for about a half a year, I am finally
> breaking into Linux and trying to do the compile. When executing the make I
> get this:
> gcc -c -02 -wall -Dignore_Missing_Data -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP
> -DUSE_GD_FT -I/usr/local/include maptemplate.c -o maptemplate.o
>
> and certainly a bunch more of them. This is mapserver 4.x on RH 8. I am
> pretty sure all necessary libraries are there. I can definitely post more of
> the message if necessary. Bottomline is my Mapserv won't execute. Does this
> raise a basic redflag to somebody. The archives were a little cryptic on
> this one.
>
> Thanks
>
> Mark
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
From lfilak at medinaco.org Mon Sep 8 13:05:01 2003
From: lfilak at medinaco.org (Lowell Filak)
Date: Mon, 08 Sep 2003 16:05:01 -0400
Subject: [Mapserver-users] Newbie Complilation
Message-ID: <200309082004.h88K4vK25309@yogi.medinaco.net>
Hopefully this has some information that can help:
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat8AndMapserver37
Lowell
The following message was sent by "Mark Rodrigo"
on Mon, 8 Sep 2003 11:41:50 -0700.
> Hello all:
>
> After working on the windows versions for about a half a year, I am
finally
> breaking into Linux and trying to do the compile. When executing the
make I
> get this:
> gcc -c -02 -wall -Dignore_Missing_Data -DUSE_EPPL -DUSE_GD_PNG
-DUSE_GD_WBMP
> -DUSE_GD_FT -I/usr/local/include maptemplate.c -o maptemplate.o
>
> and certainly a bunch more of them. This is mapserver 4.x on RH 8. I am
> pretty sure all necessary libraries are there. I can definitely post
more of
> the message if necessary. Bottomline is my Mapserv won't execute. Does
this
> raise a basic redflag to somebody. The archives were a little cryptic on
> this one.
>
> Thanks
>
> Mark
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
From lfilak at medinaco.org Mon Sep 8 13:16:44 2003
From: lfilak at medinaco.org (Lowell Filak)
Date: Mon, 08 Sep 2003 16:16:44 -0400
Subject: [Mapserver-users] Beginner - WFS Setup Questions
Message-ID: <200309082016.h88KGeK25473@yogi.medinaco.net>
WFS client allows MapServer to read data from a WFS server but is not
required to read data from a MySQL database.
Is the data you wish to display already in a MySQL database or some
other format?
Lowell
The following message was sent by "Justin Chan"
on Mon, 8 Sep 2003 09:32:21 -0400.
> Hello, I am interested in using mapserver to display certain features
> and their corresponding attributes. I understand that mapserver will >
allow me to accomplish this. However, after reading the documentation on
> setting up WFS and the MySQL database, I was very confused. I am
hoping > that someone will be able to help me.
> My project requires me to develop an application such that a feature >
would be displayed on a map, and upon clicking that feature, certain >
attributes such as name of the image, ownership, a user provided >
description and other text data would be displayed. It is my >
understanding that this information can be stored in a MySQL database >
and WFS can somehow access this data and return it.
>
> In order to accomplish these tasks, I believe that I must do the >
following,
>
> 1. download source, set flag to allow mapserver to act as a WFS client
> 2. set up the MySQL database
> 3. set up a map file to display the feature
> 4. inform WFS of the loaction of the mapfile and the database.
>
> Unfortunately, I do not know how to do these steps, so any help would
be > greatly appreciated.
>
> Thanks,
>
> Justin
>
From claude-mapserver at skirando.ch Mon Sep 8 13:28:30 2003
From: claude-mapserver at skirando.ch (Claude Philipona)
Date: Mon, 8 Sep 2003 22:28:30 +0200
Subject: [Mapserver-users] Binaries for Windows
In-Reply-To: <056801c37628$702750a0$6c000a0a@sclark>
References: <008701c37626$8b3b9b00$0201a8c0@mapxplore.com> <056801c37628$702750a0$6c000a0a@sclark>
Message-ID: <20030908202830.GA14136@c2cpc2>
On Mon, Sep 08, 2003 at 09:44:14AM -0700, Stephen Clark wrote:
> To all,
>
> Option #1:
> I am wondering if someone can compile mapserver with a default of 100 layers instead of 50 and post the binary in the windows download.
I think the default is already 100 (binaries freom DM Solutions)
> I would also like to know if there is general support for increasing the default number of layers to 100.
I think that the default maximum number of layer and symbol is quite small
for somme application. I think that it should be incresed to 256 for each
of them. I don't think it impact much on perfomance (as we tested on a
linux box).
Claude
From lfilak at medinaco.org Mon Sep 8 13:41:25 2003
From: lfilak at medinaco.org (Lowell Filak)
Date: Mon, 08 Sep 2003 16:41:25 -0400
Subject: [Mapserver-users] Beginner - WFS Setup Questions
Message-ID: <200309082041.h88KfLK26015@yogi.medinaco.net>
Are the XML documents local files or are are they accessed remotely?
I ask because WFS requests/replies are XML documents, so that could
explain how WFS came into the picture originally.
Lowell
The following message was sent by "Justin Lai"
on Mon, 8 Sep 2003 16:30:32 -0400.
> Basically, what we need is text data describing the specific feature to
> appear when it is clicked on. Currently, this data is embedded within XML
> documents. I was told that the best way to have them displayed is storing
> this data in a MySQL database because mapserver is able to display this
> easily.
>
> Thanks,
>
> Justin
> ----- Original Message -----
> From: "Lowell Filak"
> To: "Justin Chan" ;
>
> Sent: Monday, September 08, 2003 4:16 PM
> Subject: Re: [Mapserver-users] Beginner - WFS Setup Questions
>
>
> > WFS client allows MapServer to read data from a WFS server but is not
> > required to read data from a MySQL database.
> > Is the data you wish to display already in a MySQL database or some
> > other format?
> > Lowell
> >
> > The following message was sent by "Justin Chan"
> > on Mon, 8 Sep 2003 09:32:21 -0400.
> >
> > > Hello, I am interested in using mapserver to display certain features
> > > and their corresponding attributes. I understand that mapserver will >
> > allow me to accomplish this. However, after reading the documentation on
> > > setting up WFS and the MySQL database, I was very confused. I am
> > hoping > that someone will be able to help me.
> > > My project requires me to develop an application such that a feature >
> > would be displayed on a map, and upon clicking that feature, certain >
> > attributes such as name of the image, ownership, a user provided >
> > description and other text data would be displayed. It is my >
> > understanding that this information can be stored in a MySQL database >
> > and WFS can somehow access this data and return it.
> > >
> > > In order to accomplish these tasks, I believe that I must do the >
> > following,
> > >
> > > 1. download source, set flag to allow mapserver to act as a WFS client
> > > 2. set up the MySQL database
> > > 3. set up a map file to display the feature
> > > 4. inform WFS of the loaction of the mapfile and the database.
> > >
> > > Unfortunately, I do not know how to do these steps, so any help would
> > be > greatly appreciated.
> > >
> > > Thanks,
> > >
> > > Justin
> > >
> >
> >
From JWiley at city.parksville.bc.ca Mon Sep 8 16:04:04 2003
From: JWiley at city.parksville.bc.ca (John Wiley)
Date: Mon, 08 Sep 2003 16:04:04 -0700
Subject: [Mapserver-users] unsubscibe
Message-ID:
unsubscibe
From vinko at cprsig.cl Mon Sep 8 16:50:06 2003
From: vinko at cprsig.cl (Vinko Vrsalovic)
Date: Mon, 8 Sep 2003 19:50:06 -0400
Subject: [Mapserver-users] MapServer interface to PostGIS errors
Message-ID: <20030908235006.GA29460@landsat.cprsig.cl>
Hi, just to set a record in the archives.
If you want to render data from a subquery as in:
geom from () as foo using unique using SRID=
make sure 'from' is in lowercase.
and make sure everything you'll use in the layer (classitem, labelitem)
is actually selected in the subquery.
I'm sending this as the error messages thrown in mappostgis.c when the
above conditions are not met are not very descriptive (Postgresql reports the error '')
--
Vinko Vrsalovic
http://www.cprsig.cl
From coldwell at csptexas.com Mon Sep 8 18:18:16 2003
From: coldwell at csptexas.com (coldwell at csptexas.com)
Date: Mon, 08 Sep 2003 19:18:16 -0600
Subject: [Mapserver-users] Itemquery question from a newbie
Message-ID: <20030909011816.7F77F8403B@ns1.csptexas.com>
Are there special requirements for a shapefile used for an itemquery?
I have a polygon shapefile which in the dbf has an attribute name of ACCT_.
The attribute is a unique geo_id which is a string beginning with 'R'. Though
I can display this information as a LABELITEM, and with a conventional query
cause the polygon to be highlighted on a querymap, an itemquery with this
data returns the message
msQueryByAttributes(): Search returned no results. No matching record(s)
found, layer and area of interest do not overlap.
The performance is similar in both Mapserver 3.6 and 4.0 with appropriate
changes in the query procedure. (I of course prefer the 4.0 style.)
The map files and query url seem OK, since the map file works for zooming and
click queries. And with appropriate file, layer, and column name changes the
map and templates work as I want them to with the Itasca demo data. But they
won't work with my local data!
Any advice would be appreciated.
Thanks in advance.
From ms57 at streamyx.com Mon Sep 8 18:56:40 2003
From: ms57 at streamyx.com (Steve McCrone)
Date: Tue, 09 Sep 2003 09:56:40 +0800
Subject: [Mapserver-users] Frames
Message-ID: <003301c37675$a3364580$a6395edb@clickntrac>
This is a multi-part message in MIME format.
--Boundary_(ID_J6O43FzkIfrHrHpCc96GVQ)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT
Hi All,
I've tried (with no luck) to implement a simple mapserver app. using frames, but since I am a novice in Javascript, I need your help.
I have a launching app called demo_init.html that contains -