[mapserver-users] more query questions

Grant Marblestone Grant Marblestone <grantm@ATSER.com>
Mon, 11 Feb 2002 09:39:14 -0600


This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C1B2DF.F793BC30
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_0006_01C1B2DF.F793BC30"


------=_NextPart_001_0006_01C1B2DF.F793BC30
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

http://66.1.116.66:8080/aweb/gmap_permits/htdocs/
<http://66.1.116.66:8080/aweb/gmap_permits/htdocs/>=20
=20
Howdy,
=20
This is my map page and i wish to have some queries on the dbf.
=20
One query is the click a point on map..
=20
The other would be to search the map via a form textfield.
=20
How does one do this?  Is there any laymens documentation out there>?
=20
Attached is my map file.
=20
Thanks so much,
=20
Grant Marblestone
ATSER Systems

------=_NextPart_001_0006_01C1B2DF.F793BC30
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>

<META content=3D"MSHTML 6.00.2712.300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://66.1.116.66:8080/aweb/gmap_permits/htdocs/">http://66.1.1=
16.66:8080/aweb/gmap_permits/htdocs/</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Howdy,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This is my map page and i wish to have =
some queries=20
on the dbf.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>One query is the click a point on=20
map..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The other would be to search the map =
via a form=20
textfield.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>How does one do this?&nbsp; Is there =
any laymens=20
documentation out there&gt;?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Attached is my map file.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks so much,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Grant Marblestone</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ATSER =
Systems</FONT></DIV></BODY></HTML>

------=_NextPart_001_0006_01C1B2DF.F793BC30--

------=_NextPart_000_0005_01C1B2DF.F793BC30
Content-Type: application/octet-stream;
	name="gmap_permits.map"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="gmap_permits.map"

NAME DEMO
STATUS ON
SIZE 600 450

EXTENT 2929104.53692815 534387.296051676 3296713.81437212 =
864213.337652181 # ROADHARR
SYMBOLSET "C:\phpdev\www\aweb\symbols\symbols.txt"
UNITS METERS
SHAPEPATH "C:\phpdev\www\aweb\gmap_permits\data"
IMAGECOLOR 255 255 255
FONTSET "c:\phpdev\www\aweb\gmap_permits\etc\fonts.txt"


#
# Start of web interface definition
#
WEB
  #MINSCALE 2000000
  #MAXSCALE 50000000
  #
  # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the =
root
  # of the drive where the .MAP file resides.
  #
  IMAGEPATH "c:\phpdev\www\tmp\"
  IMAGEURL "/tmp/"
  LOG "c:\phpdev\www\aweb\gmap_permits\gmap.log"
END



#set map output to projection required
#note that extents need to be set to the same as the output map =
projection
# not needed here as the map is the same as the output map projection =
required
# 4204: texas south central: nad27
PROJECTION
	proj=3Dlcc
	lat_1=3D28.383333333
	lat_2=3D30.283333333
	lat_0=3D27.833333333
	lon_0=3D-99.000000000
	x_0=3D609601.219
	y_0=3D0.000
	ellps=3Dclrk66
	datum=3DNAD27
	to_meter=3D0.3048006096
END




#
# Start of reference map
#
REFERENCE
   IMAGE =
"c:\phpdev\www\aweb\gmap_permits\htdocs\images\permits_keymap.gif"
   EXTENT 2929104.53692815 534387.296051676 3296713.81437212 =
864213.337652181
   STATUS ON
  COLOR -1 -1 -1
  OUTLINECOLOR 255 0 0
  SIZE 120 90
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 150 5
  COLOR 255 255 255
  BACKGROUNDCOLOR 0 0 0
  OUTLINECOLOR 0 0 0
  UNITS miles
  INTERVALS 2
  STATUS ON
END


QUERYMAP
  STYLE HILITE
  COLOR 255 0 0
END


#
# Start of layer definitions
#

# roadharr_orig
    LAYER
      DATA "roadharr_orig"
      NAME "roadharr_orig"
      STATUS ON
      TYPE line
      CLASS
        BACKGROUNDCOLOR 128 128 128
        COLOR 128 128 128
        NAME "roadharr_orig"
        OUTLINECOLOR 0 0 0
      END
  END # roadharr_orig

