Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [wildcard]

A wildcard character is a character that can substitute for one or more other characters.

1
vote
1answer
19 views

Using a wildcard in an elif statement in pyscript…?

I’m trying label up a blank field with ‘yes’ or ‘no’ to the presence of names with either the word ‘Estuary’, ‘Loch’, or ‘Firth’ using * as a wildcard, in Field Calculator. I think I'm getting mixed ...
2
votes
1answer
50 views

Parsing for numeric and character wildcards in a QGIS query

In an attribute table with a land use shapefile in my QGIS project there are complex combinations of numeric and alphabetic character. I wish to filter for a simple combination of numeric wildcards ...
1
vote
1answer
36 views

Reclassifying field using Python wildcard string search?

I have a point layer with 900K Tree Point records. In that layer I have field (d_Species) that contains the tree species of each record. I've created a field (SpecieValu) to assign a value (0-3) for ...
0
votes
2answers
141 views

Using wildcard within ArcGIS ModelBuilder to select raster files?

I already checked (almost) all other related topics I was not able to figure out how to solve my problem. I want to process certain rasters in many different subfolders. Within these folders I have ...
0
votes
1answer
69 views

Wildcard, number of characters (arcpy) [closed]

Is there any way to create a list based on the number of characters of the files? My current list goes like that rasterList = arcpy.ListRasters("*speed*","TIF") My files are speed01 speed02 ..... ...
2
votes
1answer
83 views

Modelbuilder - iterate consecutive workspaces and select specific rasters from each

This is probably easiest explained with a picture, I'm trying to iteratively perform a calculation using specific rasters from each two consecutive folders in a folder. For example from above picture,...
3
votes
2answers
179 views

Using wildcard argument with ArcPy?

I have a python code I'm running in ArcGIS 10.6 that replaces the data source path of all layers in the mxd with a new path. I'm trying to use a wildcard for the current workspace path as many layers ...
2
votes
1answer
396 views

Documentation on wildcard syntax, such as for use in arcpy.ListFeatureClasses()?

I was wondering if anyone knew where I could find some documentation on proper syntax for use of wildcards in arcpy, such as with the ListFeatureClasses function? I have been unable to locate any ...
4
votes
1answer
209 views

Iterate over feature classes with multiple wildcards

Is there a way how to iterate over feature classes in Model Builder in ArcGIS 10.3 using a number of different wildcards? The wildcards I want to use are strings in the middle of the feature class ...
1
vote
1answer
180 views

Using wildcard to select field by suffix and do a condition (endswith)

