[mapserver-users] querybypoint in MS 3.5
Mark Giesbrecht
mgiesbrecht at geoarctic.com
Tue Mar 19 13:31:47 PST 2002
Hi All,
Love this Mapserver; coupled with mapscript, this application is
incredible. I'd also like to praise the developers who have made
mapserver/mapscript so great.
On that note, I've been having some problems recently with a cgi-based
point query that used to work with 3.4. I can query a polygon layer,
but when it comes to a point layer, I get the following error:
mapserv(): Web application error. No way to generate a valid map extent
from selected shapes.
As I mentioned before, this works with a polygon layer. Below is my cgi
call using the stock PNG
version of the Windoze binaries; the output for the executable is:
MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ
SUPPORTS=
TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG
INPUT=SHAPEFILE
Any pointers would be greatly appreciated.
CGI call:
http://www/cgi-bin/mapserver/ms35png/mapserv.exe?map=c:/program
files/apache
group/apache/htdocs/clientdemos/eman/eman_mscr.map&layer=Stations&mode=query&imgsize=692+560&img.x=210&img.y=261&imgext=-2980391.5374492323+11401587.175669793+4678530.106513312+5199369.812202809&mapext=shape&map_scalebar_status=ON
Included is the layer from my mapfile
LAYER
NAME 'Stations'
TYPE POINT
STATUS ON
DATA "C:/program files/apache
group/apache/htdocs/clientdemos/eman/data/environment/climate/ga00002d"
TOLERANCE 10
HEADER 'queries/stations-header.htm'
LABELITEM "STATION_ID"
CLASS
TEMPLATE
'http://www/clientdemos/eman/scripts/climatestn.php?station_id=[STATION_ID]'
NAME 'Climate Stations'
COLOR 17 225 132
OUTLINECOLOR 128 128 128
SYMBOL "circle"
SIZE 9
LABEL
ANTIALIAS TRUE
#FORCE TRUE
SIZE 7
COLOR 15 15 15
FONT fritqat
TYPE TRUETYPE
#OUTLINECOLOR 128 128 128 #-1 -1 -1 #255 255 255
POSITION AUTO
END
END # CLASS
END # LAYER
--
Mark Giesbrecht, M.Sc.
GIS Programmer/Analyst
More information about the MapServer-users
mailing list