New answers tagged

0

You are looking for the Multiple Ring Buffer tool. Your input features will be the red light camera points layer, output feature is whatever name you would like. You can input the distances and press the plus button right below to add them to the list. Select meters for buffer unit and a field name that makes sense like "Distance". Then make sure that ...


1

As @Hornbydd mentioned in the a comment to my original post, submodels are the way to go. Once I understood exactly how to nest submodel, it worked like a charm. I am not sure how I didn't learn this before... Anyway, a step by step workaround on how to fix this with submodels can be found here: https://www.youtube.com/watch?v=gpKXve4NxqU This is not my ...


1

It's slightly roundabout, but I've done this in ModelBuilder with success (although I am using the same method to create a constant raster): First, create an empty .dbf (table) in your directory (using ArcCatalog). Next, add a new column and call it 'value' (or whatever metric you are using). Enter however many values you need. The OID column will auto-...


5

You can use Select By Location in Modelbuilder but not the one in Selection menu. Instead go to ArcToolBox - Data Management Tools - Layers and Table Views - Select Layer By Location. Or menu Geoproccessing - Search for Tools and type Select Layer by Location


0

I just ran all three variants. I always combined the same 63 shapefiles. Each shapefile contains around 63000 points created from a RasterToPoint operation. All shapefiles have the same attribute table. The different variants needed the following times to compile: Merge: 13 mins 57 secs Append with TEST: 8 mins 34 secs Append with NO_TEST: 9 mins 12 secs ...


0

so my problem could bes solved reinstalling also background Geoprocessing! now ArcMap and also ArcCatalog can run Python scripts again!


1

Michael's earlier comment did indeed work - (datefield >= '2015-04-15' AND Date <= '2016-04-15' ) OR (datefield >= '2015-04-15' AND Date <= '2016-04-15' ). I just had to restart ArcMap.


4

Right-click on the layer in the Table of Contents -> Data -> Export Data... Make sure Selected features is selected in the Export box and then specify the path you want to save the new layer in.


1

This has a straightforward solution. The below steps are copied directly from the link provided below, and should be applicable to most (if not all) versions of ArcGIS: In ArcMap, select features using any selection method. Right-click the layer that contains the selected features, point to Data > Export Data. Click Export > Selected Features. Make a ...


-1

Function FindLabel ( [NAME], [Label] ) if ( [Label] = 1) then FindLabel =( [NAME]) end if End Function VB parser


0

Your main model running once makes sense as I think the logic is flawed. For Sub mod 5, 4 and 10 - They iterate over a directory looking for B4, B5 and B10 rasters. As a Landsat scene only has 1 B4, B5 and B10 raster you get 1 raster feeding out of these sub-models. Hence the whole main model runs once. I suspect you have a conflict in your sub-models ...


1

It's possible to do without duplicating the layer. In the Classification dialog click on exclusion: Setup the query to exclude all values equal to zero. Then open the Legend tab and select 'Show symbol for excluded data'. Setup symbology for the zero value. Return to Classification and set to Manual with 2 classes ensure 0 as the mid value. Edit the ...


0

Use the keyword BETWEEN to check for date range like this DATE BETWEEN date '2019-04-08 00:00:00' and date '2019-04-17 00:00:00' OR DATE BETWEEN date '2018-04-08 00:00:00' and date '2018-04-17 00:00:00'


0

It seems the answer is very simple. Run the script outside the active map document and use mxd.save() after setting the definition query: import arcpy, os, re from arcpy import env inmxd = r'C:\Temp\Tenure_Shire Notification.mxd' tenID = 'E40/01300' env.workspace = os.path.dirname(inmxd) mxd = arcpy.mapping.MapDocument(inmxd) df = arcpy.mapping....


1

The answer is here! I am also having the same problem and there is an official answer. https://support.esri.com/en/technical-article/000010616


0

Actually despite the edit to my question, further examination of the method described in a comment from @mkennedy led me to try using the same (fully descriptive) geoprocessing environment used when using the the Project Tool from the Projections and Transformations toolbox and the results are AS GOOD AS when using Project. The screenshot shows the ...


2

