Tag Info

New answers tagged

0

No it does not work to set patch size with point layers to adjust legend size; my option is to leave legend as is and add a graphic icon on top of ArcMap's Legend. Odd, I know.


1

I believe this is the solution to the issue of "stacking" layers or raster bands for multiple images. This model is set up using standard NAIP imagery so red=1, green=2, blue=3, NIR=4. In this example, I am taking only the three color bands from the original image--combining them--then converting the format to PNG. My model uses the same concept as the first ...


0

If you're using ArcGis 10.1: Download the postgrsql-9.0.5 from here http://www.filehorse.com/download-postgresql-64/10965/ It has a windows installer, unlike most of the other sites I found. This is the 32-bit version which is required by ArcGIS 10.1. Open ArcCatalog: Add Database Connection. Select PostgreSQL from the datbase platform drop down. Instance ...


0

The doc's say that TrackCircle does trigger OnMouseMove. Why not just track that and display the current radius where ever you want.


5

I use the following settings to "Start a program" in the task scheduler. I find it best to use the full path to the Python executable to be safe. Program/script: Full path to Python.exe, C:\Python27\ArcGIS10.2\python.exe Arguments: Name of script, script.py Start in: Location of script.py, something like C:\path\to\script Also, if you pass in arguments ...


2

I have always set up simple batch files like this: start C:\Python27\ArcGIS10.3\python.exe \\some_server\some_script.py You'll just want to make sure the full path to the executable and script match exactly. If the path has any spaces in in it, you'll need to wrap it in double quotes. (" ")


0

Have you tried using the KML to Layer tool? http://resources.arcgis.com/en/help/main/10.1/index.html#//00120000004w000000 Restarting ArcMap and ensuring your KML file is valid by loading it into Google Earth are also good things to try.


1

I encountered the same problem and I solved it by simply setting the "has_z" property to TRUE while creating the polygon geometry: arcpy.Polygon(my_array, my_spat_ref, TRUE). In the code below I update the z value of the vertices of my polygon fc taking the z values of a point fc. import arcpy arcpy.env.workspace = "my_path" point_fc="my_points_fc.shp" ...


0

While you may not be able to prevent the alias from changing, you should be able to change it back easily enough with a few more lines of code. Say fc is your variable for the new feature class. Change the AREA field alias this way: for field in arcpy.ListFields (fc): if field.name == "AREA": field.alias = "AREA"


0

Have you tried Running directly the ArcMap setup rather than getting there through Setup.exe? This file should be located on the DVD as well.


5

You will want to use Feature Class To Feature Class (Conversion) to copy the feature class or shapefile. Make sure to specify which fields are included in the output feature class using FieldMappings (arcpy). Alternatively, use Feature Class To Feature Class (Conversion) or Copy Features (Data Management) to make a copy of your features, then use Delete ...


1

I would like to share with you the solution of this problem which I had encountred before , but accidently I found the solution which is under this link https://www.youtube.com/watch?v=7Cl_uDDgt7I&


0

Check the properties of your shape: In 'Symbology' tab under 'Show' you will find the option 'Multiple Attributes', I think is good a way to do it. Establish the 'Value fields' you want to be consider it, after that, under 'Variation by' you must to establish the 'Color Ramp'. Another window will be open and in that one you can select the fields you need to ...


3

Inside your map DIV tag, add another DIV tag with the image inside. You can set the transparency and float anywhere inside. Or since using a PNG, make it semi-transparent in advance. Example without CSS part below. <div id='map'> <div id='floating'> <img src="image.png"> </div> </div>


1

If all you need the exclusive access for is to check if it is safe to delete the geodatabase, you could just put the delete command in a try block and ignore any exceptions. Something like try: arcpy.Delete_management(your gdb here) except: pass If it is in use it will throw a specific exception (ERROR 000464), detailed here: ...


0

If you have a standard or an advanced license in arcgis, you probably have a fast procedure instead using the calculate geometry for coordinates and spatial join to copy them to your points. In Editor Toolbox you can use the Snap tool that will do the snap of your points to the centroid of the polygon. 1 - feature to point and for the output you can create ...


0

