New answers tagged

0

I got some workaround for this question: Make a separate neatline for your data frame; make sure it's not grouped with the data frame. Modify your data frame's grid that it will have long enough ticks that'll reach the neatline. Convert your grid into graphics; all the grid's features (ticks, labels, grids etc) comes as element group - ungroup it. Now ...


2

Before ArcGIS 10.2 you could not rename a field using the Alter Field-tool. With 10.2. upwards is much easier to get this to work. You have to add a new field with the desired precision to your shapefile and copy all the values from the one column to the next one using fieldcalculator. Then you can delete the original column and rename the new one to the ...


0

I have this when I am working with dual screens in the office and the dialog appears on the second screen. I unplug, go home and work off my laptop screen and the dialog is still on the second screen in the ether... To get around this issue I have to delete my normal.mxt and restart ArcMap. This re-creates the mxt file with the vanilla ArcMap settings, ...


0

This is something I've never done so not sure if I am suggesting a red herring? You need to look at the page Creating Property Pages in the ArcObjects API help, from here there is a link to some sample code on a page called Layer property page and property sheet.


1

The LAS Dataset toolbar in ArcMap does not provide any automated classification solutions. The classification that is available through the Profile viewer was meant solely for the facilitation of supervised classification, where you would make a selection and assign the appropriate class code. In ArcGIS Desktop 10.4 and ArcGIS Pro 1.2, 3D Analyst provides ...


0

In Visual Studio 2013, to fix this check Use Managed Compatibility mode in VS2013 > Options > Debugging > General (last option in the list). Original answer by Preston McCormick here


3

Try splitting your raster into smaller parts. It seems to be really big. I just found this post: http://forums.esri.com/Thread.asp?c=93&f=995&t=225045, someone had a similar problem as you: Quote from link above: Any count exceeding 2^31-1 will therefore "roll over" into the most negative numbers; for instance, (2^31-1) + 1 will appear as ...


4

It sounds like what you are after is Background Geoprocessing, which was introduced at ArcGIS Desktop 10.0. However, I think ArcPy only became "Background Geoprocessing aware" with the introduction of Python Toolboxes at 10.1 - see Setting "Always run in foreground" within ArcPy code?


0

A few small modifications to your code, but replaces each layer with a new layer and keeps the same layer order. Combined everything as elif into the one for, and added the remove into each if. Before: After: import arcpy #Add constants mxd = arcpy.mapping.MapDocument("Current") df = arcpy.mapping.ListDataFrames(mxd,'*')[0] Mylayer = r"D:\Temp\GISSE" ...


0

This answer applies to 10.3. Have you tried using the Editing tool "Split" for all these tasks? Start editing your line, select the relevant section, and then go to the Editor dropdown and select "Split". This lets you split a line or line segment into parts based on distance from start or end of the line, into equal parts, or by a percentage. You don't need ...


3

You can set the extent of your map by going on the layer properties > Data Frame > Clipping There you can use one of your polygon with any shape and the graticule wil fit to this extent. In your case you need a rectangle drawn in a geographic coordinate system (densify its vertices before reprojecting to your conical projection)


2