This is from working code, in this example 'timer save' a window pops up when a time has elapsed reminding the user to save, so I only use OnStartEditing and OnStopEditing events; It is important to note that this occurs in the form load event as there is an attached form: private void TimerSaveForm_Load(object sender, EventArgs e) { vSaveEditsWarn = ...


0

LYR file is NOT data just reference to data and symbology label and scale dependency information. GDAL works great at converting GeoPDF to TIF.and OGR2OGR for GeoPDF to vector GIS file. Why don't you download some basemaps as TPK or TPKX. ESRI even have separate tool for this Tile Package Kreator. I use global mapper with GEOPDF no conversion needed


3

It may be that the intersect tool is splitting the lines as expected. The issue is coming from the type of feature being produced. It looks like the output is a multipart polyline. Which could best be explained as a line having multipart parts (sections) but the geometry of the line is held within one feature or FID. There is a tool in ArcMap called the "...


0

Try using the Append geoprocessing tool. That way you can map the fields which are relevant to the data you really need. Another way is to try the Load Objects tool which you can find in the customized mode.


1

You can set the Extent and Mask environments to match your polygon boundary. Simply select that layer from the dropwdowns when setting the environments or specify the file's path. This way the resulting raster file will match the extent of your boundary and all pixels that fall outside the polygon will be converted to NoData.


-1

You could try to simply wrap those expression in a try-catch block: try{ GeoJsonLayer cul_els = new GeoJsonLayer(map, R.raw.cultural_elements, getApplicationContext()); } catch(Exception e) { e.printStackTrace() }


3

According to ISO 19115 every geographic information and services has its own metadata. It provides information about the identification, the extent, the quality, the spatial and temporal schema, spatial reference, and distribution of digital geographic data. Date and scale are part of the metadata. For the projection/coordinate system it's a part of your ...


0

You have not described your data driven pages set up. I have experienced a similar issue in the past. Just from the info you have it sounds like you might only have one polygon. For each different view that you want you will need to create a unique polygon that becomes the extent for each data driven page. That's just my best guess without seeing your ...


1

If you have an 'Advanced' license of ArcMap you can use the 'Generate Near Table tool' and select the Angle option, from the output table you can then use the 'Select by Attribute tool' to select the angle representing the direction. N = 0 NE = 0.1-89.9 E = 90 SE = 90.1 - 179.9 S = 180 SW = 180.1 - 269.9 W = 270 NW = 270.1 - 359.9


3

The way I would handle this problem would be to generate a new empty field and populate it using the field calculator. This way you will not lose any data and can keep your original data without any modifications to the fields. "New Field" = reclass(!sens!, !S2_adjusted!, !S1_adjusted!) Pre-Logic Script Code: def reclass(a, b, c): if (a) == 'S1': ...


1

You have 11 points and a very flat variogram. This means there appears to be no spatial structure and your data is random noise. Any best prediction at a non-sample location is going to be the sample average. You could modify the variogram binning or variogram parameters and get something with a bit of spatial structure, but that might be more luck than ...


2

Though not a true answer in the frame of the original question that I had, I was able to alter the text of my legend by turning on Text Wrapping (under the layout tab) and playing around with the label width. I did discover also that in order to un-gray-out the preserve aspect ratio radio button, the Fixed Frame radio button must be checked to allow you to ...


0

There are some things that you can do to modify the size, without actually modifying the size. Seeing as you want to retain the elasticity of your legend try these things (Right click legend>properties): In the layout tab, select "Wrap Labels". This may truncate your label text beyond what you're comfortable with. Play around with these values. In the ...


0

A way to approach this issue is the following: Use QGIS'Create Grid tool (Vector ->Research tools) to create a vector file representing the grid of your coarse resolution DEM (in Grid type select rectangular and in Grid extend select the DEM). Use the zonal statistics tool to calculate the mean elevation for each polygon of your grid (use as raster input ...


-1

Redefine projection with Arc Toolbox, under "Projections and Transformations"


2

The Set Null tool takes the following parameters: SetNull (in_conditional_raster, in_false_raster_or_constant, {where_clause}) which are described in the tool's documentation as follows: in_conditional_raster: Input raster representing the true or false result of the desired condition. It can be of integer or floating point type. ...


-1

You need to open the ArcCatalog from the Windows desktop menu, not from the ArcGIS. It will open separate window for ArcCatalog, then you can click the customize button from there.


0

The 2007 Office System Driver is no longer available from the MS link in user1565825's answer. I was able to download it from CNET here. Installing this driver solved the problem in ArcGIS for me ("Class not registered"). I was unable to install the 2010 access driver, as it won't let you install the 32-bit version if you have 64-bit Office installed.


0

We had this issue until we put the template folder at the same hierarchy as the copy to folder. example: Z:\Folder1\Folder2\Folder3\TemplateFolder Z:\Folder1\Folder2\Folder3\CopyFolder


1

You are wrong with your assumptions. Picture below shows streams network, where some of the nodes (that I called Railway Intersections) are labelled by their flow distance to outlet. I created 4 "long rivers" starting at these nodes and ending at common outlet. I split four resulting rivers at the same distance of 3700 m from river start, and remove ...


1

One approach is to resample your second raster (elevation correction) to fit the size of your DEM. Of course, as you are going from a bigger pixel size to a smaller one, you will have repeated values for each original pixel (see picture below). Image taken from Chris Garrard's Geoprocessing with Python On ArcGIS, you can use the Resample tool and use your ...


2

After more extensive search, especially, ArcGIS bug reports, I found that ArcGIS has a bug when one uses the raster projection from geographic coordinate to projection coordinate and when the cell is blank. https://support.esri.com/en/technical-article/000007126 To solve this problem, they suggest to use export instead of raster projection. I think that ...


1

Although if-else statements are not as user-friendly as they should be in Modelbuilder, Esri did develop the 'If Field Value Is' tool to do this kind of logical selection. Esri Document on 'If Value is' tool


2

A quick solution for converting to string is to use str() but then you loose the last zeros. str(!Folio!) for the best control on the format of your text field, I suggest that you use the "format" from Python. The basic command (just below) is just a longer way to write str() "{}".format(!Folio!) But then you cn do a lot more. In your case, if you want ...


0

In QGIS you can open the attribute table of the layer and then press Ctrl+I to open the field calculator. Then give it a name folio_1, set the length and precision parameters accordingly (in your case 4). And then just select folio from the list of drop-down options under the Fields and Values tab.


1

Not sure if it's still actual but: Have you ever had you locator working with the original "50000 lines of magic Xml" file? If Yes and you just need to clean up the file to 400-600 lines, I'd suggest to delete them by small pieces and rebuild the locator after each update. In order to catch the part that you mistakenly deleted.


2

You can create a new feature class and use a data access insert cursor, projecting each Geometry with projectAs. Sample code; update with correct values for spatial reference, geometry type, etc.: mergeFcs = ["fc1", "fc2"] #merge feature classes outFc = "out_feature_class" #--- import arcpy outPath, outName = os.path.split (outFc) arcpy....


3

You can use selection and Python. This may be faster. Make sure your edited feature is selected. Then use the below code in the Python window. if arcpy.Describe ("layer").FIDSet: with arcpy.da.UpdateCursor ("layer", "update_field") as curs: for row in curs: row = ("U",) curs.updateRow (row) else: print "no selection" ...


0

A better option is to change the .csv to .xls (not .xlsx) file and then add it as data. Join them by right click on the shapefile. Select the same data column from both datasets. It will join both the data, and you can visualize the data using existing shapefile.


1

You need to re-run Point Density and in the tool environment setting, set the output extent and snap raster to "Raster A":


1

The answers proposed are really time consuming. If you want to transform the symbology of several rasters, I strongly encourage you to try the following toolbox. It works like a charm! https://github.com/USGS-Astrogeology/ArcGIS_Plugins/tree/master/CopyPasteRasterSymbology_toolbox


-1

Try selecting all, deleting, and then undo. Works every time.


3

If the field holding your dates are of date data type, then: Add a text field Use Field Calculator to write year and month to the field, see for example: How To: Extract a portion of the Date field Split By Attributes using the field as Split_Fields (If the field is already text and year-month then all you need is Split By Attributes) With Split By ...


2

You can use Field Mapping (bottom part of your "Merge Inputs" screenshot) to merge all FIDs into the same column. But if you dont need the FID values it is easier to delete the columns after merge. A quick way of deleting them is to use arcpy. List all fields with name starting with 'FID' then pass the list to Delete Field. Execute in python window of ...


Top 50 recent answers are included