[Mapserver-users] query result for a point

nida Khan nida at webstar.co.uk
Mon Jan 20 04:40:02 PST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0172_01C2C081.0D6A9C40
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Calin,

Thanx for your reply,
I tried tolerance 50  but still the same thing, query works only on =
polygon.
I also tried by plotting only points on the map, only one layer that =
means. :( still no luck.

here is def. of my layer in map file

# to disply postcode on map
LAYER # start of the "points" layer object
  CONNECTIONTYPE postgis
  NAME "points"
  CONNECTION "host=3D34343 port=3D5432 user=3Dteest password=3Dtest =
dbname=3Dtest"
  DATA "the_geom from points"
  STATUS ON
  TYPE POINT
  METADATA=20
    "DESCRIPTION"   "DISTRICT"
    "RESULT_FIELDS" "region"
  END
  CLASS
    NAME "points"
    COLOR 0 0 0
    #OUTLINECOLOR 255 89 89
    #SYMBOL 'circle'
    SYMBOL 7
    SIZE 8
  END # end of class object
  TOLERANCE 50
END # end of layer object

Many Thanks
Nida.

  ----- Original Message -----=20
  From: Calin D. NITU=20
  To: nida Khan=20
  Sent: Monday, January 20, 2003 12:19 PM
  Subject: Re: [Mapserver-users] query result for a point


  Hi Nida,

  Try to use the TOLERANCE ... I set it to 50 pixels  (TOLERANCE 50) and =
the query works fine...

  Calin
    ----- Original Message -----=20
    From: nida Khan=20
    To: Mapserver-users at lists.gis.umn.edu=20
    Sent: Monday, January 20, 2003 10:58 AM
    Subject: [Mapserver-users] query result for a point


    Hi List,

    I have a map file with some layers.=20
    My query option works fine with all the polygon layers but it does =
not work for point.

    For those points which are ploted on top of polygon, query display =
the polygon details,
    and for the points outside the polygon, query display "no result =
found".

    points layers is the top layer, so I dont understand why its =
querying the ploygon layer instead of points?

    I really appreciate any input,
    Many Thanks
    Nida.


------=_NextPart_000_0172_01C2C081.0D6A9C40
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi Calin,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Thanx for your reply,</FONT></DIV>
<DIV><FONT size=3D2>I tried tolerance 50  but still the same thing, =
query=20
works only on polygon.</FONT></DIV>
<DIV><FONT size=3D2>I also tried by plotting only points on the map, =
only one=20
layer that means. :( still no luck.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>here is def. of my layer in map file</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2># to disply postcode on map<BR></FONT><FONT =
size=3D2>LAYER #=20
start of the "points" layer object<BR>  CONNECTIONTYPE =
postgis<BR> =20
NAME "points"<BR>  CONNECTION "host=3D34343 port=3D5432 =
user=3Dteest=20
password=3Dtest dbname=3Dtest"<BR>  DATA "the_geom from =
points"<BR> =20
STATUS ON<BR>  TYPE POINT<BR>  METADATA <BR>    =

"DESCRIPTION"   "DISTRICT"<BR>    =
"RESULT_FIELDS"=20
"region"<BR>  END<BR>  CLASS<BR>    NAME=20
"points"<BR>    COLOR 0 0 0<BR>    =
#OUTLINECOLOR=20
255 89 89<BR>    #SYMBOL 'circle'<BR>    =
SYMBOL=20
7<BR>    SIZE 8<BR>  END # end of class =
object<BR> =20
TOLERANCE 50<BR>END # end of layer object</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Many Thanks</FONT></DIV>
<DIV><FONT size=3D2>Nida.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dcalin at internetgids.be =
href=3D"mailto:calin at internetgids.be">Calin D.=20
  NITU</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dnida at webstar.co.uk=20
  href=3D"mailto:nida at webstar.co.uk">nida Khan</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, January 20, 2003 =
12:19=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [Mapserver-users] =
query=20
  result for a point</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hi Nida,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
  <DIV><FONT face=3DArial size=3D2>Try to use the TOLERANCE ... I set it =
to=20
  50 pixels  (TOLERANCE 50) and the query works =
fine...</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
  <DIV><FONT face=3DArial size=3D2>Calin</FONT></DIV>
  <BLOCKQUOTE dir=3Dltr=20
  style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV=20
    style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
    <A title=3Dnida at webstar.co.uk =
href=3D"mailto:nida at webstar.co.uk">nida Khan</A>=20
    </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
    title=3DMapserver-users at lists.gis.umn.edu=20
    =
href=3D"mailto:Mapserver-users at lists.gis.umn.edu">Mapserver-users at lists.g=
is.umn.edu</A>=20
    </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, January 20, =
2003 10:58=20
    AM</DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Mapserver-users] =
query result=20
    for a point</DIV>
    <DIV><BR></DIV>
    <DIV><FONT size=3D2>Hi List,</FONT></DIV>
    <DIV><FONT size=3D2></FONT> </DIV>
    <DIV><FONT size=3D2>I have a map file with some layers. =
</FONT></DIV>
    <DIV><FONT size=3D2>My query option works fine with all the polygon =
layers but=20
    it does not work for point.</FONT></DIV>
    <DIV><FONT size=3D2></FONT> </DIV>
    <DIV><FONT size=3D2>For those points which are ploted on top of =
polygon,=20
    query display the polygon details,</FONT></DIV>
    <DIV><FONT size=3D2>and for the points outside the polygon, =
query display=20
    "no result found".</FONT></DIV>
    <DIV><FONT size=3D2></FONT> </DIV>
    <DIV><FONT size=3D2>points layers is the top layer, so I dont =
understand why=20
    its querying the ploygon layer instead of points?</FONT></DIV>
    <DIV><FONT size=3D2></FONT> </DIV>
    <DIV><FONT size=3D2>I really appreciate any input,</FONT></DIV>
    <DIV><FONT size=3D2>Many Thanks</FONT></DIV>
    <DIV><FONT size=3D2>Nida.</FONT></DIV>
    <DIV><FONT =
size=3D2></FONT> </DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0172_01C2C081.0D6A9C40--




More information about the MapServer-users mailing list