So your problem looks two-fold. First part is you want to look for a way to do searching on file names with wildcards. I have an outline that I would follow, but I am assuming all your PDFs are in a centralized directory. First.. Get all the file names of the PDFs. You can use something like os.listdir() and then filter out the subdirectories (if they ...


1

You can try clicking the 'Refresh' button near the bottom of the map window, also see the comments for the selected answer of this question, seem like the text box may be a work around if the above doesn't work.


2

I'm guessing this is a text element or annotation. Use the select tool (black arrow), draw a box around it or click on it, and hit the delete button on your keyboard.


1

You can also use field calculator. For centroid X: !shape.centroid!.x and for Y: !shape.centroid!.y Next from menu File -> Add Data -> Add XY Data - create new centroids layer. Last step is just making few Spatial Joins to retrieve attributes of original points.


3

if you don't have an advanced licence, here is how you can do : add 2 fields on your polygons, one for X and the other for Y use the "calculate geometry field" to extract the X and Y coordinates of your polygon use the spatial join tool to transfer the attributes of the polygons to the points with the X and Y coordinate from table of this new set of ...


2

If you have an Advanced level license of ArcGIS for Desktop you can use the Feature To Point (Data Management) tool: Creates a feature class containing points generated from the representative locations of input features. ... probably with its INSIDE option ... Specifies whether to use representative centers of input features or locations ...


0

Not sure if this will help anybody, but i stumbled upon this same issue. I'm basically trying to add all layers that have a SHAPE column to a combobox in a Python Addin. I was testing each layer in the data frame's isFeatureLayer property, but then discovered that annotation feature classes aren't considered feature layers. So then I was going to use ...


0

What I ended up doing: 1) Download and decompress your landsat tile. Do not open and look at the images in ArcMap because ArcMap will create .proj on the fly and this will confuse poor fmask and prevent it from running. 2) Once your landsat tile of choice's file is decompressed/unzipped/etc. Follow the directions on fmask's website for masking clouds. I ...


0

Would GetCount_management not work? import arcpy from arcpy import env env.workspace = "C:/Path/to.gdb" count = int(arcpy.GetCount_management("FC").getOutput(0))


4

Here's a one-liner for getting the count of records in a specific FC or table: count = sum((1 for row in arcpy.da.SearchCursor(r'C:\PATH\TO\FC', ['OID@'])))


1

You have quotes at the start and end of every line, and none in between, so ArcGIS is interpreting each line as a single text field. Remove the quotes and you should be ok in reading the file. Otherwise if you want a programmatic solution to building the DBF file take a look at the Python dbf module for writing the DBF file. Using dbf.from_csv will quickly ...


0

One possibility would be to open your .csv in Excel or something similar, save it with your separated fields, then open again within ArcMap. Your fields should be separate within your .dbf table hopefully


0

My final code was based on Aaron's, using Glob. import arcpy, os, glob from arcpy.sa import * arcpy.CheckOutExtension("Spatial") # définir les dossiers et les images à importer ws1 = glob.glob(r'c:\raster\r1\WGS.tif') ws2 = "C:\rasetr\ChD\r2" Since r1 and r2 have the same root_name, I just define the workspace for r2 and join the name to get r2. # ...


4

you should use the merge tool (or the append tool) to copy your points from one dataset to the other dataset. Launched from ArcGIS, the selection will be honored + this will reproject on the fly. Your points are probably moving because their projection was not defined. This can be done using the define tool. At the end, only one coordinate system is possible ...


1

With ArcGIS you can use the Snap tool, which will do exactly what you need but is only available with Standard and Advanced licences. If you don't have this licences, you could use integrate, but then you don't have the control on which vertex is moving. Note that both tools modify your data, so you better work on a copy of your dataset.


1

The simplest option is to have your execute method call a function instead of doing the actual processing. This makes it easily callable by any tool. class Foo(object) def __init__(self) #stuff def getParameterInfo(self): # list parameters for UI tool def execute(self, parameters, messages) somefunc(parameters[0].value, ...


1

This help article seems to answer your question. Specifically this section: "The PrintingTools service can print layouts that use multiple data frames. The service only replaces the map in the active data frame; however, if the data frames have some relationship between them, such as an extent rectangle, that relationship is honored by PrintingTools."


1

