New answers tagged

-1


0

I found the source of this issue. Sometimes the image units in AutoCAD would show up a "inches" so the scale would be wrong. It looks like some of my drawings had the units set to Unitless. I found that by making sure the drawing units were correct listed as Inches, and I set the drawing units to metres, the image would come in correctly.


0

It is critical that your map/datalayers are in a projected coordinate system when calculating area or distances. If the same projection is used consistently, you should get consistent answers when calculating geometry. P.S. If you are going to discard the area that is flooded within the pond, you can use the Erase tool instead of the Union.


0

Maybe your LAN settings in Internet Options have been changed! Check this.


0

The proper solution to the 64-bit problem is addressed in this question: Opening Esri Personal Geodatabase (*.mdb) using QGIS? Basically, it is to download and install Microsoft Access Database Engine 2010 Redistributable x64


0

Using your Trail_Data variable: # select all features query = Trail_Data.query(where='1=1') # save selected features to specified geodatabase query.save("path_to_geodatabase", "new_feature_class_name") I am constantly confused by the ArcGIS API for Python, but from what I gather, your Trail_Data variable is a Feature Collection and the query result is a ...


0

Assuming I understand correctly, I would use a buffer instead using half the distance and dissolving adjacent buffers (if you buffer each polygon by half the distance when two or more polygons are near another the sum will equal the full distance). Then, use a spatial join on your buffer using the input polygons to get the count of the number of input ...


0

Solved it by slicing my string. Don't know why the output name made a problem, but now it works. for z in mylist: inShapefiles=z basename=os.path.basename(inShapefiles)[:7] arcpy.Select_analysis(inShapefiles,arcpy.os.path.join(outputworkspace,basename),where_clause) ValidateTableName did not work for me without this change. The reason for the ...


2

I've had similar problems when writing to shapefiles where some characters in the filename causes issues (in this case the hyphen). My suggestion is to use the function to validate table names in arcpy: arcpy.Select_analysis(inShapefiles,arcpy.ValidateTableName(os.path.join(outputworkspace,z)),where_clause)


3

If you want to get the matching rasters you can zip both lists so you iterate over a list of tuples containing two rasters (one red, one nir) at a time. for rotesband, nirband in zip(liste_rotesband,liste_nirband): print 'red band: {}'.format(rotesband) print 'nir band: {}'.format(nirband) Regarding your edit, you are attempting to use the Float() ...


0

Faced with the same problem, reducing the number of columns did the trick for me. I deleted all irrelevant columns with QGIS and then the shapefile was readable in ArcMAP too.


1

In your code Polygon_Neighbors is a table. You'll need a table view to perform your selection. Polygon_Neighbors_tv = arcpy.MakeTableView_management (Polygon_Neighbors, "Polygon_Neighbors_tv") [0] # Process: Select Layer By Attribute arcpy.SelectLayerByAttribute_management(Polygon_Neighbors_tv, "NEW_SELECTION", "src_MapUnit = nbr_MapUnit") Note that you ...


0

Try this : ogr2ogr facility to convert shape file directly to MySQL Database https://stackoverflow.com/questions/39591499/extract-country-specific-openstreetmap-extract-into-mysql-spatial-table


2

Sounds like the output of the Table To Excel tool is set to Intermediate. Edit your model and right click on the green output bubble and verify it is not set to Intermediate. If it is, then un-tick it as ModelBuilder will delete it at the end of the model run, which would be the expected behaviour as it is set as Intermediate.


1

Unfortunately, I do not have an Advanced ArcMap license, so I could not use the Angle option in the Generate Near Table tool. However, I did find a work around, which (sorry for the major delay) I'm posting here in case someone else finds themselves stuck in the same situation. Here are the steps: Use the Bearing Distance to Line tool to create a polyline ...


1

You can accomplish this using a combination of a Grid Index and Data Driven Pages to divide your country into a grid, and a Multiple Ring Buffer to provide a white background outside the country's border. The following assumes that you have a polygon feature describing the country's border. The one I've used here is not a 100% perfect fit, but it will give ...


0

In the end I output the PDF as a standard sized 2ft x 4ft document, and then had the printer double the size when rendering to print. Not ideal, but got the job done to the level of quality required.


6

Subtract the INT([MEASURE]/100) value, multiplied by 100, from the MEASURE to leave the remaining 98.28 Use Advanced label expression Function FindLabel ( [MEASURE] ) DIM leftval, rightval leftval = INT([MEASURE]/100) rightval = ROUND([MEASURE]-(leftval*100),2) FindLabel = leftval & "+" & rightval End Function Basically subtracting 33500 from ...


0

Review the user file inside the DefaultDomain_Path_ folder of this location : C:\Users\username\AppData\Local\ESRI When opened the file showed strange characters (I guess it got corrupted). What I did was copy a user file from another account and copy it by deleting the corrupt file.


1

It might not be perfect, but if you have access to the Spatial Analyst extension, you could try “Focal Statistics using a 3-cell circle and the “Majority” statistic, ignoring no data cells in the calculation. The efficacy of this approach will really depend on the complexity of your zone boundaries and proximity to adjacent zones. Alternatively, if you ...


0

No. Layers are snapshots in time, so if you want others to see your changes, you need to save a map or lyr files (different filetype in Pro) out to a shared space. Then map users need to refresh their maps by adding saved layers back in to their maps. That is how symbology works; however, data changes should be reflected to everyone immediately if the source ...


1

I think your problems stem from this part of the code: If Not pMxDoc.ActiveView Is pMxDoc.PageLayout Then Exit Sub pMaps = pMxDoc.Maps pMap = pActiveView.FocusMap Dim strLayerName As String Dim strMapName As String strLayerName = pLayer.Name You get pMap from the focusmap but you have exited the procedure in the previous line if it was not in page layout, ...