With this validation I get the fields from my active Layer and put into the parameter after select the layer if self.params[0].value: self.params[1].filter.list = [f.name for f in arcpy.ListFields(...
2
votes
1answer
141 views

Wildcard for field in arcpy.GetParameterAsText

I have this parameters for my python script: import arcpy Layer1 = arcpy.GetParameterAsText(0) Tabela1 = arcpy.GetParameterAsText(1) Estado = arcpy.GetParameterAsText(2) Ano = arcpy....
1
vote
1answer
74 views

Using wildcard condition to find mean value from table in ArcPy?

I have a feature class with 20 fields and 13 of them have datas from year 2003 to 2015. I create a new field named 'mean' which will calculate the mean value only for the values from 2003 to 2015. All ...
0
votes
0answers
570 views

How to use CQL_FILTER as URL encoded parameter to compare a field containing numbers

I want to apply the CQL_FILTER parameter as an URL parameter in order to filter a field containing numbers (zip codes) starting with 79 (using 79% Wildcard) for instance. So I'm using this CQL_FILTER:...
0
votes
2answers
72 views

Monthly statistics based on raster file name

I have a raster of a national park in Norway showing the temperature every day between the 1st of November 1999 and the 31st March 2015. I have created booleon images showing which pixels are above ...
3
votes
0answers
68 views

Comparing columns in ArcMap with wildcard statement? [closed]

I need to compare a street centerline name column to a parcel centroid column that holds the street address. I would like to use a wildcard search so that I can match them by the street name despite ...
3
votes
1answer
598 views

Using wildcard for field names of ArcPy Search Cursor?

How would you wildcard the field_names for a SearchCursor so that it only searched through rows for columns in a table that begin with the word "Layer"? For example: FCList = [] FCS = [u'Building', u'...
5
votes
1answer
2k views

Selection by attribute string with wildcard as part of name in ArcGIS Desktop?

I have an attribute field in my file geodatabase (GDB) where I'm trying to select all records that contain an underbar in the string field. The issue is that the underbar is considered a SQL wildcard ...
2
votes
1answer
92 views

Using wild cards in GRASS to remove files

I have a bunch of files on a GRASS location, all named temp_something, that I want to delete. I tried to use the g.remove tool using the multiple option and typing temp* in, but it doesn't work out, ...
3
votes
1answer
492 views

Iterating rasters in ModelBuilder - wildcard does not seem to work?

I've got some problem with the model below. I want to extract rasters from sde geodatabase, use one parameter from Copy Raster, and then export it to specified folder with preserved names as an ...
2
votes
1answer
445 views

Combining wildcard command along with %s in where clause statement for ArcPy?

I am trying to write a script where the user can search for a five digit zipcode using an input statement and a search cursor. The zipcodes in the file though are nine characters long (i.e. xxxxx-xxxx)...
0
votes
1answer
8k views

How to use wildcards for characters inside the name [closed]

I have shapefiles in that form RCs4s3s2c10_S2C10 RCs4s3s2c20_S2C20 RCs4s3s2c30_S2C30 RCs4s3s2c40_S2C40 RCs4s3s2c50_S2C50 RCs4s3s2c60_S2C60 RCs4s3s2cb_S2CB RCs4s3s2c10_1_S2C10 RCs4s3s2c20_1_S2C20 ...
-1
votes
1answer
1k views

How to use a wildcard for a field to sort many shp

I want to use a wildcard for a field so as to sort a group of shapefiles. All of them have the same columns but there is one column in each of them with only the first 4 characters common. Is ...
1
vote
2answers
316 views

Merging raster data in QGIS using wildcards

I have a problem merging raster data sets in QGIS, and I have searched various forums, but have not found a solution yet. An "ordinary" merge, for example merging the raster files ...
1
vote
2answers
630 views

Using wildcard to represent specific number of characters in ArcPy?

I have a bunch of feature classes that are labeled in this pattern CL25_E6_5_4_3 CL266_E6_5_4 CL266_E6_5_4_2 CL4_E6_5 I want to make a list in ArcPy that contains all feature classes with the ...
10
votes
2answers
653 views

Using wildcards for column headers in QGIS Field Calculator?

I know you can use wildcards for fields like so (in the Field Calculator): case when "column" ILIKE '%example%' then 1 else 0 end Can you do something similar for the column headers themselves? I ...
11
votes
3answers
8k views

Using multiple wildcard parameters with arcpy.ListFeatureClasses

I know there has to be a way to do this but I'm having trouble figuring out how to do so. I would like to create a list of feature classes to perform operations on however, I want to have the list ...
0
votes
1answer
927 views

How do I use wildcards to work around the GDAL character limit?

I am attempting to use the 'Merge' & 'Create VRT' tools in QGIS 2.0 on a folder with 3000+ raster tiles in. However whenever I try to perform this operation the following error appears: 'The ...
2
votes
1answer
5k views

CQL_FILTER not liking '%' wildcards

I am setting up a query against a layer on my GeoServer instance. My query string can become quite complex, and some statements require using multiple '%' wildcards. For starter's here's an example: ...
3
votes
1answer
2k views

Using multiple wildcards within iterator of ArcGIS ModelBuilder?

I would like to know if it is possible to use multiple wildcards to select specific shapefiles when using the Iterate Feature Classes tool in ArcGIS ModelBuilder. I use this to select all shapes ...