# councilr
    LAYER
      DATA "councilr"
      NAME "councilr"
      STATUS OFF
      TYPE polygon
      CLASS
        EXPRESSION ('[DISTRICT]' eq 'A')
        BACKGROUNDCOLOR 255 0 0
        COLOR 100 50 100
        NAME "councilr"
        OUTLINECOLOR 0 0 0
      END
      CLASS
	EXPRESSION ('[DISTRICT]' eq 'B')
	BACKGROUNDCOLOR 128 128 255
	COLOR 100 75 150
	NAME "councilr"
	OUTLINECOLOR 0 0 0
      END
      CLASS
	EXPRESSION ('[DISTRICT]' eq 'C')
	BACKGROUNDCOLOR 128 128 255
	COLOR 75 50 200
	NAME "councilr"
	OUTLINECOLOR 0 0 0
      END
      CLASS
	EXPRESSION ('[DISTRICT]' eq 'D')
	BACKGROUNDCOLOR 128 128 255
	COLOR 100 50 50
	NAME "councilr"
	OUTLINECOLOR 0 0 0
      END
      CLASS
	EXPRESSION ('[DISTRICT]' eq 'E')
	BACKGROUNDCOLOR 128 128 255
	COLOR 100 100 75
	NAME "councilr"
	OUTLINECOLOR 0 0 0
      END
      CLASS
	EXPRESSION ('[DISTRICT]' eq 'F')
	BACKGROUNDCOLOR 128 128 255
	COLOR 100 50 125
	NAME "councilr"
	OUTLINECOLOR 0 0 0
      END
      CLASS
	EXPRESSION ('[DISTRICT]' eq 'G')
	BACKGROUNDCOLOR 128 128 255
	COLOR 75 75 175
	NAME "councilr"
	OUTLINECOLOR 0 0 0
      END
      CLASS
	EXPRESSION ('[DISTRICT]' eq 'H')
	BACKGROUNDCOLOR 128 128 255
	COLOR 100 50 225
	NAME "councilr"
	OUTLINECOLOR 0 0 0
      END
      CLASS
	EXPRESSION ('[DISTRICT]' eq 'I')
	BACKGROUNDCOLOR 128 128 255
	COLOR 100 50 25
	NAME "councilr"
	OUTLINECOLOR 0 0 0
      END   =20
  END# councilr
 =20
 =20

# permits
  LAYER
    DATA "permits"
    NAME "Permit"
    STATUS ON
    TYPE POINT

    PROJECTION
    	proj=3Dlatlong
    	datum=3DNAD83
	ellips=3DWGS84
    END

    CLASS
      BACKGROUNDCOLOR 128 128 128
      NAME "permits"
      OUTLINECOLOR 0 255 0
      SYMBOL "circle"
      COLOR 0 0 255
      SIZE 10
    END

  END# permits

#illegal permits
 LAYER
  DATA "permitsRED"
  NAME "permitsRED"
  STATUS ON
  TYPE POINT
 =20
  PROJECTION
    proj=3Dlatlong
    datum=3DNAD83
    ellips=3DWGS84
  END
 =20
  CLASS
   BACKGROUNDCOLOR 128 128 128
   NAME "permitsRED"
   OUTLINECOLOR 0 255 0
   SYMBOL "circle"
   COLOR 255 0 0
   SIZE 10
  END
 =20
 END#illegal permits

LAYER
   NAME "RoadNames"
   TYPE ANNOTATION
   STATUS OFF
   DATA "roadharr_orig"
   LABELITEM "NAME"
   TRANSFORM ON
   CLASSITEM "NAME"
   CLASS
      	NAME "NameOfRoad"
      	#EXPRESSION ([LENGTH] > 700)	# Roads longer then 700
      	SYMBOL 'circle'
	SIZE 0
      	COLOR 255 255 255				# SYMBOL COLOUR
      	LABEL
	FONT fritqat
	TYPE truetype
	COLOR 0 0 0					# TEXT COLOUR
	SIZE 10
        MINFEATURESIZE 20
        MINDISTANCE 20
	OUTLINECOLOR 255 255 255			# TEXT-OUTLINE COLOUR
	#BACKGROUNDCOLOR 0 0 0
	#BACKGROUNDSHADOWCOLOR 0 0 255
	#BACKGROUNDSHADOWSIZE 8 8
	ANGLE AUTO
	POSITION UC
	ANTIALIAS TRUE
	OFFSET 0 0
	BUFFER 1
      END
  END
END

LAYER
   NAME "councilrNames"
   TYPE ANNOTATION
   STATUS OFF
   DATA "councilr"
   LABELITEM "DISTRICT"
   TRANSFORM ON
   CLASSITEM "DISTRICT"
   CLASS
      	NAME "NameOfcouncil"
      	SYMBOL 'circle'
	SIZE 0
      	COLOR 255 0 0				# SYMBOL COLOUR
      	LABEL
	FONT fritqat
	TYPE truetype
	COLOR 255 100 0					# TEXT COLOUR
	SIZE 15
        MINFEATURESIZE 20
        MINDISTANCE 20
	OUTLINECOLOR 100 100 100			# TEXT-OUTLINE COLOUR
	#BACKGROUNDCOLOR 0 0 0
	#BACKGROUNDSHADOWCOLOR 0 0 255
	#BACKGROUNDSHADOWSIZE 8 8
	ANGLE AUTO
	POSITION UC
	ANTIALIAS TRUE
	OFFSET 0 0
	BUFFER 1
      END
  END
END


# DOES NOT WORK ! ! !
LAYER
  NAME "PermitInfo"
  STATUS OFF
  DATA "permits"
  TYPE POINT
  LABELITEM "StreetName"
  CLASSITEM "StreetName"
  CLASS
    #EXPRESSION "test"
    EXPRESSION ([StreetName] eq 'test')
    #EXPRESSION ([POPULATION] !=3D 0)
    #OUTLINECOLOR 255 255 0
    COLOR 225 0 0
    SYMBOL "circle"
    SIZE 400
  END
  CLASS #
    EXPRESSION /./
    OUTLINECOLOR 255 0 0
    COLOR 0 0 255
    SYMBOL "circle"
    SIZE 400
  END
END # annotation




END # Map File

------=_NextPart_000_0005_01C1B2DF.F793BC30--