[Mapserver-users] RE: Filtering shapes?

Ethan Alpert ealpert at digitalglobe.com
Tue May 11 20:12:21 EDT 2004


This is a multi-part message in MIME format.

------_=_NextPart_001_01C437B5.CB9F6AC7
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Ok I figured it out.
=20
With postgis I was using a FILTER with quotes but the snap filter
requires using ('s.
=20
So my FILTER line looks like this now:
=20
FILTER ([bestcloudc] < .1 and [bestimageq] > 70)
=20
instead of:
=20
FILTER "bestcloudcover < .1 and bestimagequality > 70"
=20
The 10 character limit for attributes threw me for a while too.
=20
Thanks,
=20
-e

	-----Original Message-----
	From: Ethan Alpert=20
	Sent: Tuesday, May 11, 2004 4:49 PM
	To: mapserver-users at lists.gis.umn.edu
	Subject: Filtering shapes?
=09
=09
	Is there a way to filter snapes based on attributes?
	=20
	I have a shape file with each shape having a date and I want to
display only shapes within a certain date range. I used the FILTER layer
parameter when I was using postgis (which I can't do anymore because I
can't do a distinct select). Now I'm using a shape file.
	=20
	Thanks,
	=20
	-e


------_=_NextPart_001_01C437B5.CB9F6AC7
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =
size=3D2>Ok I=20
figured it out.</FONT></SPAN></DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =
size=3D2>With=20
postgis I was using a FILTER with quotes but the snap filter requires =
using=20
('s.</FONT></SPAN></DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =
size=3D2>So my=20
FILTER line looks like this now:</FONT></SPAN></DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =
size=3D2>FILTER=20
([bestcloudc] &lt; .1 and [bestimageq] &gt; 70)</FONT></SPAN></DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =

size=3D2>instead of:</FONT></SPAN></DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =
size=3D2>FILTER=20
"bestcloudcover &lt; .1 and bestimagequality &gt; =
70"</FONT></SPAN></DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =
size=3D2>The 10=20
character limit for attributes threw me for a while =
too.</FONT></SPAN></DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =

size=3D2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D395330900-12052004><FONT face=3DArial color=3D#0000ff =

size=3D2>-e</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> =
Ethan Alpert=20
  <BR><B>Sent:</B> Tuesday, May 11, 2004 4:49 PM<BR><B>To:</B>=20
  mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B> Filtering=20
  shapes?<BR><BR></FONT></DIV>
  <DIV><SPAN class=3D267594522-11052004><FONT face=3DArial size=3D2>Is =
there a way to=20
  filter snapes based on attributes?</FONT></SPAN></DIV>
  <DIV><SPAN class=3D267594522-11052004><FONT face=3DArial=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D267594522-11052004><FONT face=3DArial size=3D2>I =
have a shape=20
  file with each shape having a date and I want to display only shapes =
within a=20
  certain date range. I used the FILTER layer parameter when I was using =
postgis=20
  (which I can't do anymore because I can't do a distinct select). Now =
I'm using=20
  a shape file.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D267594522-11052004><FONT face=3DArial=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D267594522-11052004><FONT face=3DArial=20
  size=3D2>Thanks,</FONT></SPAN></DIV>
  <DIV><SPAN class=3D267594522-11052004><FONT face=3DArial=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D267594522-11052004><FONT face=3DArial=20
  size=3D2>-e</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>
=00
------_=_NextPart_001_01C437B5.CB9F6AC7--



More information about the mapserver-users mailing list