Display query results
bertha amalia serrato de la cruz
bertha_bonita at yahoo.com
Tue Sep 26 12:13:18 PDT 2000
Hi list
when i run mapserver, i obtain certain points on a
layer, but when i want obtain information about one
specific point, give me a error..
msQueryUsingPoint():Search returned no result. No
matching record(s) found.
but in others points, of the same layer, i reallly can
obtain information, that''s works good!, i don't
understand what's appening..!!!...
in fact, i changed the TOLERANCE, but not is the
solution.Neither is the EXTENT, because the point that
i have is in northwest of Mexico.
Other question, i had this path.!
SHAPEPATH "/home/httpd/html/geologia/prueba"
and all worked well, but, i changed the files of
directory, and done the changes correctly, but i can't
display the layers ..!! say me can't found them!. I
don't understand, only change the directories name,
then return at the same name, but neither works!..
somebody can give an advice please??..
Thanks!
this is my file.map
#
# Start of map file
#
NAME DEMO
STATUS ON
SIZE 600 600 #size in pixels of the image
SHADESET /home/httpd/html/geologia/symbols/shade.sym
MARKERSET /home/httpd/html/geologia/symbols/marker.sym
LINESET /home/httpd/html/geologia/symbols/line.sym
EXTENT -118.5 12.25 -85.44 33
UNITS DD #Decimal Degrees
# de donde va a jalar los datos, shx,shp,dbf
SHAPEPATH "/home/httpd/html/geologia/prueba"
IMAGECOLOR 255 255 255
#
# Start of web interface definition
#
WEB
HEADER /home/httpd/html/geologia/geo_header.html
TEMPLATE /home/httpd/html/geologia/geo.html
MINSCALE 100000
MAXSCALE 10000000
IMAGEPATH "/home/httpd/html/geologia/tmp/"
IMAGEURL "http://pc-simac.cicese.mx/geologia/tmp/"
END
#
# Start of reference map
#
REFERENCE
IMAGE /home/httpd/html/geologia/graphics/Mex_Ref.gif
EXTENT -118.5 12.25 -85.44 33
STATUS ON
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END
#
# Start of legend
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS ON
END
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE SMALL
END
SIZE 350 5
COLOR 255 255 255
BACKGROUNDCOLOR 0 0 0
OUTLINECOLOR 0 0 0
UNITS MILES
INTERVALS 5
STATUS ON
END
#
# Start of layer definitions
#
LAYER
NAME MexicoMdt2
TYPE RASTER
STATUS ON
DATA
/home/httpd/html/geologia/graphics/MexicoMDT2.tif
# OFFSITE 0
END
LAYER
NAME states
TYPE POLYGON
STATUS ON
DATA states
TOLERANCE 5
CLASS
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 248 248 95
END
QUERY
TEMPLATE states.html
END
END
LAYER
NAME roads
TYPE POLYLINE
STATUS ON #DEFAULT
DATA roads
CLASS
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 255 0 0
END
END
LAYER
NAME drainage
TYPE LINE
STATUS ON #DEFAULT
DATA drainage
CLASS
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 0 0 255
END
END
LAYER
NAME adamellite
TYPE POINT #ANNOTATION
STATUS ON
DATA /home/httpd/html/geologia/geocronos/adamellite
CLASS
SIZE 5
COLOR 45 0 0
SYMBOL 4
LABEL
BACKGROUNDCOLOR 0 0 255
COLOR 30 94 94
TYPE BITMAP
#JUSTIFY CENTER
SIZE GIANT
POSITION AUTO
WRAP " "
END # Label
END #class
END #layer
LAYER
NAME basalt
TYPE POINT #ANNOTATION
STATUS ON
DATA
/home/httpd/html/geologia/geocronos/Basalt/basalt
TOLERANCE 20
CLASS
NAME "basalt"
SIZE 8
COLOR 0 255 0
SYMBOL 4
END #class
QUERY
TEMPLATE basalt.html
END
END #layer basalt
LAYER
NAME granodiorite
TYPE POINT #ANNOTATION
STATUS ON
DATA
/home/httpd/html/geologia/geocronos/Basalt/granodiorite
TOLERANCE 20
CLASS
NAME "granodiorite"
SIZE 8
COLOR 255 0 0
SYMBOL 4
END #class
QUERY
TEMPLATE granodiorite.html
END
END #layer granodiorite
LAYER
NAME cities
TYPE ANNOTATION
STATUS ON
DATA cities
TOLERANCE 10
LABELITEM "name"
CLASS
SIZE 8
COLOR 0 0 255
SYMBOL 6
LABEL
BACKGROUNDCOLOR 200 255 255
COLOR 30 94 94 # color del texto
FONT COMIC_SANS
TYPE BITMAP
SIZE GIANT
POSITION AUTO
WRAP " "
END # Label
END # Class
QUERY
TEMPLATE cities.html
END # Query
END # Layer
END # Map File
=====
*--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Lic. Ciencias Computacionales Bertha A. Serrato
bserrato at cicese.mx
CICESE,División de Ciencias de la Tierra.
Ensenada, B.C.
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
More information about the MapServer-users
mailing list