Tag Info

New answers tagged

1

I'm assuming that you are using ArcGIS 10.1 for Desktop or later, but this may also work with 10.0. Open up the Properties of your layer to the Labels tab. Make sure Label features in this layer is ticked on Change the Parser to Python. In the Expression area, if your field is called Name and your data is stored in a file geodatabase feature class, type: ...


1

While this is an old question, the other answers are not appropriate. Converting Distance (Measured Depth), Dip (Inclination), Azimuth to 3D coordinates depends on how you interpret what is happening between the locations where measurements were taken (survey stations). The standard practice today is "Minimum Curvature" where the assumption is that a ...


1

Try this: CadastreOut = "C:\\" arcpy.MakeFeatureLayer_management(Cadastre, "cadastre_lyr") arcpy.MakeFeatureLayer_management(Buffer_5km, "buflayer") field = "SiteName" cursor = arcpy.SearchCursor("buflayer") for row in cursor: geometry = row.getValue("Shape") out = str(row.getValue(field)) ...


2

Here's how you can get Shape.area to display acres if it's in another unit. In ArcMap, go to the layer properties and the Fields tab. Under "Appearance", click "Number Format". Click the little button with the ellipses that is now displayed. Or right-click a field name in the table view, go to Properties, and click the little ellipses button next to ...


1

The where clause is currently evaluating stepos literally as the value stepos, not the variable value 22. Move the stepos variable outside the where clause string, casting the numeric value to a string, like: arcpy.UpdateCursor(stefile, ' "POSITION" = ' + str(stepos))


1

I see that the question and answers are quite old, but still will post my answer as it could help someone in the future. I get this error mostly because invalid characters in the paths and file names. Keep your whole path strictly in ASCII without spaces and the filename under 13 characters.


0

I found the (or one) solution: One needs the Tool "Service Area" in Network Analyst. First, you need to have some necessary prerequisites: a) Set up a Network in Network Analyst. You need to have the Length of the roads/rivers/etc. as an attribute added while setting up the Analyst, name it e.g "Distance" b) You need a column in your location file which ...


1

No, or at least not without significant server-side hacking. In a WMTS the zoom levels are fixed before hand, and defined in WMTSCapabilities.xml. Each tile is a unique, pre-rendered resource, matching a pattern of zoomlevel/x/y, with an exact, pre-defined pixel size, usually 256 x 256. In WMS, in contrast, there is neither a pre-defined zoom level, nor a ...


0

A non Arcmap answer. load your tables in PostGIS. Run something like: SELECT DISTINCT ON (pid) pid,rid,ST_Length(dist_line) dist FROM (SELECT points.id pid, roads.id rid ST_ShortestLine(points.geom,roads.geom) dist_line FROM points, roads) a LEFT JOIN rivers ON ST_Intersects(dist_line, rivers.geom) where rivers.id IS NULL ORDER BY dist; It will not work ...


0

This is just how it works. Your extraction by mask is just fine, you merely need to change the symbology in the extracted raster. The mask is not doing what you (or I) think it should in the environments setting. It is more of an envelope when used here as opposed to a true "cookie-cutter" when you are using extract by mask. FYI this never used to happen in ...


0

You need to turn your analysis to Raster. Try the Proximity analysis set of tools found in ArcMap http://resources.arcgis.com/en/help/main/10.1/index.html#//018p00000007000000 You can use the Cost Allocation tool to set the barriers http://resources.arcgis.com/en/help/main/10.1/index.html#//009z00000016000000


0

I hope the following will contribute to a solution for you, but it isn't quite a cook-book answer. This attempt uses proximity tools and geometry comparisons to establsh the LEFT or RIGHT-side condition for the Locations Points. My initial reaction says to create a set of Buffer polygons from your streams and rivers polygons, using the Side Type (optional) ...


3

It's used to eliminate any whitespace you may have around your layout in the output file. For example, I have some MXDs set up to print on a specific paper size with specific margins, so that the maps I print can be 3-hole punched or bound without the holes affecting the map window. But sometimes I don't care about that and just want everything to fill the ...


0

This works with a standard ArcGIS license: desc = arcpy.Describe(fcl) shapefieldname = desc.ShapeFieldName gebieden = arcpy.UpdateCursor(fcl) for gebied in gebieden: polygoon = gebied.getValue(shapefieldname) for punten in polygoon: for punt in punten: print punt.X, punt.Y


