Tag Info

Hot answers tagged

8

If you have an Advanced license, you can use Erase. If you don't, Union is an option: run the tool then delete resulting features with attributes from both inputs and with attributes from the second layer only.


4

Option 1 I'm not sure you can add here.com using that dialog, it's specifically for OGC Web Map Services (WMS), but Here.com isn't as far as I can tell an OGC WMS. Option 2 here.com exposes both a JavaScript API and a REST API, so you should be able to do something programmatically.


4

that's nearly it, but the referencing of the field should be done on the field list, not the field name fieldList = arcpy.ListFields(r"C:\your.shp") for field in fieldList[19:]: print field.name


3

Instead of import sys.arcpy, try import arcpy


3

I can't tell you how to do it in ArcGIS, but with QGIS (free) it's pretty easy and straight forward. Note: Stick with the 2.6.1 version, as 2.8 is still a bit buggy. As i do not have your data, i downloaded some maritime census data from OBIS. 1) Open QGIS and install the Heatmap and OpenLayers Plugins 2) Import Web>OpenLayers>GMaps>Satellite as a ...


2

Your model fails because your input shape files have names that contain spaces. As feature class names cannot contain spaces, you need to use add the Calculate Value tool to your model to remove spaces from your inline variable "Name" and replace them with underscores. In the model below, the Name variable is precondition to the Calculate Value tool. ...


2

Since your error is Invalid destination path, the script doesn't like the output file name (presumably the two slashes at the end). There are a few different ways to put that output name together. I'd personally do something like: import arcpy import os mxd = ...


2

if you have a geotiff you can write this information in the header. Open your .prj in a text editor to identify the code (EPSG code, see spatialreference.org if it is not in your .prj). Then you can use gdal_edit.py to define the projection (without writing a new file). Example below with the EPSG code of WGS84. gdal_edit.py -a_srs EPSG:4326 yourimage.tif ...


2

No need to write a function here. Just hit the Python radio button, and then write this into the box: Address: + " " + str(!Address_No!) + " " + !StreetName! + " " + !Street_Ty! What is important: - field names are represented by their name but embraced by exclamation points: ! - any numeric field needs to be converted to a string when concatenating with ...


2

