Tag Info

New answers tagged

0

First go through my answer here: http://gis.stackexchange.com/a/104262/14435. This will let you understand how to create a network dataset. Go though an Esri KB exercise - I recommend this to anyone who starts working with NA. It won't take much time but will give you all the basics you need to create a network dataset on your own (with your own data). Ask ...


1

Ok Here is what I would do. Use the "Extract Values to Points" tool under "Extraction" which is in "Spatial Analyst Tools". You will use your point shapefile as the Input Point Feature and your continuous raster as the input Raster. I think that may be all you need to do. BTW instead of a 1-word comment, sometimes it is good policy to edit your question. ...


2

This is a great example of how relatively simple arcpy.mapping scripts can offer more functionality than Data Driven Pages. First, if you haven't already, run a Spatial Join with your trees as your target layer and your districts as your point layer using the INTERSECT match option. It's better practice to perform a spatial join and apply a definition query ...


0

Are you sure you are using the right "cut" tool? because the results of a cut are two different shapes.Maybe you can try to stop editing and first try with another layer and see if the issue still persists.


0

You can definitely achieve this with arcobjects in any of the .net languages. Your question at this point is very broad. Most of the technical aspects you will find many examples of when performing a internet search such as; how to create ArcGIS add-in button, how to connect to database table, how to populate a data grid based on sql SELECT query, ...


1

Are you looking for atan2 ? It's precisely meant to deal with this signs mess. https://docs.python.org/2/library/math.html#math.atan2


4

Could you do something like: Pre-Logic Script code: def mathFunction(y1, y2, x1, x2): return math.Atan(math.fabs(y2-y1) / math.fabs(x2-x1)) * (180/math.pi) Field = (on the bottom)...populate with your fields for y1,y2,x1,x2 mathFunction(!FIELDY1!, !FIELDY2!,!FIELDX1!,!FIELDX2!) See Python doc on the math module.


-2

After clasiification you can Convert Raster to Polygon in Arcgis and then Open the attribute tables to fetch the area of each class of polygons.


1

Hornbydd is correct. There's an out of the box tool to do this called data driven pages. Data driven pages is based on the old school DS Map Book. It gives you the ability to make a map book series and strip maps. There's a handy cartography tool box with a tool for building a polygon index grid over data (like your lines), this in turn can be used in data ...


0

To convert 2d contours into 3d use OGR2OGR with a few switches: -dim 3 -zfield Z_Field_Name Example: In this case the field with the elevations is called 'Altitude' ogr2ogr D:\SomePath\Output3d_ogr.shp D:\SomePath\Input2d.shp -dim 3 -zfield Altitude Or even better still, directly to DXF with OGR2OGR: ogr2ogr -f DXF D:\SomePath\Output3d.DXF ...


2

You have coordinates in DMS (degree minute second) format, and need to get them into DD (decimal degree) to import easily into ArcMap. While in Excel, make a new column. This would be the formula to just convert from DMS to DD: degrees, plus minutes divided by 60, plus seconds divided by 3600. =MID([DMS], 2, 2)+(MID([DMS], 5, 2)/60)+(MID(A6, 8, 4)/3600) ...


2

Model builder, to my knowledge, does not expose the data driven pages functionality that you access on the toolbar. If you want to automate map output with data driven pages then you must use python and arcpy. Search help for DataDrivenPages (arcpy.mapping). From this page there is also a link to building map books.


2

You can use the Feature Vertices to Points tool with BOTH_ENDs option checked, on your lines, that will give you start/end points of the lines. Then Add XY Coordinates to populate the resultant points with Lat / Long values. Another way to go about your workflow.


2

Did you take a look at any those lines to see what might be going on? Their start and end points may actually be in the same place, if they were drawn incorrectly. Select one of them and zoom to it. If it shows up as a point, that's why the XY coordinates of the start and end points are the same. Depending on the coordinate system you're using, it's also ...


1

The following ESRI Knowledge Base artcile details the steps to turn your data from Excel into a shapefile. Hopefully you will find this is all you need. http://support.esri.com/en/knowledgebase/techarticles/detail/27589 Note: You will have to convert your coordinates to decimal degrees. Following @Erica's comment, and indeed a re-reading of your ...


0

You are misunderstanding how Clip operates. From your question you are attempting to clip a line layer with another line layer. Per the help file (see the second to last graphic), if both inputs are lines the output is all lines that exist in both layers, aka are coincident - essentially an Intersect. If you want to clip the roads layer using the NMW ...


0