1

Not sure by your question if you want the map spatial reference or a layer. For a map you may use the IMap.SpatialReference Property.


5

Assuming you have a reference to the feature class pFC: ERSI.ArcGIS.Geometry.ISpatialReference pSP = ((ESRI.ArcGIS.GeoDatabase.IGeoDataset)pFC).SpatialReference; coord=pSP.FactoryCode coord now contains the code for the coordinate system. Note that not all projected coordinate systems are defined in esriSRProjCSType, there are more constants ...


1

You would do something like this: dataset = "c:/data/landbase.gdb/Wetlands" spatial_ref = arcpy.Describe(dataset).spatialReference as per the ESRI help page here


3

Calculating a couple of new fields and using the Summary Statistics tool should be one method able to get you what you want. Add a new field to hold the area * thickness for each aquifer and field calculate that value for all the aquifers. Add a second new field to hold the water body id portion of your internal code and populate it as suggested in the ...


0

I solved it. probleme is because you use iFeatureLayer as an input. Use a IFeatureClass. Friend Function DissolveFeatures(ByVal pFC As IFeatureClass, ByVal DissolveField As String, ByVal OutName As String) As iFeatureClass Dim GP As New ESRI.ArcGIS.Geoprocessor.Geoprocessor Dim Dissolve As ESRI.ArcGIS.DataManagementTools.Dissolve = New ...


0

The script is failing to find the Python regular expression library, which is strange because re is part of core python. You could open the Python console in ArcMap, and import re to see if the same error occurs. As @artwork21 suggests, you could browse to your python installation and see if re.py exists. You could start python from the command line and ...


0

My dear friend i had the same problem. fourtunatley thanks to God and Google i found the answer. you need the the 3d Analyst tool license to get z values. open arc scene, enable the 3d analyst(the 3 analyst tool bar becomes activated and you can see it on your screen), click the small button directed downward at the edge of the tool bar(customize), click the ...


1

If you are interested in a scripted solution, try the gdal command nearblack. You can use the flag -white to retrieve data bounded by white space as well. You can polygonize the output to generate a non-rectangular footprint of the raster data. ##run nearblack shellcmds = "nearblack -white -o " + outpath + " " + inpath os.system(shellcmds) ##run ...


0

I realize this is quite a while after the question, but we just had a big need for a similar capability and ended up building a general, free, open source Python library for the purpose. You can find it at https://github.com/ucd-cws/arcpy_metadata or by running a "pip install metadata" - documentation is still to come, but we tried to keep things relatively ...


0

Just encountered the same problem, this time wanting to duplicate layers, but not being able to use the geoprocessing tool and a temporary LYR file because this route does not preserve all the elements of the layer (in my case the display format settings for fields in the attribute table). My conclusion is that you have to use an extension of the code ...


0

First you should snap points to lines .You can use GME (Snap Points to Feature ). If you want to use bus stations for routing you should create multimodal network.Follow the Multimodal network excercise. You should create stations,entrances, Bus lines , use ovverride for entrances then build your network dataset.


0

I finally figuerd it out. It may seem a little awkward since it is no arcpy solution, but it worked for me. Create the regular trackbased SIMPLE_SMIF.shp Run INTERSECT from toolbox with SIMPLE_SMIF.shp county.shp as input layers. Note that the rank (which of these layers is put above the other) in the dialogue window will influence the result. I placed ...


0

using union and dissolve i was able to get it to work, the key for me was to select the right Dissolve_Field to Count over in the Statistics Field (i.e. both fields match and I used "shape_Area" as the unique indentifier). Thanks for the comments! This post was most helpful for me: How to count and rasterize polygon overlaps in ArcGIS Desktop?


1

I would loop over each polygon and first create a binary raster where the cell value is one inside the polygon, and zero outside, and then use map algebra to add it to a total raster. Unless you have a trivial number of polygons, you will probably want to write an arcpy script to do this.


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.


0

Ok.. Now that I have a better idea of what is going on, I can point you in the right direction. You want to be able to select a graphic like a circle and select a color from a color picker, draw a graphic or click a point, and the map would load that graphic on there based on your choices. There are a couple of ways I can think of doing this, but this may ...


