Tag Info

New answers tagged

2

Use the Composite Bands tool of ArcGIS for Desktop to extract the bands. Navigate to your image file, double click and select a raster band to export.


1

I'm sure this isn't as simple as you'd like, but it will give you the midpoint your looking for. Along the bottom of your fishnet you could create a polyline the width of your fishnet. The snapping tool will pick up on the midpoint of your line, start another line from that point. Make sure the second line is the height of you fishnet and you should ...


0

If you're willing to use a web service for this, you may want to sign up for the beta program underway for their World Elevation Service.


0

If the Shapefile is "M aware" the Shape column will display "Polygon M". Also, the Source tab of the Layer's Properties will read, "Coordinates have measures: yes". I just created a new Shapefile with Measures and was able to edit the M values from the Edit Sketch Properties Window. I had to start an Edit Session, of course. Each Vertex of a Polygon has its ...


4

It works similarly to the Append tool. It uses the target dataset coordinate system and adjusts accordingly. That being said, if you are loading data from a coordinate system that needs a transformation (E.g., NAD83-WGS84, NAD27-NAD83), I'm not sure how it chooses which transformation to apply. It may just default to the most common, which may not be ...


3

That appears to be a fixed width text file, not a CSV. It will be much easier to import into ArcGIS if you first save it as a CSV using Excel. Recommended steps: Edit the text file, renaming ID to ID_Num and veg name to veg_name then save Open the text file in Excel as a fixed width file. Carefully line up the columns - Excel will see "swamp 1" from the ...


1

This was my final solution. There are basicaly two tools that are needed to convert *.xyz to arcmap friendly raster format. You can use this script when adding a script tool to arcmap toolbox. Some parameters are set for my example (e.g. resolution is 5 m). import arcpy arcpy.CheckOutExtension("3D") workspace=arcpy.GetParameterAsText(0) arcpy.env.workspace ...


1

concatenate all your xyz files together use a csv2dbf converter, because your xyz file is a form of csv file. There are tons of those available by googling. I found python source code at https://github.com/fitnr/census2dbf/blob/master/census2dbf.py , which seems to be a generic csv2dbf python module, despite the name. import this big dbf into arcgis or ...


8

Yes, it is possible. Before you can add a feature class you need to turn it into a feature layer. This arcpy code should help: import arcpy FC = r"C:\...\featureclass" arcpy.MakeFeatureLayer_management(FC, "nameoffeatureclass") MXD = arcpy.mapping.MapDocument(r"C:\...\your.mxd") DF = arcpy.mapping.ListDataFrames(MXD)[0] layer = ...


6

I found this page about the ESRI World Imagery basemap with links to a Summary and Terms of Use. The Summary says "You May: Include screen captures or a printed or plotted maps in the following ways... In academic publications (research journals, textbooks, etc.)"


0

This is definitely clumsy, but without knowing more about your data this should work: Each polygon needs to have some field with a value of 1, if your shapefiles don't already have this, then you will have to batch add fields to the lot. Then use the Union tool to union ALL of your polygons, this will create individual polys for each overlapping area. With ...


0

A brief search seems to indicate that ZTV is what a viewshed is called in the UK, so I'm going with that. You will need to use the Viewshed tool in the 3D Analyst extension. You need to add the OFFSETA field with your offset value to your observer point(s). When the observer features dataset is a point feature class, each observation point can have a ...


7

I just found this ArcGIS Forum Discussion that suggests that you should be able to but you will need to follow the advice therein about how to cite and where to find Terms of Use for the particular basemap(s) you are intending to use.


1

This may help to some degree (as I think it is what you are after): You could use the Split Line at Point Tool to split the line where they intersect the points. Then using the Split line by distance function in the Editor tool bar, split the line by 500m. In saying this though, this will only work on 1 line at a time, so if you had 100 lines to buffer, ...


2

Are you saving it on one computer and opening it on another? If that's the case, you will want to look at setting relative paths. If your layers have red exclamation points next to them, it means it cannot locate the source data, and you will have to manually point to the source Another thought is that if you are using a served basemap, it might be ...