ArcGIS does not transfer Z attribute when exporting to CAD. Seek 3rd party software, something like arc2cad.


0

SA free approach is 1) convert raster to points, 2) spatial join points to polygons 3) select values greater 50 4) apply summary statistics using polygon id as case field. Could be very slow, depending on raster size


0

I have found that if you use the reconcile versions tool from the data management tool box, you can reconcile versions without being in an edit session. You can just drag your database connection in to the Input DB connection. Perhaps that may be an alternative solutions to what you are looking for?


2

You can do this in two steps. First, use Con (Spatial Analyst) to convert cells > 50 to 1 and all other cells to 0. Then use Zonal Statistics as Table (Spatial Analyst) to count the number of "1" cells within your polygon.


1

The only way that I know of to do this, requires spatial Analyst so perhaps I'll write it up as such and if it is possible another way, someone else will write that up as a separate answer. With the Spatial Analyst Extension, the tool to use is Zonal Statistics. I typically use Zonal Statistics As Table. I typically use a projected coordinate system ...


2

As mentioned by @nicholaschris, Zhu et al's paper is nice, and they have a tool associated with it. Note that the shift is a function of 1) the position of the sun (doesn't vary on one image), 2) the position (XYZ) of the cloud and 3) the elevation of the ground (2 and 3 do vary). So that a unique shift could not be enough. To answer the question with ...


1

The problem with this statement is the parenthesis.. Compound statements need to be enclosed in a 'block': Con((Condition1) | (Condition2),True_value,False_value) The correct syntax for the field calculation is: Con(("%DEM_Aspect%" <= 90) | ("%DEM_Aspect%" >= 270),1,0)


3

One of multiple solutions. Create points inside polygon, fishnet will do. Add vertices of polygons to this set. Create TIN. Export tin triangles and clip them: Updated answer on points creation. Script below works from ArcGIS and takes 3 parameters: Layer in TOC. Used to define extent. Distance between points, type double Points layer (empty) import ...


0

an accepted answer should mean it is working and correct, so why isnt this working for me ? I did the same thing and nothing happens when I click on the map. I even tried this twice, first time, I created a class that inheret Basetool, nothing happens... and then I tried to create a class that implements Itool implemented the members. again run the tool no ...


0

As I mentioned in comments, no join is currently possible because there are no records in one table to join those from the other to. The simplest, easiest, fastest thing to do is create your line features and enter a unique ID attribute for each record that is found in the table you already have. You can then join your table to the features using that ID ...


-1

This appears to be a really old thread but I recently ran into this same issue using ArcMap 10.3 basic. I ran the tool using python within ArcMap and it worked but the tool from the tool box was not working. Here is an arcpy code: arcpy.env.workspace = r'ENTER WORKSPACE PATH' arcpy.LayerToKML_conversion('INPUTFILENAME.lyr', 'OUTPUTFILENAME.kmz')


6

You may have some "unnecessary" files being created but ArcMap requires 3 files at a minimum for a shapefile to be usable. The absolute minimum is: SHP, SHX and DBF. The PRJ is also very helpful because it defines what coordinates system your shapefile is in. Some of the others are related to spatial features and are not strictly necessary, but ArcMap ...


3

That's just the way shapefiles are. Each of those extra files contains data that is pertinent to how the shapefile is read by the GIS software. For example the .prj file stores the projection information for the shapefile, if you delete it the GIS software will see your shapefile as unprojected. Another is the .dbf file - this stores all the attribute ...


1

I have done this in the past, though it is exactly the reason I began to store annotation as feature classes as @Chris W suggests. I strongly recommend that you try that out, because before you know it, you're going to have 3 data frames to deal with... and then the client will want to change the scale... However, I was able to get this to work just now ...


2

It depends which tool you're using, but in my experience (I haven't used every single ArcGIS tool), the output units are usually the same as the units used in whatever the source layer is for your calculation. So for your example, if your polygons are in a coordinate system that uses meters as the linear unit, the polygon volumes will be in cubic meters. The ...


1

The problem is partially going to be a function of scale. Depending on the scale of your map, any given texture might look incorrect because of the pattern/detail it's trying to represent. Easiest to see just by going to Google maps and turning on sat imagery and zooming in and out and noting how crops just become a blur. In your example, if you like the ...


0

Iterate Features is meant to iterate features (i.e. feature class) within a geodatabase or a feature dataset. You need to change the iterator and use iterate rows instead. If it still fails, please provide a better image of your model, since it is too small. Yet your work flow sounds solid, except the iterator.


0

