Tag Info

New answers tagged

1

Here's an example of technique I mentioned in the my comment to your question. Reading a CSV and populating a feature class with its values can be easy. The script assumes the Latitude field is the 1st column and Longitude field is the 2nd column. You can tweak the coordinate system in the code to something other than WGS84, tweak the field types, etc. # ...


2

If you're working with local data, then you can select any number of features. You may need a lot of RAM if you're working with millions of features. If you're working with remote data on ArcGIS Server, then that number is set by the map publisher. That can be changed when publishing a MXD and changing the setting under the Parameters tab:


1

I wasn't able to find the Model builder answer, but I managed to create a script in python that did the job. Here it is: ##domain clean up script ##Created by: Ruchira Welikala ##Date: Aug 27, 2015 import arcpy from arcpy import env #Workspace where domains will be deleted from gdbConnName = "Database Connections\\ProductionDB.sde" #Workspace/Table ...


2

It is possible with a long workaround. But certainly worth it if you need to reuse. Create a dummy layer with the same data you want to show in legend. If you have a layer 'Roads' copy it and we will tweak the copy to make the legend. I often call layers like 'Roads - dummy for legend'. This layer will be turned off when done, be sure to uncheck 'Only ...


2

I would suggest you create a series of models using iterators. You can create a model for each type and nest the models as sub models in order to include all of them into a single model. You would have to do this because a model can have only one iterator. So each model will iterate through the data object then deltete. Use preconditions to control the flow. ...


3

Your code isn't formatted correctly and you're using the wrong things for parameters. def TextValue ( input ): #needs to be a variable, not your field if input == "Steppe arbustive" or input == "Steppe arbustive à arborée" or input == "Steppe arborée" or input == "Savane arbustive" or input == "Savane arbustive à ...


4

