[Qgis-us-user] Capturing two records in a shape file

Doug Newcomb gistinker at gmail.com
Tue Oct 6 19:36:57 PDT 2020


If you have multiple zip codes, you can using the include option:
"ZTCA5CE10" in ('zip code 1',zip code 2','zip code 3')

For future reference,
Doug

On Mon, Oct 5, 2020 at 11:05 AM Keith Jenkins <kgj2 at cornell.edu> wrote:

> Hi, Rob.
>
> You'll want to phrase it like this:
> "ZTCA5CE10" = 'zip code 1' OR "ZTCA5CE10" = 'zip code 2'
>
> Also, note that it uses double quotes around the field name, and
> single quotes around the actual values.
>
> Cheers,
> Keith
>
> On Mon, Oct 5, 2020 at 10:58 AM Rob Bacigalupi <rob at missionnorthmi.com>
> wrote:
> >
> > Hi QGIS User Group:
> >
> > I am fairly new to QGIS and have what hopefully is a basic question.
> I’m using a zip code shape file from the US census for the entire US and
> would like to create a new layer with just two zip codes.  When I go into
> properties/control feature symbology/add rule-based layer then go to create
> the filter, that’s where I run into trouble.  I’ve tried creating an
> expression string as follows:
> >
> > “ZTCA5CE10 = “zip code 1” OR “zip code 2”
> >
> > but it only returns the first zip code.
> >
> > Any suggestions?
> >
> > Thanks,
> >
> > Rob
> > _______________________________________________
> > Qgis-us-user mailing list
> > Qgis-us-user at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/qgis-us-user
> _______________________________________________
> Qgis-us-user mailing list
> Qgis-us-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-us-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-us-user/attachments/20201006/aad83d21/attachment.html>


More information about the Qgis-us-user mailing list