You can use the Region Group tool to find contiguous areas and the Lookup tool to filter by the count of contiguous cells. Depending on the source of the original DEM, you may want to smooth it before calculating aspect as you'll likely get quite different answers depending on the level of noise in the original data (see this question).


1

One approach could be this: Convert your aspect dataset to a polygon FeatureClass Union (1) with you land boundary dataset Select everything from (2) with an area greater than your desired threshold (I am assuming you meant 3 pixels) Run a summary statistics on the (3), group by land polygon ID, count as union polygon ID.


0

Your Cost Surface could be the problem. The value of the Cost surface cell represents the cost for each map unit, not for the whole cell. The cost-values are multiplied with the resolution when using the cost-distance function.


2

As suggested, the 'clip feature' in your model is going to be of 'feature set' data type. First, create an empty feature class that will hold the schema of your feature set. This can be simply a polygon feature class with nothing else than a name: Now in your model, right-click the Clip tool > Make Variable > From Parameter > Clip Features. Once the ...


1

While setting the properties for the input polygon, set the data type as a Feature set, and import a layer file created from a temp polygon layer for the schema and symbology input. Make it a parameter and this will allow users to draw in a polygon when the model runs.


1

Here is one approach that utilizes the glob module: Loop through the rasters in one workspace Within each iteration, extract the basename from each raster Manipulate the basename to match the raster in the second workspace Perform the raster calculation import arcpy, os, glob arcpy.CheckOutExtension("Spatial") ws1 = ...


0

All here is an implementation I just got working. Most of this was taking code from other posts and trying to make the tool more dynamic. Hopefully it helps someone in the future who is trying to do the same thing. import arcpy, pythonaddins, json, webbrowser, threading # Written by : Ken Carrier # Date : 03/12/2015 # # Pictometry Connect python ...


0

I just had the same issue today in ArcMap 10.3. I tried exporting to jpeg and adjusting many different quality settings but to no avail. Finally, after exhausting all other options I recreated the map document from scratch (I save the most of the layers as .lyr files) and it fixed the problem. It is a problem that is map document specific I guess. The ...


1

It depends on what kind of result you expect to get. From your question, it may seem as VRP would be the best analysis type. You will define during the VRP analysis: each bus capacity (number of students it can take); what time of the day each bus can start driving and what time will they stop driving; maximum driving time for each bus (if you have any ...


0

Just use the 'Feature To 3D By Attribute (3D Analyst)' tool. http://resources.arcgis.com/en/help/main/10.2/index.html#//00q90000002z000000


0

I was trying to figure out the same thing and made this model builder. I am not good with scripting at all and new to model building but this was pretty easy to make and worth the effort. Open model builder and select INSERT>Iterators>feature selection. Use the input to be your polygon shapefile that contains the 30 different polygons, hopefully they ...


0

A custom tool using IDisplayFeedback Interface might help you for panning and zooming while editing your feature. Code sample: ArcGIS snippet for Panning and Zooming while editing using C#


0

Try to use the Identify Tool to make sure there are values existing in your output raster at places where you expect them.


5

I would use the following approach which incorporates logic to check for your "FIPS" code. import arcpy fc = r"E:\Test_Errors_onE\myPath\myFile.shp" with arcpy.da.UpdateCursor(fc, ["FIPS", "kg", "kg_new"]) as cursor: for row in cursor: if row[0] == 06307: row[2] = row[1] * 3 if row[0] == 06308: row[2] = row[1] * ...


1

It seems you've got a little confused with the field syntax, "!kg!" is the python syntax when used in field calculator ONLY. I think this is what you're after: import arcpy arcpy.env.workspace = r"E:\Test_Errors_onE\myPath" arcpy.env.overwriteOutput = True infc = "myFile.shp" #Add a new filed named fields_in_cursor = ["kg","kg_new"] # kg is 0, kg_new is 1 ...


0

Here's another one..'iGeoAsset' monitors ArcGIS services, OGC services, Geodatabases (Oracle and SQL Server). One of the cool features in this tool is it not only monitors, but it is capable of restarting the arcgis services automatically if they stop working. It will also collect ArcGIS Statistics, performing analytics with arcgis server logs etc. ...



Top 50 recent answers are included