Using the Style Manager (Customize > Style Manager) create a custom 'Multi-part Color Ramp', with 7 parts (or however many parts you need). Make each of those 7 parts an 'Algorithmic Color Ramp' and set them to a single color. You'll then end up with a discrete 7 part color ramp that won't change when you update your values (unless you add or remove ...


2

There is a tool in the analysis toolbox called symmetrical difference that you could use. You would put all your buffers in one layer and your counties in another layer. Then the tool would tell you all the areas in the counties that don't intersect any of the buffers.


0

as the DBMS sqlite is part of the android universe, it may be possible to use the spatial extension spatialite, which has it's own spatial index to query vector data in a given extent. Possibly a starting point: How to build Android spatialite?


2

If I understand you right, you want the opposite of a buffer. Then first, you need a polygon of your area of interest (AOI), say the border of a state or something like that. Second you calculate your distance buffers which you could clip from the previous AOI polygon. That should give the "outside" of the buffers.


-1

you could also use Left("ZIP", 5) to select features with 5 digits.


1

Well I had that problem with Hec-geoHMS while trying to create the basin model file. To fix this I implemented the steps mentioned above and I did not change the output destinations of any files on any operation starting from (Preprocessing) so by default it stored them in a folder called (Layers). The error didn't happen again due to me "going with the ...


0

I was able to use the randomForest package to answer my question which I explain in more detail here: http://stackoverflow.com/questions/34864182/predict-estimate-values-using-randomforest-in-r


3

Once you did your analysis you can Copy your output with arcpy.CopyRaster_management. Where you can specify bit depth through the pixel_type arg. For example - arcpy.CopyRaster_management("inrast","outrast","","","-9999", "","","8_BIT") You can then delete the earlier output to cleanup.


1

This works for shapefiles only! In windows Explorer use wildcard WATER*.shp or similar to locate them. Select them all in search result, drag and drop to your mxd


1

The good news is you can achieve this without 'learning' Python coding. The bad news is, you still need to use Python code! Open a fresh instance of ArcMap, go to the Geoprocessing menu and select Python. This will open the Python window. Since there are so many datasets to be added (and therefore drawn), I recommend pausing the data view before proceeding. ...


1

As you suggested in a comment to the question, convert each enrollment value in the GDB to an enrollment density by dividing it by the block's area. Convert this layer to a grid. Compute its focal sum using a 5 km radius. Multiply that, if you like, by the area of each grid cell (equal to the square of the cellsize). Notice that this cancels out the ...


2

You can try enabling it via the Python window (under Geoprocessing > Python). Open a Python window and enter: arcpy.CheckExtension("Spatial") That will tell you if a Spatial Analyst license is available. If it is, enter the the command: arcpy.CheckOutExtension("Spatial") That will check out the license and you'll be able to use the Spatial Analyst tools. ...


-3

Got it more or less, by simple "supervised classification" :) (Image classification tool)


0

I found the solution interesting (and a little bit funny). I worked with ESRI Support on this yesterday (I finally decided I needed to finish these edits) and the first thing they had me try was to open a blank MXD and copy the parcels layer over into the blank project. I started an EDIT session and everything snapped into place right away! I didn't get a ...


2

I had the same problem and simply convert .xlsx to .csv only helped to display the x coordinate. I used the table to table file to create a new table from the .csv file and define the field type to be numeric. After that it worked. To me it seems to be more of an excel problem rather than an ArcGIS 10.3 problem...


0

The asker provided this answer within their question, so it has been cut/paste to here: I figured out what the problem was. I was letting it run as a background program so it had no idea about the current workspace.


3

I would suggest reading up on spatial statistics. In particular, I would look at spatial autocorrelation and clusters. The ArcGIS Resource page on the Spatial Statistics toolbox might be a good place to start.


1

