Tag Info

New answers tagged

1

Do you have the Data Reviewer extension? The Data Reviewer allows you to "Browse" through all features with the simple click of the "Next" button (zooms to both spatial location and attribute table record). There's a lot more functionality to Data Reviewer aside from this (such as flagging errors as "fixed", "marked" etc. and running batch jobs). Just an ...


6

Here is the arcpy version of zoom to next feature. You may run this in your ArcMap python window: mxd = arcpy.mapping.MapDocument("CURRENT") # currently opened map doc df = arcpy.mapping.ListDataFrames(mxd, "Layers") [0] # define layer you want to iterate and zoom on for lyr in arcpy.mapping.ListLayers(mxd): if lyr.name == 'myTOCLayerNameHere': ...


5

First part is the AddIn, the real work is done on a form: Inherits ESRI.ArcGIS.Desktop.AddIns.Button Private pForm As fFeatureInspector Public Shared IsFormLoaded As Boolean = False Public Sub New() End Sub Protected Overrides Sub OnClick() 'My.ArcMap.Application.CurrentTool = Nothing If Not IsFormLoaded Then pForm = New fFeatureInspector ...


1

You create a memory layer without any fields. To set some attributes you need corresponding fields. When creating memory layers you can give field definitions as part of the argument type: self.layer = QgsVectorLayer(self.type+'?field_a:string(20)&field_b:int', self.name, "memory") For your layer to work you have to define the same fields as for the ...


1

In Layer Properties make a click on "Simple Fill" (in the left part). On the right side click the symbol for data defined color and choose Field type: string > color (field in the attribute table). It works in QGIS 2.8.2. But I'm missing the different colors for this layer "buffer" in the map legend.


1

You can use gdal/ogr tool inside your modelbuilder : hope that helps


0

A simple Intersect between the two layers will give you the NTA attributes on each of the points. This assumes you have a one polygon for each point relationship. If a point could fall in more than one polygon (unlikely given your data description), you'd need something different. Also, any points that do not fall in a polygon will be dropped. For other ...


1

Well of course you can... Using the Editor toolbar!


1

But your features are all in the same layer? if yes you can't do a spatial query on the same layer. You need to duplicate the layer. I suggest to do this: layer_1->filter->"isdiscouraged" = 't' copy_of_layer_1->filter-> "roadclass" = 'ramp' Spatial query layer_1 touchs copy_of_layer_1 If you use postgresql and postgis you can do this with just one query ...


3

You can create a Virtual field which updates features automatically based on the expression you insert. So in your case, it would be: $area You will need to create a Project for the shapefile (if you haven't done so already) as virtual fields are stored in the project files (.qgs). Hope this helps!


3

For ArcGIS: I'm not aware of any method to change a field definition or length in place. I would probably look at bringing the shapefiles into a personal-geodatabase, and then edit the field definitions with MS Access. Be careful though, hacking with Access is completely unsupported by Esri (but still very effective when used correctly). For the StationID ...


3

Use this function to return all of the feature classes in the GDB: def listFcsInGDB(): for fds in arcpy.ListDatasets('','feature') + ['']: for fc in arcpy.ListFeatureClasses('','',fds): yield os.path.join(arcpy.env.workspace, fds, fc) Now loop over that function to work with each individual feature class: arcpy.env.workspace = ...


6

It sounds like you want to subset your data and plotting is secondary. Please keep in mind that it is not always necessary to create a new object. If you are only wanting to plot subsets of the data it is far more efficient to take @fdetsch advice and subset in the call to plot. Here are some examples of subseting and plotting sp class data using the meuse ...


1

If you know how to do a cross section with heights (using a DEM raster), then you know how to do it with any other variable. All you need to do is convert your data ( the buildings polygons) in raster using the desired field. And then use it in the profile plugin.


1

A rough and ready approach to this could utilise Excel (or any other spreadsheet package) for the graph component: Create a polygon buffer from a point inside the CBD, when I've done this kind of thing before I've used 100 meter increments; Update the lots data with the buffer value; Define a transect through the city - again, when I've done this before I ...


3

There are two ways (at least) to achieve this: Spatial Join the points to the lines, be sure to specify a distance. Even though you think the points are on the line in fact they're more likely to be just very close. Use Near (advanced license) to get the FID of the line that the point is nearest then attribute join by NEAR_FID and field calculate the ...



Top 50 recent answers are included