1

From the address file, do a Join by Attribute on PIN field to the PIN table, keeping all records. The addresses that do not have a matching PIN will have null values in all the PIN table part of the record (the last fields). To be safe, Select by Attribute on the PIN table's ObjectID/OID field is null. (This ensures that there really is no match because ...


0

Is this what you are looking for (ArcGIS 10.5.1)? ESRI.ArcGIS.Framework.IApplication Application = this.Hook as ESRI.ArcGIS.Framework.IApplication; ESRI.ArcGIS.ArcMapUI.MapViewerWindowFactory mvw = new ESRI.ArcGIS.ArcMapUI.MapViewerWindowFactoryClass(); mvw.Create(Application); As an alternative you could use the tool to create the viewer window //...


1

One way would be to create a separate point layer and add points at each desired location where you would like the marker. With that, you could utilize the layer's character marker to customize a marker to your preference. From here, add a new field to the point layer and record the line segment's endpoint angle. With the angles stored in the point layer's ...


1

Here are two possible workarounds: 1) Populate the field with incrementing values again using Field Calculator. If you really need those values in ArcMap, go to field calculator and enter the following code block (taken from the ArcGIS Calculate Field Examples), making sure you specify Python as the parser: rec=0 def autoIncrement(): global rec ...


0

After PolyGeo's suggestion with Points To Line, I did the following steps: New sort field in Accessdata to get the right route (0-1-2-3-4-5). Create Point Layer using the Access data Then Point To Line with ID and Sort field active Lastly did a join from my old shape file with correct attributes on the new layer line layer with correct paths/routes. ...


1

A CSV file is not a spatial dataset, it is nothing more than a comma separated text file. The only structure it has is the comma. As the other commentators indicate you need to import it into a geodatabase. 2GB is well within their limits and once in as a spatial dataset with spatial indexing you could easily answer this question with a spatial Join. Also ...


0

The way I found that works best is to use the VBScript expression FormatNumber. This will only display the number to the designated number of decimal places and pad the label with zeros where appropriate. For the example in the question use FormatNumber([ZOR],2) This will address the question at hand with regards to labeling and does not relate to setting ...


2

It sounds like Linear Referencing is what you should be looking at. I began learning about it not too long ago, and I found the ArcGIS Linear Referencing documentation and tutorial to be incredibly helpful. I suggest reading them carefully, follow along and perform the example exercise, and see if they will provide you with the functionality you're ...


3

I agree with @Vince, it would be futile to attempt to convert the code backwards to such an old version of ArcMap. The modern arcpy module never existed then it use to be a gp object which you can find out about at Geoprocessor programming model. It would be a major rewrite to make it compatible. Also the language python has evolved so what you have used in ...


1

I suggest you to have a look at Zonal Statistics as Table tool. As Hornbydd commented, you cannot explicitly overlay raster and vector data. They should be converted to one or another, either manually or on-the-fly as done by Zonal Statistics as Table. Make sure you have a shape-area field calculated for your regions. Run the tool by setting zones as your ...


3

This is the workflow I'd recommend: Add a definition query to your pipes for your branch pipe (Trunk = 'No') Buffer pipes with a small distance (1 foot), dissolve type ALL Split your buffers using Multipart to Singlepart Add a unique ID value to each singlepart buffer Spatially Join buffer unique ID to your pipe features Spatially join pipe unique ID to ...


1

Consider using the IsNull() spatial analyst tool. This creates a binary raster 1 for where it is NODATA and 0 for all other values. As the output is an integer grid you can create an attribute table and simply count how many 1 cells you have and that's your area. This could very easily be wrapped up in ModelBuilder for mass automation.


3

It sounds like you don't have your Network Analyst extension enabled. From the documentation, to enable it: Select Extensions from the Customize menu in ArcMap Check the box next to Network Analyst


1

Layer Package is just zip archive and the file geodatabase is inside it along with LYR file


1

In ArcMap 10.3 and above you would be able to make a color map (.clr) file which would allow you to create custom definitions to be applied to your raster. For your version of ArcMap, try the following: In the table of contents, right-click the raster layer that you want to draw showing unique values, and click Properties. Click the Symbology tab. Click ...


0

>>> import arcpy >>> arcpy.env.workspace = r'X:\Quab B Shapefile' >>> shpList = [r'X:\Quab B Shapefile\Ditch_QuadB_CondAssess.shp', r'X:\Quab B Shapefile\Inlet_QuadB_CondAssess.shp', r'X:\Quab B Shapefile\Manhole_QuadB_CondAssess.shp', r'X:\Quab B Shapefile\Outlet_QuadB_CondAssess.shp'] >>> for featureclass in shpList: ... ...


5

If you don't need the symbology that is packaged with the layer, you can simply unzip/decompress the lpkx and grab the FileGeoDatabase within that contains the data. As for the symbology, you'd need to publish the LPKX to ArcGIS Online and then download the symbology from there. So, no easy work-arounds, but you do have access to the data itself from ...


4

Try using the object identifier (FID or OBJECTID field). If you divide it by 65000 and convert the result to integer (equivalent to floor), then you will have your groups. int(floor(!FID!/65000)) note that you could use ceil() instead of floor() if you prefer to start at 1 instead of 0.


0

For more control over "dimension" lines and text than the automated dimensioning you may want to consider using a line feature class to draw them instead: you can symbolize such "dimension" lines using an arrow head at each end you can place the "dimension" text into a field and use it for labelling. These labels can be converted to annotation for even ...


Top 50 recent answers are included