Parcel Fabrics add a lot of overhead to manage. I would say it is worth it IF: 1) you need to manage the legal descriptions of the properties 2) you need the accuracy to be survey grade (which it appears you don't) 3) you need to manage parcel changes over time (subdivisions, boundary line adjustments, etc.) From a county government perspective, it is ...


2

I would suggest creating a new field and then using 'select by attributes'. Do this for each of your three categories and populate your new field with some common value (ie. 1, 2, or 3). You could then base your symbology on this new field and properly show your three different symbols. Bit of a work around but that is how I would approach this problem.


1

I suggest few modification to your model and it should work, but in general you are on the right way. My data (hopefully as yours) include: Dealers point feature class and Sales point feature class. Each sale row has a dealer ID which relates the sale to its dealer. My modifications are: I used the Iterate by Row. Iterate by feature iterates through ...


1

Here is an example of a SA script that I run from the command line: import os,sys,arcpy if (len(sys.argv) != 3): arcpy.AddError("Incorrect number of parameters") # this script has 3 parameters sys.exit(0) if arcpy.CheckExtension("Spatial") == "Available": arcpy.AddMessage("Checking out Spatial") arcpy.CheckOutExtension("Spatial") else: ...


1

Create a Cost surface where your wetlands and the water area get the value 1 and all the other areas shall be NoData or extreme vals like 100,000. After that you can create an Cost Distance surface from your wetlands on the Cost Surface. Done. If the Cost Surface value is 1, the Cost Distance values will be map units. Cost Distance interpretation in ArcGIS ...


1

This could be cleaned up a touch, but it works. If I had pandas installed I would have tried to give it a go, but I didnt.... import arcpy import csv arcpy.env.workspace = r"D:\Data\Raster\Dems" headers = ["RNAME", "ROWCOUNT", "COLUMNCOUNT", "MAX", "MIN"] outputCSV = r"D:\Data\Raster\Dems\stats.csv" wfile = open(outputCSV, 'wb') csvwriter = ...


1

You appear to be encountering a known limit when converting line and polygon labels to KML. This is documented as Technical Article 43000: Labels do not appear in Google Earth after converting to KML: This is a known limit. Google Earth only displays labels for point features (placemarks). To display labels for line or polygon features in Google ...


1

I would use a simple Python script within the field calculator tool. Add this in the Codeblock box: def my_concatenation(address_nr, my_street_name, my_street_ty): my_address_nr = str(address_nr) # converts the address number into strings so that it can concatenated with the rest. my_result_string = "Address: {0} {1} ...


1

You are not supposed to export any of those feature classes or uncompress the geodatabase. From the StreetMap Premium for ArcGIS Technical Restrictions: The detailed street layers (Geocode, Streets, and Routing_Streets) are protected; therefore, you cannot export these layers to a shapefile or other feature class. You also cannot use any ArcGIS ...


1

I can't be sure from your description but it reads as though the second sheet is identical to the first one, the only difference being the additional description column. So I'll work on that basis. It reads as though some or all of your x and y values may be text. So the first thing I would do is add another two columns (say, 'X_new' and 'Y_new') and, ...


1

No, it is not possible. A map service will always have MapServer enabled because it is the core property. Feature Access and others (such as KML, Mobile, Network Analysis etc.) is just additional capabilities which you can enable when needed. So, there is no such service as "Feature Service" (even though this term became widely used); there is only "Map ...


1

After adding the layer to the in-memory mxd, you should save the mxd using: mxd.save() or mxd.saveACopy (r"D:/arcgisserver/directories/my_mxd2.mxd") to change the layer name, simply change the name property of the layer: addLayer.name = "NewLayerName" Update: To rename the newly added layer you should make a reference to the layer first: allLayers= ...


1

Perhaps something like this? Code block: def GetTexture(Text1,Text2): if Text1 is None: return Text2 else: return Text1 With expression NEWTEXTURE = GetTexture(!TEXTURE1!, !TEXTURE2!)


1

If you initially checked out your data from a geodatabase you should be able to check it back in to edit it. What are the "limitations" of your software? If you also checked the axf file out to edit in Arcpad, then you will be able to edit it in Arcpad.


1

If you're using QGIS you can use the toll Difference that will give you the difference between the two shapes.


1

Start a new, blank map or in your current map go to step 2. Double-click or right-click > properties on the dataframe (named Layers by default) in the Table of Contents (ToC). Go to the Coordinate System Tab, drill down through folder tree to Projected Coordinate Systems > UTM > Europe > European Datum 1950 UTM Zone 31N and highlight it, then click Ok. ...


1

IContentsViewSelection should work for you. http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//000v00000064000000 This is VB, but you should get the idea... Dim pCVSel As IContentsViewSelection = My.ArcMap.Document.CurrentContentsView Then: pCVSel.SelectedItems.Count will give you the count of selected items in the TOC.


1

Inside an MPK you'll find an MXD and a fGDB. (You may find shapefiles, tiffs or other files depending on how the MPK was created, but odds are you'll find data in the fGDB). With this knowledge, if you have an application other than ArcGIS that can read MXDs and fGDB, you can simply unzip an MPK (using something like 7zip) to get at the contents. As for a ...


1

By just changing the symbology you can inspect the results visually, nothing else. By doing that you simply set a flow accumulation threshold what you want to see. This of course depends on the case and there are no exact answers what is right amount of flow accumulation for channel initialization. This visualization trick is of course very useful to ...


1

Personally I've never found looking at the flow accumulation raster directly to be all that interesting. The purpose of messing with the cartography is to simply show you where the greatest flow accumulation is (the below example classifies it into two groups, one of which is transparent, the other is blue) from this you check if the major parts of your ...


1

This should work: import arcpy, os, sys InFolder = sys.argv[1] OutFolder = sys.argv[2] arcpy.env.workspace = InFolder for ThisRas in arcpy.ListRasters(): arcpy.MakeRasterLayer_management (ThisRas,"Layer"); arcpy.SaveToLayerFile_management("Layer",OutFolder + "\\" + ThisRas + ".lyr",True,"CURRENT"); arcpy.Delete_management("Layer") It ...



Only top voted, non community-wiki answers of a minimum length are eligible