2

As far as I know, this can't be accomplished directly in the symbology of a layer easily. You'll have to create a new field, such as "Type" or "Symbology Type", and then calculate the type/symbology of each record based on an expression. The simplest way would be to use a definition query to create groups of layers, then field calculate your new ...


0

LIKE 'Field%' will be need to get the field, and the field ???. the space. Here are examples.


2

Defining dynamic hyperlinks through Identify results You can dynamically add a hyperlink to a feature using the Identify tool Identify. With dynamic hyperlinks, you do not use an attribute field to supply the hyperlink targets. The hyperlink target you specify is associated with the identified feature. This association is stored with your layer. ...


5

A nice Pythonic way of tackling this is to use the filter function, which takes two inputs: the value you'd like to exclude, and the input object (any interable). After that, just sum the result: def stack(*args): return sum(filter(None, args))


2

@ustroetz answer is almost correct. However, it won't necessarily give you the correct results. When you mutate the list while iterating over it, you may skip some values. For example, if your list is defined as such: mylist = [None, 3,4,5,6,7, None, None, 4,65,23,6, None] and you use this code: for item in myList: if item is None: ...


0

I use following code snippet to get selected features from map for a specific feature layer: public List<IFeature> GetSelectedFeatures(IFeatureLayer featureLayer) { IFeatureSelection featureSelection = (IFeatureSelection)featureLayer; var selectionSet = featureSelection.SelectionSet; IFeatureClass featureClass = featureLayer.FeatureClass; ...


4

Make sure you're using the layout view. One of the 3 little buttons under the map data window, the left is data (map) view, the middle is layout view--this is when the layout toolbar is active, the right is refresh.


0

Here are two examples of getting values from the selected features. This one lists all the values for the feature IMxDocument pMxDocument = ArcMap.Application.Document as IMxDocument; IMap pMap = pMxDocument.FocusMap; ILayer pLayer = pMap.get_Layer(0); IFeatureLayer pFeatureLayer = (IFeatureLayer)pLayer; IFeatureClass pFeatureClass = ...


1

The following python field calculator code should do the job: total = stack( !field1!, !field2!, !field3!) Pre-Logic Script Code: def stack(*args): myList = list(args) for item in myList: if item is None: myList.remove(item) return sum(myList)


2

Massi, You would use automation to drive ArcMap from another application. For example I have developed extensions that are referenced by MS Access which will open up ArcMap, load an MXD fire off a select by attribute query and zoom to the selected extent. This can all be achieved using automation. Look at this page, there is an explanation and sample code. ...


2

I discovered the solution to this by accident a couple of weeks ago. It's so simple it's almost too good to be true: Select the formatted cells of interest in Excel, Copy, then Paste into an active Arcmap Layout dataframe. Size and place to suit. Done. To ensure you don't get any jpeg jaggies use the same font size in Excel as you would in Arcmap if ...


0

So this is how I fixed my issue of not being able to control if someone using my tool was in an edit session or not: #Reference to mxd and layers script here. Then... try: fields = ("OBJECTID") upCursor = arcpy.da.UpdateCursor(waterValves, fields) with upCursor as cursor: for row in cursor: pass except: ...


11

Another alternative using Python would be: !fieldname!.upper() as described in the online help Calculate Field examples.


5

You can use UCase UCase( [fieldName] )


1

Check out http://ESRICertification.com. There's a bunch of arcgis desktop, developer, and SDE questions on there to quiz yourself.


0

Bingo ! I got it to make the Font Size reduce without having to change the Font Size down. Here is what you can do: You can make the label reduce its size to "fit" inside the polygon. Here is what I did: 1) 2) Then right click on the layer you wish to perform reduce font size: 3) Hit the Layer Properties and then go to Other Options: 4) When you ...


0

