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 [default-value]

The tag has no usage guidance.

8
votes
1answer
70 views

QGIS 3 : how to set the QGIS 3 to “show the feature count” all time when a layer is loaded?

I know that i can right click the layer and check the "show feature" option but is it possible to show enable this function by default when any layer is loaded ? I know that we can set the project. I ...
1
vote
1answer
39 views

Default expression won't write to database

Made this expression and put it in the defaults value box.: CASE ---cardinal WHEN ("CATCAM" = '1')THEN'2,6' WHEN ("CATCAM" = '2')THEN'2,6,2' WHEN ("CATCAM" = '3')THEN'6,2' WHEN ("CATCAM" = '4')THEN'...
2
votes
0answers
49 views

Weather data as attribute value in QGIS

I'd like to define the default value for a field in QGIS using OpenWeather API request. We use QField for outdoor data collecting, and some of the actual weather conditions are important for us. I've ...
1
vote
1answer
49 views

How to get features of another point layer when geomequals ? (Using Default Values in Attributes Form Qgis 3.2.1) [closed]

I have 2 different point layers with attributes fields as shown in the picture below. They both have a different amount of features. Now i want that all features of layer B gets filled with some ...
1
vote
0answers
38 views

How to set a default attribute value based on the feature being created

This question expands on, and updates for QGIS 3, the answers found here. I have a layer with attributes called "Name" and "Label". I would like to set to default value of "Label" to be the same as ...
1
vote
1answer
30 views

Use previous entry as default in attribute table

I have a vector layer that I add observations to by identifying features in georeferenced rasters (images). One of the attributes I want to assign to the feature is the image name (which I currently ...
3
votes
0answers
167 views

Change default label font for styling

Where can I change the default labeling font "MS Shell Dlg 2" to a different one? I don't want to change the default layout font (Options --> Generel Settings) Maybe there is a solution to use the ...
1
vote
1answer
23 views

ArcPad Studio default values only show up in ArcPad when I make new points

I am using ArcPad to do a habitat inventory (default value= "N/A") and invasive species survey (default value= "Absent") on a grid of preset points (the points are a shapefile). The default values ...
-1
votes
1answer
1k views

Subtypes and default values in ArcGIS Online

I am trying to create subtypes with default values for ArcGIS Online. So far, I've not gotten success when published to ArcGIS Online. Is it true to assume that ArcGIS Online doesn't support subtypes ...
8
votes
3answers
3k views

How to set a default value for attributes in shapefiles?

In QGIS 2.14.6 I would like to define a default value for an attribute in a shapefile (or spatialite layer as well) which is applied if the user doesn't explicitely sets the value. Is there a way to ...
0
votes
0answers
655 views

Maintaining default value for fields in ArcGIS online map / feature service

I have an enterprise geodatabase within which there are several feature classes that contain subtypes and domains. A web map has been created from this geodatabase on ArcGIS Online and it is used for ...
2
votes
1answer
343 views

QGIS geoprocessing scripts, default values for field names

In QGIS geoprocessing scripts, default values must be provided for input numbers and strings, according to http://docs.qgis.org/2.8/en/docs/user_manual/processing/console.html#creating-scripts-and-...
3
votes
2answers
842 views

How to create a QgsFeature with default attributes?

I have a polygon layer loaded from POSTGIS database. This layer has a default value for the first column. I can create a new feature set that attribute to some predefined value with newFeature = ...
12
votes
2answers
2k views

Setting a default value in a QGIS field

I would like to add in a layer's field a default value. I mean, every time a new feature is created, that field would be automatically filled with the default value. In my case the default value ...
2
votes
1answer
312 views

Insert (or Update) Cursor setting value to None not honored when field has a default value

To set a field to null, the InsertCursor or UpdateCursor is setting the value to None. Here is a sample for the UpdateCursor: with arcpy.da.UpdateCursor(test_fc, ['SERVICEINDICATOR'], """"OBJECTID" =...
1
vote
1answer
276 views

NDVI error in ERDAS

I have created a NDVI image from Landsat 7 data using ERDAS (veg_NDVI.gmd). This model was already in ERDAS 9.3. After creation the final output visually highlighting vegetative areas but the value ...
2
votes
2answers
532 views

Assigning Default Value Using ModelBuilder?

Task: add several new fields to a feature class table and assign a default value to one of the fields. Software/Environment: Using ArcMap 10.2 (Advanced License) and Python 2.7. Data is stored in ...
2
votes
1answer
2k views

Assignment of defaults to field not working

I am using ArcGIS 10.2.2 for Desktop. I have assigned default values to some fields in a feature class, which is sitting in a file geodatabase. I used the "Assign Default To Field Tool", which ...
3
votes
2answers
584 views

Remove all default values on multiple feature classes

I would like to remove default values from all fields used by all feature classes in an SDE geodatabase. I do not see a geoprocess for removing the default value, only setting it. So I am trying to ...