Tag Info

New answers tagged

1

Just a quick point about getting the value of each point from the flow accumulation matrix. if the points (junctions) had been extracted from vector streams, probably these points do not match the corresponding points in the DEM. So, the points should first snap to the right place based on the DEM. There is a tool in ArcGIS named Snap Pour Point for doing ...


2

I replicated the results you are looking for using the “feature vertices to points” tool and an available buildings layer on hand. Steps 1-5 is because I prefer working from a geodatabase. Can you open ArcCatalog to your working folder and preform the following steps? 1) Open ArcCatalog and navigate to your working folder. 2) Right click and selecting ...


2

You can do this with the Python script provided by Esri in the "Reading Feature Geometry" section of ArcGIS Online Help. http://resources.arcgis.com/en/help/main/10.1/index.html#//002z0000001t000000 Here is the script provided in the said reference: import arcpy infc = arcpy.GetParameterAsText(0) # Enter for loop for each feature # for row in ...


0

The workaround sometimes doesn't work after you add values and group categories. You need to click ok, then go back into the Layer Properties and then ArcMap will now let you calculate the counts by clicking on the Count heading.


1

The tool "Symmetrical Difference" can also do this: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00080000000r000000 This tool is available in QGIS, a free GIS you can download here: http://www.qgis.org/en/site/forusers/download.html


1

The exact tool you are looking for is called "Erase". Unfortunately, it is only included in the Advanced/ArcInfo license level. You might be out of luck unless you can write your own version of this tool. ArcGIS Erase


1

Tool validators are not easy to program, there's no debugging or text output so all you get is does/doesn't work. I notice that your if rows.next(): is on an incorrect indent level which could be why it isn't working. I also notice you're equating the self.params[3].value==True: where the value should be a path to a feature class.. not sure what's going on ...


1

For anyone who is interested, I just learned a really quick way to do this. Zoom into the area / extent you are working with > open image analysis window > click the clip tool under processing. A layer will be added to the map of the area in the extent when you performed the clip function.


2

You must release the cursor after each usage. Just add these lines at the end of your codes: System.Runtime.InteropServices.Marshal.ReleaseComObject(featureCursor2); featureCursor2 = null; And add a reference to ESRI.ArcGIS.ADF.Local assembly.


1

I've used i-Tree Vue to do this in the past, free to use just need the following NLCD datasets for your study area: 29 Land Cover classifications Percent Impervious Cover Percent Tree Canopy i-Tree Vue allows you to make use of the freely available National Land Cover Database (NLCD) satellite-based imagery to assess your community's ...


2

It looks like you need to pull out the name of the file from "inRaster" and add it into your "outname" variable. I've copied your last block of code and added comments to the lines I've added/edited. If the rest of your code is working as you indicate, this should take care of fixing the name and writing it where you want it. inRaster = ...


3

You need to use the Combine tool. Unlike simply adding together the rasters to get a total, this tool will create a new raster with values based on the unique combination of the other rasters. So the value created where frog and bird overlap will be different than that where frog and fox overlap, which is different yet again from where bird and fox overlap. ...


1

Image services such as these do not perform at full capacity unless your dataframe is in the same projection as the image service. To rectify the situation make sure your current data frame is set to the SouthAfrica_Albers_Equal_Area_Conic projected coordinate system. Once you do that, you will find the image service is quite snappy. Right click the ...


1

You could use this method: http://support.esri.com/em/knowledgebase/techarticles/detail/30330 or create a polygon representing the area you need to clip and use the Clip function to clip it out.


0

Okay So I finally figured out the problem. There was a difference in the Arcmap version I was creating the domain on (10.0) and the Arcmap version the features were created on (10.2). When I created the domain on 10.2 everything worked fine.


1

When saving the raster, you're using outputDir which is a folder, not a valid raster path. Also keep in mind too that your input folder and output folder are the same, so you're also setting up a situation where you'll be overwriting your inputs with your outputs. For the save, could do something like this: outRasterName = '{}{}'.format(outputPrefix, ...


