Points of LinearRing do not form a closed linestring – one point intersection


I’m trying to index geojson data using elasticsearch.

There is some kind of polygons that causing an error: “Points of LinearRing do not form a closed linestring”.

Looks like it happens because these polygons have intersection in one point:
enter image description here
intersection

Is there some way to index such polygons or fix it programmatically?

Create Centerlines of a Polygon Buffer Feature, ArcGIS 10.3


I have seen another method for this to create centerlines, but that involved splitting the line and deleting the line closures. This is a huge network and the time involved in that would be impossible.I was hoping there was another method that I could not find that someone would help me out with, possibly new with 10.3.
I have ArcMap Advanced with Spatial Analysis and 3D Analyst extensions.
Example of part of network below.
Network

Copying attachments from one geodatabase to another


I have a file geodatabase that is a compilation of multiple file geodatabases with varying schemas.

Some feature classes in the original databases had attachments, however the attachment tables no longer exist in the new, combined geodatabase.

There is an “Old-ObjectID” field for features in the new geodatabase that represents the ObjectID of the feature as it was in the original geodatabases.

I would like to know if there is some way to re-relate the old attachment tables to the new ObjectIDs in the new geodatabase?

Closest feature at angle using ArcGIS for Desktop?


I have points representing where street light poles meet the ground. I also have the angle which the mast arm is facing. We use this to symbolize the features by showing the mast arm over the appropriate road- sometimes it is not perpendicular to the closest road. I need to associate attributes in the street centerline with the point.

The near tool doesn’t do it because you can’t specify a specific angle.

Looking to find (or build) a particular Python geoprocessing tool


So here is my situation: There is a large area (a wildlife refuge) of nearly 200,00 acres that we have loads of spatial data for, from habitat management projects from the past several years. My boss (who isn’t GIS savvy) would like to be able to choose a point or area within those 200,000 acres, and easily access all of the spatial data in it’s vicinity, without having to navigate through an unwieldy number of layers.

I’ve put together a “master” mxd of all the layers, which looks like this:
enter image description here

What I’m looking for is this: a tool whereby my boss could input a latitude and longitude coordinate of interest, and it would return all the nearby spatial data (i.e. the points/lines/polygons it falls on or are within x distance). Would it be possible to write a Python script that would do this? Or perhaps something similar has been made?

Any help would be greatly appreciated.

ArcMap 'in_memory' trouble?


Being new to ArcMap, and ArcPy I have a problem with a script including several geoprocessing functions.
The number of functions inspired a search for a means to save outputs (subsequent inputs) to memory, leading to the ‘in_memory’ assist provided by ArcMap.

However the following script errors out at the RasterToPolygon_Conversion() and I am unsure why…

import arcpy

arcpy.CheckOutExtension("spatial")
arcpy.env.overwriteOutput = True
arcpy.env.workspace = "C:\Users\Important\testMap.mxd"

DEM_raster_layer = "C:\canyon.tif"
Camera_point_layer = "C:\birdsEye.shp"

# Process: Visibility analysis
arcpy.gp.Visibility_sa(DEM_raster_layer, Camera_point_layer, "in_memory", "",
                      "FREQUENCY", "NODATA", "0.00001201","FLAT_EARTH", "0.13", "", "",
                      "OFFSETA", "", "", "AZIMUTH1", "AZIMUTH2", "VERT1", "VERT2")

# Process: Visibilty boundries cleanup
arcpy.gp.BoundaryClean_sa("in_memory", "in_memory\1", "ASCEND", "TWO_WAY")
arcpy.Delete_management("in_memory")

# Process: Visibility raster to polygon(s)
arcpy.RasterToPolygon_conversion("in_memory\1", "in_memory\2", "NO_SIMPLIFY", "")
arcpy.Delete_management("in_memory\1")

Here is the following error return:

Runtime error Traceback (most recent call last): File “”, line 32, in File “c:arcgisdesktop10.2arcpyarcpyconversion.py”, line 244, in RasterToPolygon raise e ExecuteError: ERROR 000582: Error occurred during execution.

Im guessing there is some syntax or logic mistake in this method?

Equal Area Projection for Indonesia – Standard Parallels


I am trying to do area computation stuff over whole of Indonesia and as such, am using the following projection:

http://spatialreference.org/ref/esri/asia-south-albers-equal-area-conic/

To make this projection work over Indonesia, I am following the guidelines give at the following link:

https://geonet.esri.com/thread/30524

The recommended modifications change the following:

central meridian: 115.0 (from 125)

standard parallel 1: 2.0 (from 7)

standard parallel 2: -7.0 (from -32)

latitude of origin: 0.0 (from -15)

I think central meridian and latitude of origin do not impact distortions in any manner. However, why is it that the standard parallels should be 2 and -7? The entirety of Indonesia does not seem to be lying within these latitudes. From my inspection of the map, the entirety of Indonesia would lie somewhere between 6 and -11. Wouldn’t these be better choices? How does a change of standard parallels/secants impact the computations?

Make XY Event Layer in ArcGIS Pro


I am using ArcGIS pro for the first time. I have a csv excel sheet with X, Y and ID.

I have tried to make an XY event layer but I get the 000055 error

How do I add xy data in this system?enter image description here

How to cut unwanted area (polygon) using ArcGIS for Desktop?


I am using ArcGIS 10.2 for Desktop with a Basic level license.

There are two overlapping polygon. Polygon A (with line stripes) and Polygon B (in beige color). Polygon A and Polygon B is a separate feature class. Both feature class contains similar attribute column details.

Is it possible to remove all area in A and get the remaining area B?

I’ve been trying to use Union but it does not works. Any ideas? Please help…

Pic1Pic2enter image description here

ArcMap 'in_memory' trouble?


Being new to ArcMap, and ArcPy I have a problem with a script including several geoprocessing functions.
The number of functions inspired a search for a means to save outputs (subsequent inputs) to memory, leading to the ‘in_memory’ assist provided by ArcMap.

However the following script errors out at the RasterToPolygon_Conversion() and I am unsure why…

import arcpy

arcpy.CheckOutExtension("spatial")
arcpy.env.overwriteOutput = True
arcpy.env.workspace = "C:\Users\Important\testMap.mxd"

DEM_raster_layer = "C:\canyon.tif"
Camera_point_layer = "C:\birdsEye.shp"

# Process: Visibility analysis
arcpy.gp.Visibility_sa(DEM_raster_layer, Camera_point_layer, "in_memory", "",
                      "FREQUENCY", "NODATA", "0.00001201","FLAT_EARTH", "0.13", "", "",
                      "OFFSETA", "", "", "AZIMUTH1", "AZIMUTH2", "VERT1", "VERT2")

# Process: Visibilty boundries cleanup
arcpy.gp.BoundaryClean_sa("in_memory", "in_memory\1", "ASCEND", "TWO_WAY")
arcpy.Delete_management("in_memory")

# Process: Visibility raster to polygon(s)
arcpy.RasterToPolygon_conversion("in_memory\1", "in_memory\2", "NO_SIMPLIFY", "")
arcpy.Delete_management("in_memory\1")

Here is the following error return:

Runtime error Traceback (most recent call last): File “”, line 32, in File “c:arcgisdesktop10.2arcpyarcpyconversion.py”, line 244, in RasterToPolygon raise e ExecuteError: ERROR 000582: Error occurred during execution.

Im guessing there is some syntax or logic mistake in this method?

Question and Answer is proudly powered by WordPress.
Theme "The Fundamentals of Graphic Design" by Arjuna
Icons by FamFamFam