4

To preserve symbology you can right click on the layer in ArcMap and Save as a Layer. This creates a lyr file that references the source shapefile. This file needs to go with the shapefile, but it can be loaded in different map documents. You can change the source of the layer in the layer properties to switch different shapefiles if you need to. http://...


3

I have tested solution from answer above and on my real world data the difference is negligible. Opposite to results in other answer, my times for arcpy.MakeTableView_management and arcpy.da.SearchCursor within ArcMap are same same. I have tested variations with and without query, please see the code for query version, and final measured results below: @...


3

I don't believe you can access that text because you are using a Single Symbol. If you read the help file on layer objects in the arcpy mapping module a property of a layer is symbologyType which will return OTHER for single symbol and that is not a supported type. If you were using Unique Value, a supported type, then you would be able to access those text ...


3

If you always want the part before first underscore then split at this and fetch first item (index 0) in split list. Set will remove duplicates. import arcpy arcpy.env.workspace = r'C:\Default.gdb' polygons = list(set([fc.split('_')[0] for fc in arcpy.ListFeatureClasses(feature_type='POLYGON')])) You can also use re module to split at first non-letter ...


2

The usability of the arcpy walk function could definitely be tweaked. It is efficient for listing, but that's it. Any filters massively hamstring it https://community.esri.com/ideas/16926-improve-usability-of-arcpydawalk


2

As an update, the solution to change temp files directory via the Advanced Settings Utility does not work and is a recognised bug for Arc 10.5.1 and possibly later versions. See the ticket here. Currently, the only way to redirect the temp files for Arcmap is to change the Windows environment variable TMP. I have verified this works.


2

You'll need to look at the What's new in 10.2 document. The items listed in here will not exist in the previous, 10.1 version.


2

Try adding arcpy.RefreshActiveView() after applying the selection.


2

Right click on the attribute table and click the join choice. The Join Data window has a choice that says keep all records or Keep only matching records to create the target table.


1

This is easily learnable from the Geotools quickstart: http://docs.geotools.org/latest/userguide/tutorial/quickstart/eclipse.html public static void main(String[] args) throws Exception { // display a data store file chooser dialog for shapefiles File file = JFileDataStoreChooser.showOpenFile("shp", null); if (file == null) { return; ...


1

I love Layer Files and Packages, but I usually reserve their use for Layer Groups and not individual Layers (barring some situations with extensive labeling sub-classes). A Quick simple way to add a new layer to the map with pre-defined symbology ... Open a blank Map Add the data you want to symbolize Double Click the symbol in the Table of Contents and ...


1

Multiple solutions possible to get your a very close result. If you can create 0.7 contour of raster, points on it are your best candidates. Alternatively express your area in raster pixels and run focal statistics using relevant size window, e.g. 50*50 (not necessarily a square or rectangle) if your area is equivalent of 2500 cells. Use raster calculator: ...


1

I've developed a native iOS app using GDAL to manage the vector data, and OpenLayers (in a UIWebView) to display the layers (both raster and vector). For vector layers, the app uses GeoJSON to communicate between OpenLayers and GDAL. It can use WMTS/TMS/WMS for raster layers. There is a bit of a learning curve for both GDAL and for OpenLayers. But the ...


1

If I understand correctly, the top symbol is the rotation you are looking to match on the remaining symbols. If using ArcMap you can go into the symbol properties, click on the symbol within the table of contents, and enter the desired angle. If you are going for a desired affect, it helps if you know the angle of the line. If you aren't sure, and using ...


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 ...


1

Here is the solution: Replace polygons by points using "Feature to point" "Extract multi values to points" chose as raster the cut&fill. This will add the FID of the raster to the points. Join by attributes the cut&fill with the last points Edit to remove unnecessary columns and join to the polygon


1

I think you will get what you want if you set both Create multipart features and Unsplit lines to TRUE (on). That unsplits contiguous lines but does not create discontiguous multipart features.


1

Arc version: 10.3 In case anyone is still finding this in 2019, I had similar issues and wanted to be as sure as possible as to whether projections matched. As in the above question/answers, you can get the spatial reference using arcpy.Describe(dataset).spatialReference. In a function library of mine, I then integrate this into a workflow, set-up to handle ...


1

I was inspired by @FelixIP, but I wanted to write a solution without joins or the creation of extra files, since my network is quite large with 400K+ pipes and 500K+ nodes. The geometric network build forces the X,Y of the nodes and the pipe ends to be coincident. You can access these locations with the shape tokens in arcpy cursors and match them. The ...


1

At Arc Desktop 10.7.1, this works for me (note that it requires the Spatial Analyst extension): Open the Raster Calculator and enter the following in the Map Algebra Expression pane: Con("your_raster" == "your_raster".maximum, "your_raster") [Note: this selects the cell with the maximum value from your_raster.] Enter the name of the output raster that ...


1

It is a generic error but here is good Esri Technical Support article on “ERROR 001369: Failed to create the service” that gives a clue into possible problems/solutions. I would recommend you to go in the servers logs and try to identify the specific error report there.


1

As of December 2019 there is this website : https://zoom.earth/ wich at sufficient zoom seems to show Bing imagery and display the date of the image(s) on the top left corner, under the title.


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