5

You cannot use a domain to do this and as far as I know you cannot do this, since it violates the tableview design. You want to violate a coded value domain, which will generate a validation violation when you run Validation for the field. A coded value domain can only be violated with runtime user defined values if the user uses the Field Calculator to ...


0

From the ArcPad Studio 10.x, navigate within the collection form (in the .APL) to the ComboBox you want to assign the default value to. When created, each ComboBox will have defaultvalue added as a property already. Picture of defaultvalue: Copy the value you want to be the default from the ComboBox ListItem, double-click the defaultvalue property, ...


0

Python Script List all columns from every FC within a dataset GIS 10.1 SP 1, FGDB import arcpy import os arcpy.env.workspace = "C:\NBU_GIS_10_1\NBU_GIS_10_1_GDB\NBU_GIS_10_1_GDB.gdb" datasets = arcpy.ListDatasets(feature_type='feature') print datasets for ds in datasets: for fc in arcpy.ListFeatureClasses(feature_dataset=ds): path = ...


2

the Y value is the values "if false" (and X is the value "if true"). You can enter a constant values (e.g. could be 0 in your case), a layer (could be your weighted overlay raster). Also, testing equality in the raster calculator is done by using "==" ("=" will not work)


1

yes, perfect! it works. Do not know why it (CellStat) did not work in ModelBulder and this is the reason I asked. Also, I found that way, a little bit around/longer. import arcpy arcpy.CheckOutExtension("Spatial") # Define input workspace and create list of rasters arcpy.env.workspace = r'X:\path\to\rasters' rasters = arcpy.ListRasters() i = 0 #loop ...


2

Cell Statistics (Spatial Analyst) was designed for this type of operation. This is how you would implement cell statistics with Python: import arcpy arcpy.CheckOutExtension("Spatial") # Define input workspace and create list of rasters arcpy.env.workspace = r'C:\path\to\your\rasters' rasters = arcpy.ListRasters() # Run cell statistics calc = ...


2

Like many GIS projects, there are a couple phases to this task. First, you must get to know your data. Once you know what you are working with, you can create your automation to achieve your goal. To standardize data, first you need to know all of your starting values. It looks like the field Street Type is the field in question in this particular exercise, ...


1

come across and solved the problem just now cause RouteParameters 's default value of UseHierarchy is True just set UseHierarchy to False RouteParameters parameters = new RouteParameters(); parameters.Stops = stopsGraphicsLayer; parameters.OutSpatialReference = MyMap.SpatialReference; parameters.UseHierarchy = false; routeTask.SolveAsync(parameters);


3

Buffer (without dissolving) all lines a (very) small distance. Spatially Join your points to your buffers with a one-to-one join_operation with an intersect match_option. In the resulting feature class, there will be an attribute Join_Count of how many buffers matched each point. Any point at an intersection would intersect two buffers, while points ...


2

This is a bit more complex, you will need to create two temporary 'unselect' feature classes. Use the tool Feature Vertices to Points with the 'BOTH_ENDS' specified to create points where you don't want selection. Do this for the blue and the red lines then merge. Use Select by Location to select the points within a small tolerance from the blue lines (how ...


1