It looks like you are doing this on a polygon layer. There are some special problems with polygons (i.e. scale, other base data, edge of sheet misplaced labels) But I use 2 or 3 three settings in maplex (I see you are using 10.1 so you now have access to that. I prefer to have my labels always in the center and always in the polygon. But that is not what it ...


2

One very handy way to have full control of the labels is to convert them to annotation. Right click on the layer > Convert Labels to Annotation... > Store Annotation In the Map > Convert. From there, all you have to do is select the label and drag it to wherever you like.


0

I am not aware of a current solution but recommend you add your voice to this ArcGIS Idea.


0

Try the "Locate Features Along Routes" tool under the "Linear Referencing Tools" from ArcToolbox. It will create a separate table with the measurement between points in it. Since your points are not in order, it may affect the result (not sure about that). Hope it will help. :)


0

Have a look at GPSBabel, it's free and can convert between many different formats.


1

Use DNRGPS it allows you to upload and download a variety of GPS formats to your gps and hence to any GIS softward package...and it is free and well supported.


1

I'm not sure these options are what you're looking for, but hopefully one or more will be useful. It's possible to pause the drawing of the map in data or layout view by clicking the pause button at the bottom left of the data frame, but it's designed more for when you're changing a layer's symbology or properties, not working directly in the map or ...


1

You are trying to view data from two datums so will need to use a Transformation. I'm not familiar with datums used in Qatar but on the Coordinate System tab of the Properties for your data frame you should be able to find a Transformations button which should offer you choice(es) based on which datums are in the data frame. Try these steps using ArcGIS ...


2

What they're asking you how to do is called a "Spatial Join". It's a very common task in GIS software. You can find the ArcGIS help you need here. Once you have joined the data together, you can update your fields with the joined data. Now that you know the terminology, you can search this site for more questions relating to the topic. Here's a video on ...


0

After multiple tests, since my requirement is to use an OleDbWorkspaceFactory, It's impossible to add to the document the results from a query. The only way to add these results it to create a view from the query (CREATE VIEW statement) and then do an OpenTable on the view


3

You need to go to Customize> Customize Mode on the Menu bar, in ArcMap. Once the Customize dialog appears, click on the keyboard button. For more details, have a look at this help article: Assigning a shortcut key


0

The ESRI example do indeed not work at all. This method works fine: for row in rows: feat = row.getValue(shapefieldname) print "Feature %i: numpoints=%i" % (row.getValue(desc.OIDFieldName), feat.pointCount) print 'Number of parts: ', feat.partCount partnum = 0; while partnum < feat.partCount: print "Part %i:" % partnum ...


0

Perhaps not the most elegant solution (based on advice from ArcGIS Forums), but it works for me: fieldNames = getValueList("shapefile", "FIELD") fieldNames = map(str, fieldNames) # blank layer for results called 'merged' arcpy.CreateFeatureclass_management("C:\\PATH", "merged.shp", "POLYLINE", "shapefile.shp", "SAME_AS_TEMPLATE", "SAME_AS_TEMPLATE", ...


2

A good starting point to learn about such recalibration of routes is the Calibrate Routes tool documentation.


1

The term for what you are doing is a suitable site analysis and here are links to two approaches: Using vector data Using raster data (needs Spatial Analyst extension) Hope it helps.


2

How about using the data access module? It looks like you can start an edit session with this module. A few caveats: I have not tried this module and the am not sure if it is 10.0 compatible. (New in 10.1?) Example 1 shows the use of a with statement. This is a great paradigm to implement as it handles potential exceptions well. You might be able to ...


2

@PaulRamsey wrote a very good blog article that described how Pierce County, WA integrated open source with closed source software. He also gave a presentation called "Open Source for IT Managers" (if you don't want to watch the whole thing, start at 42:35), which describe some of the cost savings, and issues, of using both closed and open source. In many ...


4

When running something like this in a Toolbox Tool, you indeed want to use Tool Validation. For example: class ToolValidator: """Class for validating a tool's parameter values and controlling the behavior of the tool's dialog.""" def __init__(self): """Setup arcpy and the list of tool parameters.""" import arcpy self.params = ...


2

Yes, in the Config.esriaddinx just remove the text within the categories tag and re-build your solution: e.g. category="" This should eliminate it from being listed in commands within the Add-Inn category.



Top 50 recent answers are included