The first line should not contain the field call (!Classe!). Your code should look like this... def TextValue ( classe ): if ((classe == "Steppe arbustive") or (classe == "Steppe arbustive à arborée") or (classe == "Steppe arborée") or (classe == "Savane arbustive") or (classe == "Savane arbustive à arborée") or (classe == ...


1

This is not possible to to achieve "dynamically" out-of-the-box. You will have to convert your legend to graphics, un-group and arrange the items as you want them then create a text element for each of the labels you wish to also include in the legend, physically type in the values and apply the same symbology as the label has and move it place.


-3

just put it into Onfly project and measure the distance from A TO B..


4

You just need to split it into 2 steps: Dissolve on the NET_ID Spatial Join the dissolved layer to the original layer. Use the match type of CONTAINS and set the Merge Rule of the Geology field to Join and set the delimiter to a comma. Right click on the field in the field mapping list and select properties to get to the merge rule and delimiter settings


1

I've found a model builder model to be fastest with: "Make X Y Event Layer" followed by "Feature class to Feature Class"


0

ArcGIS Desktop has a only certain amount of unicode support, which relies heavily on the data. I know fGDB Feature Classes support Unicode by default. I don't think shapefiles do. I made a 5 character text field in a shapefile and it could only store 1 of my 5 enclosed alpha numeric unicode characters. Where as the fGDB FC works perfectly on the same test. ...


1

To do this you'll need to update the Description within the metadata. Unfortunately, there doesn't seem to be a real simple way to do this with arcpy. However, @Ashatz11 over on Stackoverflow documented a pretty straightforward workflow: Updating metadata for feature classes programatically using arcpy Also, here's a similar post on GIS SE, that's worth ...


0

This answer is probably a little late, but hopefully better than never. William Huber came up with an answer a couple years ago and I implemented it as a model in Model Builder. See the following tool - http://www.arcgis.com/home/item.html?id=40d33968c44e4c9395c9c1ff1edd2bbe and blog post - ...


2

First of all I would strongly recommend that you export your map to either a PDF or an image file and use that to plot. This is especially true for very complex maps with lots of layers, rasters, transparencies, annotations, etc. The Page Print and Setup Dialog has nothing to do with printing. Its sole purpose is to set a physical layout page size of your ...


3

You can change this by going to Customize -> ArcMap Options then click on the General tab and you'll find mouse wheel settings at the bottom. (Version 10.2+)


1

There are three sets of properties to be aware of here: The envelope of horizon of the coordinate system, The extent of the coordinate reference, and The envelope of the feature class. The coordinate system horizon is mathematical space accessible by the coordinate system (e.g., infinite X, -90...+90 Y for GCS_WGS_1984). Esri uses these horizons to ...


4

A Map Package (mpk) will only hold 1 MXD, but could hold multiple GDBs. If your original MXD has 100 featureclasses from 5 different databases (multiple fGDB or SDE instances), the data that gets copied to the package will be held inside 5 GDBs named based on the original database. So to your point, you're sort of correct. Its more you'd have 400 MPKs if you ...


0

We have similar problems with the geo atabases on NAS. In our case it mainly depends on if several people work at the same time with the same geodatabase. Normally it helps to delete manually all lock files and actualize the database by a right click and refresh (F5) If that's not helping it usually the last step is a restart of ArcGIS. Still we ...


0

We have similar problems with the geo atabases on NAS. In our case it mainly depends on if several people work at the same time with the same geodatabase. Normally it helps to delete manually all lock files and actualize the database by a right click and refresh (F5) If that's not helping it usually the last step is a restart of ArcGIS. Still we ...


1

It looks like it is complaining about a path name to the table that contains a file geodatabase name shell_ele.gdb twice. It seems unlikely that you would store a file geodabase inside a file geodatabase folder so I would say that either the message that it does not exist is accurate, or if it does exist at that location then it is an unsupported pathname.


0

@Aaron's answer might be the best solution for general raster files (thematic or continuous data). If you have a thematic raster you could also use the Reclassify tool (see below). In the example NoData will be replaced with 0.


0

We have tested this on our enterprise database designs over a three year period. The theory was that an integer field with text domain values would have superior performance. Testing revealed no noticeable performance benefits. We discovered that re coding numeric values to be a real processing problem when it came to changes. Also we found that users ...


2

Without opening ArcCatalog, you can also go to the Catalog window of ArcMap and choose Options at top right and set your Home Folder Path: Then closing and re-opening ArcMap to check the Environment Settings shows that they have been altered:


3

Ok, I have figured it out. Solution: Open ArcCatalog. Go to GeoProcessing... Environments... Set the correct workspace paths. Open ArcMap. It should now work.


2

There is a useful method using Con and IsNull statements in the raster calculator to convert NoData to a different value. HowTo: Convert NoData values to other values for raster data


0

A simple method is: mean pixel value * total number of pixels The source tab in layer properties has all the information you need for this calculation.


6

Well, there are a few ways to go about this. Here is one approach: import arcpy from os.path import splitext #Use splitext, as slicing is hardcoded for extension length photos = arcpy.GetParameterAsText(0) #photos folder fc = arcpy.GetParameterAsText(1) #feature class arcpy.env.workspace = photos #Create list of image names without extension nameList = ...


3

There is a bug in the Project Raster Tool. The output raster from the Project Raster tool is a little too big on the eastern edge, and on the southern edge (bottom of the easternmost gore/lobe). So the data extent doesn't quite match what the extent of a Goode's Homolosine projection is, and triggers the "not consistent extent" warning. A workaround is to ...


4

I thought at first the arcpy.Polyline.getLength() method would work, as you can specify a measurement type and units but it did not because it is GCS. As you can see here, we are still in Decimal Degrees: >>> with arcpy.da.SearchCursor("line_wgs", 'SHAPE@') as rows: ... for row in rows: ... print row[0].getLength('PLANAR', 'METERS') ... ...


1

http://gislab.net/pics/3.jpg This is what you need to do i believe, right click on the map part you created (not the margins Arc wants to put the map in) then goto distribute, then goto fit to margins. This will make your map fit the margins of your layout choice. I would have put in comments, but it wouldnt let me


1

There's an svg of this projection on wikipedia. All country codes in main map group and easily editable in illustrator https://commons.wikimedia.org/wiki/File:Perlshaper_Winkel-Tripel_example1.svg#/media/File:Perlshaper_Winkel-Tripel_example1.svg


3

You can do this in a few steps: edit: As Ali pointed out, you do need your grid to be polygons, not lines for this workflow. Create a field on the grids to hold the area of each grid (or since they are the same in this case, just note what that area is) Intersect the grids and land usage layers. Compare the area of each output polygon from the intersect ...


0

Have you tried cutting out ArcPy by converting it to an array and then using numpy's minimum function?


-2

Fix this by by converting the dbf into a "dbf 4" file (on foxpro) and the warning will not occur.


3

I would suggest two approaches: 1. You use Network Analyst to build a network dataset (ND) from your raw street feature class. Choosing the "Any Vertex" connectivity would create a junction point feature at each street intersection which you can export and use just like any other point feature class in ArcGIS. Start with this tutorial, the best getting ...


2

So, you have a polygon feature class where you have multiple polygons. Each polygon has a value stored in the field named Extra. You want to show polygons with unique colors. You should use the Unique values symbology in ArcMap. You can then choose what color your polygons with a certain value will show.


1

GPSUtility is still the best tool that I've found for editing and working with GPS data: breaking and joining track segments, exporting/importing formats, filtering by location and time. The interface is a bit frustrating but the features are varied and do everything you request. It's not free but the trial lets you work with everything except very large ...


0

The XY to Line tool: Creates a new feature class containing geodetic line features... ...A geodetic line is a curve on the surface of the earth. However, a geodetic line feature is not stored as a parametric (true) curve in the output, but as a densified polyline representing the path of the geodetic line. If the length of a geodetic line is ...


0

Probably a little late, but my solution to this problem was saving the result in a different folder than the inputs. A temporary file is created in the work folder with a default name, which is erased after the process is finished, but it generates problems when the output is created.


2

Attach script import arcpy, traceback, os, sys, math from math import radians,sin,cos from arcpy import env env.overwriteOutput = True inFC=arcpy.GetParameterAsText(0) outFolder=arcpy.GetParameterAsText(1) rectangle=r'in_memory\rectangle' tempf=r'd:\scratch\many.shp' def showPyMessage(): arcpy.AddMessage(str(time.ctime()) + " - " + message) def ...


0

It is not exactly equivalent to the process you describe, but ArcGIS has the Dice tool to automatically split long lines into parts of X vertices. It doesn't use a percentage limit though, but merely a vertex limit. Still, if your only intention is to split the lines up in about equal sizes, it may be useful: ...


2

If you have a table joined when you create the field it will automatically add the layer name. If you want to avoid this remove the join then create the field and rejoin the table. Or you could right click the field and change the field alias to remove the layer name.


2

A little Python automation gets this job done. The basic steps: Determine max distance in feature class's units with help from a spatial reference object (requires projected feature class I do believe) Create a new, empty feature class with the input line feature class as its template Iterate input feature class and check its line lengths If the length is ...


1

I have run into a similar problem in the past. ArcGIS was importing columns as interger and truncating leading zeros. ArcGIS uses its own method of determining column types. I had to specifically tell ArcGIS that the attribute column was to be text by using a schema.ini file. This is the article I used to get started.


1

If you have access to Illustrator you can do this. Export from ArcGIS to .ai Illustrator file. Open in Illustrator. Most of your layers will probably be listed as sublayers to the main layer 'Layers'. Open 'Layers', grab all the sublayers and drag them outside of 'Layers'. Save as a .pdf and you should have what you are looking for. See below.


0

Answer to this question can be found here: https://geonet.esri.com/thread/164349 There was a patch to install to fix this issue.


0

Update: I got in contact with GeoBC and they did have the NTv2 file I was looking for. Thank you!


0

I think that if you erase the old python.dll file from system32 and syswow64 folders, (keep a copy of these files to revert the proces just in case) and then install again python from the installation dvd, this could fix your problem. I took the python.dll file from the other computer were Argis+python were working fine, but if you don't have another ...


2

OK the syntax is incorrect, the example code using fields from my dataset will help you set up the correct VB script structure. if [NAID] = 23 or [NAID] = 38 then x = 5 elseif [NAID] = 34 or [NAID]= 35 then x = 3 else x = 1 end if You run this field calculate on a field (in my example its a numeric field called q), and you put x into the bottom box as ...



Top 50 recent answers are included