0

Since FGDB's are treated as folders, this script looks for folders in a directory older that seven days, then uses the Delete management tool to remove the old folders. import os import time import arcpy dirPath = r"C:\test_data" cutoff = 7 * 86400 present = time.time() directories = [] for root, dirs, files in os.walk(dirPath, topdown=False): for ...


1

One of the easiest fixes for this situation is to utilize geodatabase topology rules. Specifically, the situation you describe can be identified with the "Must Not Have Dangles" rule. You can fix these dangles with the Fix Topology Error tool. Another option is to use the Snap (Editing) tool.


1

First of all 180,000 shapefiles is big number as already suggested please do care about the 2GB limit and the field mapping. Second, some time back I got some shapfiles and I was also not happy with the performance of arcpy merge/append. So I have tried pyshp and I was very happy with the performance. Complete merge function you will find here. ...


4

It seems that you must use the Dissolve tool, based on a common attribute. http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000005n000000


1

Modify your spreadsheet so that Latitude and Longitude are in separate columns. Each point should have its own row with one X and one Y. Also make sure that you format your cells so that they are number values, sometimes ArcGIS is finicky about this. Use this image as a template: Save your excel spreadsheet and close it. (1) Open ArcGIS and add the data ...


0

Ok, the solution is Create a 2D point shapefile from current 3D point shapefile and remove duplicate points (Delete Identical) Right click in the TOC and select Join A window like below will open and set a. "Join data from another layer based on spatial location" b. "1. Choose the layer ... " > your 3D point shapefile c. "Each point ... " > Select ...


2

If you have access to ArcGIS 10.2 for Desktop, or possibly earlier, then I think the Polygon Neighbors (Analysis) tool which: Creates a table with statistics based on polygon contiguity (overlaps, coincident edges, or nodes). may make this task much easier now.


0

To get the attributes from boundaries.shp into SMIF.shp I would use the Union (Analysis) tool: Computes a geometric union of the input features. All features and their attributes will be written to the output feature class. Once you have that you will probably see that some of your SMIF polygons fall within more than one of your county polygons so ...


0

There is a nice ESRI blog post on building your own vector tree symbols. I personally use these for this same purposes and they look great. There are also some instructions on randomizing tree sizes here.


0

My money would be on Polygeo's suggestion in the comments prior to rasterizing. However, working with your polygons, you could select the smaller polygons and save them to a separate file (you'll see why shortly). Then de-buffer (negative buffer value) your polygons. Then split multiparts to single parts (important). Next buffer the result of that ...


1

I am using 10.2 but had no issues clipping your TIN. Your polygon is not a 3D feature so you may have incorrectly set the Height Field parameter which by default is, in this case, set to iD - this will force to clip the TIN at that height which is 0. Set the Height Field to NONE and run it again: The resulting TIN will be clipped as follows:


2

This can be done with a simple model. Make sure the input to the iterator is the full path name to the raster catalog rather than the layer name from ArcMap. Also tick the recursive check box. Use in-line substitution to pass the raster name out.


2

Specific instructions then would be to right-click the layer in the table of contents and go to "Properties". Then choose the "Labels" tab. Check the box to "Label Features in this layer" and choose your "Subname" field as your "Label Field". Change the Font using the options under "Text Symbol".


0

In ArcGIS the simplest tool to use would be Con (Conditional), which is specifically used for raster analysis. While selecting by attributes is not incorrect, attribute selection is more commonly applied to vector analysis where the tables tend to be more complex.


1

I actually found it! Extract by Attribute (Spatial Analysis). Drag raster layer to input, and tell the "Where Clause" "Count" = 1 then click OK. Easy Peasy Lemon Squeezy! BTW, I typed in Select Raster in the search bar. Hope this helps others!!


0

If the black 'water' attribute is the value "2" as it seems to be, you could reclassify the raster changing all other values (apart from 2) to null. This would leave you with only the black raster. What do you intend to do with the raster selection?


2

Your cursor is returning a row object. If you look at the syntax section of the help file for the Polygon to Raster tool what do you see as the input data type? You need to supply the actual geometry (the polygon). You are using the older SLOWER cursor. Consider editing your code to use the cursor from the da module. There are plenty examples in the help and ...



Top 50 recent answers are included