Try this, use IActiveView interface to set the current view of map private void button4_Click(object sender, EventArgs e) { IMap map = mxdoc.FocusMap; // get activview of the map IActiveView activeView = (IActiveView)map; gl.map = map; ILayer layer = gl.getSelectedLayer(comboBox1.SelectedItem.ToString()); ...


1

I was asked this question today ("How do I identify if a featureclass has curves) and was given some arcpy code suggestions. Modify the following code as you see fit (a flag variable instead of a message for example) geometries = arcpy.CopyFeatures_management("inputFeatures", arcpy.Geometry()) import json for g in geometries: j = json.loads(g.JSON) ...


0

Three things to check when you cannot see the Attachments (paper clip) icon in the Attributes window are: That you are using a Standard or Advanced level license - you cannot add/edit/delete attachments with a Basic license That you have started editing That you have the attributes of the correct layer active within your Attributes window


1

You can use the Spatial Adjustment tools to transfer either/or attributes and geometry. If you are just wanting to transfer the geometry just tick the box and do not include any attribute fields.


0

If you have a table of the 1700 points to remove, you can display these points as XY coordinates. Select all of the original shape file points then use Select by location to remove from the selection the points that match the 1700. This selection can then be exported as a new shape file.


1

Try to "Select by expression" under Geometry you will find $xand $y to build the expression you need. You can then use "Save As" and check only selectet features to save the selection to a new file/shape. edit: I missed the arcmap label, still this should be possible there too.


-1

Not sure if this will work for you, but we've found that tables built in MSWord and pasted via clipboard (as an EMF) seem to behave much better than Excel ones.


11

I assume you have installed comtypes successfully, according to the following SE Q/A: -How do I access ArcObjects from Python? import arcpy from snippets102 import * from comtypes.client import GetModule, CreateObject import comtypes.gen.esriFramework as esriFramework import comtypes.gen.esriArcMapUI as esriArcMapUI import comtypes.gen.esriCarto as ...


1

The solution to the problem is to use the RGB rendering by setting the property below. rle2.Force2RGB = true; For some reason the exported raster file has to be RGB. The second thing - once I imported the produced raster to ArcMap the colors where wrong. This is because ArcMap applies some default renderer properties to the raster. To overcome this ...


2

If the featurelayer is selected in the TOC then you can use the DeleteLayer method of IMap. Otherwise you need to first disconnect it from the data source by casting the layer to IDataLayer2 and then calling the disconnect method. This is mentioned at the bottom of the help file: IMap.DeleteLayer Method Also it would be a good idea to catch your exception ...


0

Have you tried changing the double quotes ("") to single quotes (' ')? That helped my SQL code run smoothly.


2

When working with tools, both models and scripts, the output is only added to the ToC if the particular output is a parameter. Parameters control interaction between the tool and the map. In a script, use something like the following to set the output arcpy.MakeFeatureLayer_management(layer, temp, where_clause) arcpy.SetParameterAsText(0, temp) This help ...


0

7 yo script to do the job: # Import arcpy module import arcpy, traceback, os, sys from arcpy import env env.overwriteOutput = True try: # input folder with shapefiles or rasters inputFolder = arcpy.GetParameterAsText(0) env.workspace = inputFolder # output folder for tiles shapefile outputFolder = arcpy.GetParameterAsText(1) # table ...


1

An out-of-the-box ArcMap tool that can do this is Data Management Tools > Features > Minimum Bounding Geometry. This will create a polygon feature class containing one polygon that depicts the extent of your features. You can do different things with this tool. To create a polygon feature class containing a single feature depicting the extent of all ...


0

Thanks to Stefan for help with the solution in comments. I'll explain below in case this is helpful to others in the future. Here's the modelbuilder image for what worked for me in the end. Model Created a single file gdb filled with the single image mosaics and trimmed the outer pixels for every one. Created the File Geodatabase manually prior to ...


1

Are you sure you didn't double click one too many times to get to the bands list? if you go back one up, you should be able to see a composite band layer, that contains all the 13 sub-datasets, even if it is clickable. Do not click it and add the composite image as it is. I am assuming your 13 subdatasets relate to the number of bands you have on the MODIS ...


2

I believe the Euclidean Distance (Spatial Analyst) tool will accomplish what you're after. The tool creates a raster file where each cell displays the distance to the nearest input feature. For your weighted analysis, you could then reclassify the EucDist raster into discrete distances (eg 500-1000m). ...


1

There is an ArcGIS 10 compatible python script which will convert a polyline to spaced points. Using this you could create a point along the river line spaced at 1 mile intervals - would that do? You could also do it manually using the "densify" tool, using the distance parameter, followed by "convert polyline to points" based on the vertices created by ...


0

It is possible consuming the feature service in ArcMap limited to query the data (e.g. select by attributes) but not allowing the download/export/save of it?


1

You might attempt to set a "precondition" by linking the mosaicmb variable to the Add Raster To Mosaic Dataset a second time, and choosing "precondition" when the connect tool of ModelBuilder shows it's context menu. A pre-condition will ensure the File Geodatabase and Mosaic Dataset will be created in advance of the Add Raster To Mosaic Dataset being run. ...


0

The ArcGIS Online Webapp Builder is something for you. You can read all about it over here: http://doc.arcgis.com/en/web-appbuilder/ Here is some more information about analysis in ArcGIS Online: http://www.esri.com/esri-news/arcwatch/0813/perform-gis-analysis-in-the-cloud-with-arcgis-online


0

@crmackey you are certainly right with your solution how to deal with webservices requests using standards, thanks! Later we found what we need using an ArcGIS GUI way: Having the webservice published with Feature access capability we add in ArcCatalog a GIS server connection to Use GIS services and then added Feature data to the TOC in ArcMap.



Top 50 recent answers are included