Should have searched more first... This setting is available in the AdvancedArcMapSettings utility which can be found in C:\Program Files (x86)\ArcGIS\Desktop10.3\Utilities folder. Go to the Editor tab and adjust the value for the option Search tolerance for drawing vertices of features. The default is 5px.


1

Here is a python solution (in field calculator). I give an example with a polygon layer. Each one holds a name value in its name Field, e.g.: "A" and "B". After creating representaion for this layer, I have got this image: Namely, I have created a 1-rule representation, using red stroke line with width 1. Than I would like to change "all" the strokes ...


0

You need to come up with a unique name for each raster output. In doing this, you need to remove the ".shp" extension from the shapefile in order to use this in the output raster name. Also, keep in mind that you need to be aware of input and output raster extensions in your script. import arcpy, os from arcpy import env from arcpy.sa import * #set work ...


0

Another option would be to work with normalized census boundaries, where data from the old geographies have been modified (split, combined, or apportioned as the case may be) to fit the most current boundaries. The Longitudinal Tract Data Base (LTDB) project at Brown University has normalized US census data from 1970 to 2000 to fit the current 2010 census ...


0

It is so much easier than that. Open the attribute table, right click on the column you want (most likely some Shape_Area column) and select "Calculate." Using that prompt you can convert these calculated values into the ones you want.


2

You could Use the Densify tool and set as parameter the distance you want between the point. Then you do a polygon to point processing


2

You can obtain the spatial reference of a feature class using the IGeoDataset Interface: ' Spatial reference of a feature class Dim geoDataset As IGeoDataset Set geoDataset = featureLayer.FeatureClass Set spatialReference = geoDataset.SpatialReference http://forums.esri.com/Thread.asp?c=159&f=1707&t=223709 OR '''<summary>Get the spatial ...


1

You can do this by going into the catalog and checking the properties window of each feature class under XY Coordinate System. The quickest way would be to compare WKID numbers of each layer. You can also use the Describe function to identify the spatial reference and compare them. see this for more info on this.


1

Not only does a registered rowid column need to be INTEGER (32-bit), POSITIVE, NON-ZERO, NOT NULL and UNIQUE, it also needs to be reproducible on subsequent invocations. It is not possible to manufacture a field on the fly which meets this reproducibility requirement. Therefore the only way to generate a rowid for such a non-unique view is to populate a ...


2

Both Chris W's comment and mr.adam's answer employed pairs of mxd's or multiple data frames to hold pairs of symbology. This got me to thinking about a similar approach. Multiple layer groups could be used to hold multiple symbologies (eg a "design" group and a "print" group). The user could enable the "design" group while doing design work. When the design ...


0

As far as I know, there's no way to add features to a layer created by selection. The easiest thing to do is select all the features that went into that layer, add the ones you want by manual selection or using Select by Attributes/Location with a 'add to current' method (see my answer at this question for working with active selections), and then create a ...


1

I have seen this with detailed vector data. Basically it leaks out. Polygons with duplicate vertices. Or even self intersecting. When I would use a fill or especially a hatch fill it would 'leak' out. Try running the repair geometry (i assume shape file data type) also as suggested the dissolve and or simplify would be worth looking at the results


0

Yes. What you've done is use symbology to classify the data, and symbology isn't stored in the data itself. It's either stored in the mxd, or it can be exported to a layer (.lyr) file by right-clicking the layer and choosing "Save As Layer File". Then you add the .lyr file to your map instead of the data/raster, and the symbology you set up will be applied ...


0

To address this I think you should use Spatial Adjustment to perform rubber sheeting: GIS data often comes from many sources. Inconsistencies between data sources sometimes require you to perform additional work to integrate a new dataset with the rest of your data. Some data is geometrically distorted or rotated with respect to your base data. ...


0

Possible solution, however you should provide a lot more detail in your question if you really want to narrow things down (license level available, formats of the data involved, what else you have besides parcel polygons, etc.): Buffer street centerlines by something more than the width of the road. This may require multiple centerline selections and ...


2

This is potentially a very difficult problem when the borders are ragged. A brute-force search of the optimum could require computational time that is proportional to the square of the number of cells in the image (a value that often will be in the billions, trillions, or greater). One promising approach is to relax the conditions a little bit and actually ...


1

The aesthetics might look better if you used colors that are more similar to one another, so you wouldn't get such an affront to your eyes. If you look inside national geographic, they often have basemap features in dark grays and blacks, with dividing lines in white, with a single color representing the variable they are showing. Usually a muted red. Using ...



Top 50 recent answers are included