Tag Info

Hot answers tagged

8

You can use this command to replace all comas in the fields of your Species column with spaces: regexp_replace( "Species", ',', ' ' ) In this post answered by Nathan, the regex_replace function is described by : regexp_replace(string,regex,after) So in your case: 'string' is your column (species) 'regex' is the character you want changed (coma) ...


5

You can take the layer you created for the first client, save it as a different-named shapefile, and then delete all the features in it.


5

You can create a shapefile layer with your generic list of attribute fields and simply duplicate this layer within QGIS and Save as... another shapefile (or copy/paste the physical files such as .shp, .dbf etc). Then also save a generic style file and use these when dealing with clients. So basically, you have a shapefile "template" to work with.


4

You can do it with ogr2ogr at the command line too by using the -where flag. ogr2ogr -f "ESRI Shapefile" -where "FID < 0" output_template.shp input.shp What this does is execute a SQL where query and selects those features with a FID less than 0. None should exist because FID's usually don't have a negative or below zero value, so no new features are ...


3

It sounds like you want to associate a photo with a vector data set, such as a point or polygon, which could be accessed through a pop-up window. Although a photograph is indeed a raster, it sounds like you may be confusing raster data type with linking to a photograph. In ArcGIS the latter can be achieved in a couple ways: (1) If you are using a shape or ...


3

Pieside's answer gives you the straightforward way of doing it. An alternative you may wish to consider is to use the 'Statistics by categories' tool in the Processing toolbox (just open the Processing toolbox and type statistics in the search bar and you'll find it. This tool creates a table of basic statistics (min. mean, max, stdev, count) in one field ...


2

In the menu, click on Vector->Analysis Tools->Basics statistics. See the end of: http://www.qgistutorials.com/en/docs/calculating_line_lengths.html.


2

You can rt click on the shapefile in arcmap and click export data, then you can choose the same reference system or the same as your data frame. Give a new name and at the bottom drop down menu make sure to choose shapefile. You can also select certain ones with the selection tool. Those highlight then rt. click and export data and only those selected ...


2

First you will need an iterator to go through your shape files, there are two methods I employ: Method One: a folder full of shape files: import arcpy, sys InF = sys.argv[1] arcpy.env.workspace=InF for fc in arcpy.ListFeatureClasses(): Method Two: a whole tree full of shape files: import sys, os, arcpy InFolder = sys.argv[1] for (path, dirs, files) ...


2

It's not currently possible - attribute tables in print composer only support a single row of text. See http://hub.qgis.org/issues/10273 and http://hub.qgis.org/issues/8006


1

As @ndawson said right now it is not possible, as a workaround I usually use the wordwrap function (you can find it in the expression engine) to wrap the text and I adjust it to fit by playing around the appearance groupbox like cell margins. I get as result something like this: In my case I used wordwrap("ERROR", 25), it adds a \n each 25 characters.


1

If you mean update a field in multiple selected records (rows), you can do that in Field Calculator. If you have selected records, Field Calculator will work on just those records. To keep the existing values and add '.bus 332', in the MYFIELD = box, you can use something like MYFIELD & ".bus 332", where MYFIELD is your field name. Note, this works on ...


1

Here, "Fire.isochrones_2002_BigDesert_21122002.OBJECTID" is interpreted as a single field name. What are the different attributes? : Fire, isochrones_2002, OBJECTID? The problem is probably coming from the dots in the field name.


1

I am assuming that you have a Standard or Advanced license which will be needed to update the relationship feature class used by attachments. There is a Help page entitled Working with the Attachments geoprocessing tools which says: The geodatabase attachment tools offer a flexible environment for batch processing of attachments. The attachment ...


1

if anyone is having any difficulty finding this, for me it was located here.


1

Before anything else, one must try to understand why ArcGIS imports a field as a string type instead of a numerical / double data type. I found that even if your cell (in Excel) is blank, if it has "spaces" inside (like when you press the spacebar), ArcGIS will interpret these as characters. If you remove them, you will see that they will now register as ...


1

One approach I have not seen posted yet is using a buffer of your circles and using either a positve value for the buffer radius if you want the circle to be larger or a negative value for the buffer radius if you want the circle smaller.



Only top voted, non community-wiki answers of a minimum length are eligible