It isn't strictly required to alter the services or services.sde file with SQL-Server, and if you don't specify a port or mnemonic with the -i flag at step 1, then step 2 is completely unnecessary (since it's too late to change from the default of esri_sde 5151/tcp). In fact, best practice is to add non-standard services entries before sdeservice -o create. ...


1

5151 is the standard. you are welcome to select any port that is open by editing the services.sde file and adding it, or alternatively remove the comment mark # from the default entry. Help can be found on the esri website. 10.1 MS SQL Server help


1

Thank's for your answer. I applied your code to my work. but it doesn't works good.The first raster is added correctly,but it is no one of the selected raster in the table. I think the code tries to add all the files. And then, the code show this message: Runtime error Traceback (most recent call last): File "", line 20, in NameError: name 'result' is ...


4

We rarely used the Toolbox within ArcGIS 10.x. The problem was with several bugs in the Toolbox's Python script. We have fixed the problems and now it works with ArcGIS 10.x. If you need the fixed toolbox, do not hesitate to contact me and I will send it. (I am one of the authors.)


1

My solution is more arcpy based. I would run this from the interactive window. I left some spots in there for you to add your own information/query/etc. I borrowed some of the raster code from this other post. #get the mxd you're in mxd = arcpy.mapping.MapDocument("CURRENT") #get the dataframe df = mxd.activeDataFrame #select the records via your query ...


1

The output to CopyRaster should be a raster dataset, but your code uses a folder (your outWs). If still writing out to .tif format, something akin to this should do what you need: for ras in rasList: arcpy.CopyRaster_management(ras, os.path.join(outWs, ras))


0

The ArcMap calculator breaks Python rules and accepts only if, not the elif. Just replace all the elif code with if instead. It is correct that the file must be a geodatabase and not a shapefile.


1

This is more a civil engineering / grading exercise than a GIS one. I'm not sure what your raster is (imagery? a DEM?) so I will ignore that unless you provide more details. The first thing you need to do is establish what 'level' is. Do you want it absolutely flat, or with some slope for drainage? Then you need to establish how you want to level the area. ...


1

When buffering (among other distance related operations) in a geographic coordinate system, your result may appear or be distorted in 2D because geographic is on a sphere/ellipsoid, not flat. Geographic uses angular degrees for measurement, and a degree of longitude can vary significantly in terms of distance depending on latitude (which is relatively ...


1

Assuming you have created surfaces from your surveys; this is a simple cut and fill operation, however you will need either a Spatial Analyst or the 3D Analyst extension to do this. (Calculates the volume change between two surfaces.) I beleive out of the 2 extensions, Spatial Analyst is pretty much essential however the 3D analyst will allow you to also ...


0

Here's a work-around in desperate times: Start editing the feature-class or shapefile Select the polygon feature and right-click to 'Edit Vertices' Right-click on one of the vertices and select 'Sketch Properties' A fly-out will appear with the coordinates of the vertices listed Take a screen-shot of the coordinate list Paste the screen-shot into your ...


0

Your best bet for clustering algorithms is in the open-source R software environment. Specifically, R has a stochastic QT clustering algorithm in the flexclust package that allows you to specify a maximum radius of clusters. In this example, I generated several points in a lake to use as sample data. Then I specified a 500 m cluster radius. ...


2

You need the spatial analyst extension to run spatial analyst tools on Server. You'd see an entry like: spatialserver,100,ecp..... You can see the license matrix here. If you believe you should have spatial analyst based on what license/extensions you should have, but dont see it in that file, you should contact either Esri Customer Service or your ...


1

It sounds like you have a license for the ArcGIS Desktop Spatial Analyst Extension, but not ArcGIS Spatial Analyst for Server. You will need to purchase one to use that functionality.


0

O problema era a placa de vídeo ATI com a sua aplicação chamada HydraVision. (The problem was the ATI video card with their application called HydraVision.) A solução que funcionou para mim: (The solution that worked for me:) Botão direito do mouse na área de trabalho,(Right click on desktop,) Seleccione AMD Catalyst Control Center, (Select AMD Catalyst ...


0

Monitoring tools such Nagios are good for general monitoring, but to be able to restart an ArcGIS Server service in the event of a service shutdown, you need a tool that is integrated and runs on ArcGIS Rest admin api. As far as I know there is only one tool that currently does it - iGeoAsset. Seems like it not only sends instant notification via email/text ...


0

You could try ArcGIS System monitor http://www.arcgis.com/home/item.html?id=848f48b0f88e4de7a036377197453efe



Top 50 recent answers are included