[Qgis-us-user] Capturing two records in a shape file
Keith Jenkins
kgj2 at cornell.edu
Mon Oct 5 08:05:37 PDT 2020
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
More information about the Qgis-us-user
mailing list