# Tag Info

14

Sure it is. Depending on what you need: zoom to whole layer right click on layer in Layers list and first item is "Zoom to layer" zoom to selected feature(s) select feature in map and click on icon "Zoom to selection" in the main toolbar or right click on layer in layers list and choose "Open Attribute Table" (there is also icon in the main toolbar/...

8

The Features tab of the Find tool will do this if you add every feature class in the File Geodatabase to a map. For example, if you are trying to find Afghanistan on a map of the world, you can enter Afghanistan or just Afgh in the Find tool, and you'll get a list of the features from layers in your map that contain that search string in any of ...

7

With a bit of Python, you could search your layer by name, set it as the active layer and make it visible. You can enter the following in the Python Console (from the menubar: Plugins > Python Console or press Ctrl + Alt + P): layer = QgsMapLayerRegistry.instance().mapLayersByName('Layer-Orange')[0] iface.setActiveLayer(layer) iface.legendInterface()....

6

You can try with this expression in the field calculator: regexp_replace( "yourfield", '\\\\n', '-') This sould replace all the \n substrings with -.

5

If you plan to do this often you might be better off doing this as a function so you can reuse it. Open the Field Calculator Click on the Show Codeblock check box Enter the code block included below You can click on the Save button to save the code and load it later on with the Load button Here is a screen capture as an example. It's the same result in ...

5

It sounds like you are after the GoTo XY tool which is on the Tools toolbar: You can use this tool to type in x,y coordinates and navigate to them. The coordinates you enter can be Longitude-Latitude ...

4

Since you mentioned address search, you might be interested in the search plugins using Nominatim to geocode addresses: OSM place search or osmSearch

3

The following should also work with tree: for file in tree -f -i | grep .shp do ogrinfo -ro -so -fields=YES -geom=SUMMARY $file done Depending on your requirements, you may want to redirect the output to a text file. 3 It's an xargs thing, specifically you need to use '-print0' with find and '-n1' with xargs. This worked for me on linux, see if that works for you. find ./* -type f -name \*.shp -print0 | xargs -0 -n1 /bin/GDAL/./ogrinfo.exe -ro -so -fields=YES -geom=SUMMARY$x \${x%.*}

3

There's a workflow that I sometimes use for this, but it's not that straight-forward. Create a point FC and, with the use of F6 manually enter coordinates for the points where you want to extract values from your raster. Run Extract values to Point on your points and raster (requires Spatial Analyst). Extracts the cell values of a raster based on a ...

3

ArcMap is not comparing each geometry with every geometry, just those identified by the spatial index as being "nearby," but that's enough. There does not appear to be any way to control how the program flow operates from outside the tool. I whipped up a shapefile with 100k circles 1.0 degrees in diameter and randomly distributed, snapped to a 0.25 degree ...

3

As stated in the function help, the correct syntax is replace('QGIS SHOULD ROCK','SHOULD','DOES') → 'QGIS DOES ROCK' Note that the function is case senstive so Calle != calle

2

Using e.popup.setContent("content"); Works for me, using Leaflet 0.7.3. Note that setContent() was added sometime in Leaflet 0.7.

2

ESRI are using http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/2 for the States. The code: //create find parameters and define known values findParams = new esri.tasks.FindParameters(); findParams.returnGeometry = true; findParams.layerIds = [0, 1, 2]; findParams.searchFields = ["CITY_NAME", "NAME",...

2

@Aarons' script will work (mostly) but will include non-editable fields (like shape_lengh, shape_area etc..) and will fall over the first time it encounters a Null in a string (text) field but does contain the basics ready to be built upon. This would be my approach: import os, sys, arcpy InLayer = sys.argv[1] # the layer or feature class to update # ...

2

Another option, if you have many lng/lat coordinates to display you may use this method: Open up blank ArcMap and right click on Layers (data frame)>Properties>Coordinate System tab and search/select the WGS 1984 geographic coordinate system. Put all your lng/lat coordintes in two different columns in a spreadsheet or comma delimited text file and then use ...

2

The loop idea by @Joseph is good. I just change the find_layerof your code to a simple layer for layer in QgsMapLayerRegistry.instance().mapLayers().values(): if 'Orange' in layer.name(): iface.setActiveLayer(layer) iface.legendInterface().setLayerVisible(layer, True)

1

You can use python ljust() function to left justify text and fill with what ever characters, in your case a zero. The python expression would be: str(!Block! ).ljust(5,"0") + "-" + str( !Lot!).ljust(5,"0") so if block was 70.10 and Lot was 28.10 this would create 70.10-28.10

1

The following approach iterates through all the fields and converts <Null> to 0: import arcpy fc = r'C:\path\to\your\geodatabase.gdb\test_fc' fields = [x.name for x in arcpy.ListFields(fc)] for f in fields: with arcpy.da.UpdateCursor(fc, f) as cursor: for row in cursor: if row[0] is None: row[0] = 0 ...

1

I think you should try using the Attributes window from the Editor toolbar rather than the Attribute Table window from the layer's context menu. With that you simply: Start Editing Select a set of features Click the Attributes button on the Editor toolbar to open the Attributes window Click on a feature in the top half of the Attributes window to see its ...

1

but how can I Access the map in mapDiv1 or mapDiv2 ? Access can mean many things... If by "access" you mean controlling the map: Normally you don't use the DOM elements for that. You control the map through your (openlayers) map-objects map1 and map2. Examples: var baselayer = new ol.layer.Tile({ source: new ol.source.OSM({ wrapX:false }...

1

There are multiple reason for this problem and here are some tips. If you are using Shape file make sure dbf is encoded in proper encoding i.e. UTF-8 or 1253 and you have install the keyboard language support (Greek) to windows as well. You can find these steps here. http://www.howtogeek.com/howto/12578/add-keyboard-languages-to-xp-vista-and-windows-7/ My ...

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