New answers tagged

1

I think you are wrong with the naming convention of the arcgis featueclass, for details of naming convention get details at here. According to these rules your featureclass name can not be started with numbers. %n% means the loop number in the arcgis model builder. So your intended name must be like string+(number)+%n% e.g. Test_%n%


1

You can do this geoprocessing in QGIS by first making the image bounday of all DTED. This will convert all DTED to polygon shapefiles. Then run the spatial query for touches/intersects between your AOI and DTED polygon. You need to download the Image boundary plugin for this.


1

Looks like you want to use the first value in a field to rename the output feature class. I would use the feature class as an input rather than whatever C_parameters is. You can just make the input a user defined parameter and they can choose which input to use. Also set Field as a parameter to allow the user to choose which field this will work on. Copy ...


0

I have created a toolbar with tools that do the split of the road and ranges, both using the traditional split (one road at a time) and a Planarize split (many intersecting roads selected at one time split where they intersect each other). I just warn the user if they did not select a feature. I won't build a tool that pauses for a user to select a line ...


0

It is a while since I have done this but it looks to me like your model may not have specified an output parameter. If you compare your model to one in the Help page titled A quick tour of authoring and sharing geoprocessing services you will see that the latter has two input and one output parameters while yours only has a single input parameter.


1

I do this all the time. In my particular case I maintain a one-off database that needs to be synchronized with the actively maintained data, but it cannot be overwritten by the original database, since I maintain additional fields in my copy that are not in the original. The fastest approach for this scenario requires the use of dictionaries and cursors. ...


0

The following possible solution is merely a reflex-reaction to the situation described in your question. I am concerned that this solution combined with the amount of records involved will present an issue in terms of the amount of computation necessary to complete the task. The following would essentially pass through your large table (500K records), and ...


0

A way of converting an attribute table to a comma separated text file is to run the Table to Table tool. The location would be a folder such as c:\temp\mydata and the output table would be test.txt. If you set the field mappings then you can choose which fields get exported. But you may get yourself into trouble, what happens if a text value contains a ...


2

If you need to create a variable for the new shapefile name, then you can use "Parse Path". This is a model builder tool where an inline variable can be created and used through the model. You can set this as a model parameter so that the user can input the new shapefile name before running the model. Please see Parse Path (ArcGIS Desktop Help) for more ...


0

You should use the spatial join tool. This will output a file for you. You will need to specify the join type for the attributes to get the results you are looking for. As Bjorn said, a union will also work but will break the lines anywhere they cross a polygon boundary and also anywhere they cross another line.


1

The Select Layer by Location tool by itself will not change the data. It sounds like the Union (analysis) tool may be more appropriate. It will assign the attributes of the city to each street segment, and break the streets at city boundaries.


0

You should store unique a copy of your unique ID field in a field otherwise it could change (e.g. is you edit or merge fature classes). With this additional field you can use intersect (or union) combined with "summarize table" in order to extract your statistics. That being said, it seems that you are looking for the tabulate intersection tool, but this ...


0

Blockquote Its a bug in 10.4. All my old models went white as picture above after upgrading to 10.4. It's indeed a pretty bad bug, ESRI fortunately released patches for 10.4 and 10.4.1 that you can download here: 10.4.1: http://support.esri.com/Products/Desktop/arcgis-desktop/arcmap/10-4-1#downloads?id=7384 10.4: http://support.esri.com/Products/Desktop/...


0

It sounds like you are saying that using submodels is not permitted within your environment. That seems restrictive, but assuming that it is a mandatory requirement what I would do is: Create a table with one text field and one row and edit it to hold the path to your data. At the start of your models use a Get Field Value tool to read that value into a ...


0

Without knowing the content/function of the Calculate Value tools and how you use their outputs in your model, I suggest two solutions: Direct solution: As long as one instance of your model runs at a time (not having the risk of overwriting interim output unintentionally or write access conflicts), you can change the value of GPX to Feature to something ...


1

I think this is what you're trying to do: import arcpy, itertools, os # Define the input and output workspaces arcpy.env.workspace = r"C:\Users\Jenny\roos" outws = r"C:\Users\Jenny\roos\gmehome.gdb" # List the fcs in your workspace my_pts = arcpy.ListFeatureClasses() DayList = [] # a shiny new empty list.. for ThisFC in my_pts: if ThisFC.upper()....


1

Here's a very simple approach that uses numpy and will handle fields with null values (if you don't want to, then change null_value to any other number): import arcpy fc = "<my fc>" # Get all numeric fields that aren't required. fields = [f.name for f in arcpy.Describe(fc).fields if f.type.upper() in ['DOUBLE', 'INTEGER', 'SINGLE', '...


1

Model builder does not have the functionality you seek, you will need to do this using python. Below is the code that will do this, obviously you need to edit myTable and the parameter "SmallInteger" to suit your needs import arcpy import array myTable = r"C:\Scratch\fGDB_Scratch.gdb\tblTest" # Get list of fields fieldList = [f.name for f in arcpy....


2

You're right that using the OBJECTID isn't a good idea, it might change when the data is copied/exported/imported etc. A simple solution is to add a field and copy the OBJECTID to it. See also this technical article from Esri to create sequential numbers in a field using Python in the Field Calculator.


0

The end code that worked for creating the selection. I ended up having to define the projection using a constant, so I used the Authority Code for the projection. import arcpy, os arcpy.env.overwriteOutput =True # Calculates the center of the raster image. def RasterCenter(rasterInput): #raster: string reference to raster raster = arcpy.Raster(...


2

I run the process on a server where both the 64-bits and 32-bits versions of Python are installed, as the server holds both ArcGIS Desktop and ArcGIS Server. By default, the 64-bit version is launched, and my script fails. I forced the 32-bit version use by launching the script from the command line, and the update went through successfully. C:\>C:...


1

No need to export to single bands, there are a couple of ways of adding individual bands directly from the original multiband dataset: double click on the raster dataset in the file dialog. click on the + symbol next to the raster name in the Catalog window in ArcMap (or ArcCatalog). If you can't see any + symbols in the Catalog window tree, click the ...


8

I modified the original code a little bit to avoid some confusion when defining the RasterCenter function, since the argument named raster used in def RasterCenter(raster) and the variable named raster used in raster = arcpy.Raster(raster) within the function can cause confusion and make things not working properly. I modified parsing the path when reading ...



Top 50 recent answers are included