Skip to main content
deleted 675 characters in body
Source Link
User1974
  • 1.3k
  • 16
  • 64

I amI'm using ArcPy with ArcMap 10.7.1.

I want to densify SDE.ST_GEOMETRY polylines if (and only if) the polylines have true curves.

If I were using ArcPy with the latest version of ArcGIS Pro (instead of ArcMap), then I think the hasCurves property could be used like this:

for row in cursor:
    polyline = row[0]
    if polyline.hasCurves() == True:
        polyline = polyline.densify('ANGLE', 10, 0.174533) #radians

Unfortunately, the hasCurves property doesn't seem to be available for a Polyline in ArcMap 10.7.1.

#ArcPy/ArcMap 10.7.1

AttributeError: 'Polyline' object has no attribute 'hasCurves'              

In ArcMap 10.7.1, is there an alternative option for determining if polylines have true curves?


Edit:

The WKT property sounds like it might do what I want:

ArcMap 10.7.1 Polyline --> WKT attribute

Returns the well-known text (WKT) representation for OGC geometry. It provides a portable representation of a geometry value as a text string.

Any true curves in the geometry will be densified into approximate curves in the WKT string.

That sounds promising, but I don't know if there is a clean way to convert the WKT back to a geometry or not. Or if there would be downsides/risks to converting to WKT. In this case, maintaining the topological correctness of the lines (sewers) is very important.

I am using ArcPy with ArcMap 10.7.1.

I want to densify SDE.ST_GEOMETRY polylines if (and only if) the polylines have true curves.

If I were using ArcPy with the latest version of ArcGIS Pro (instead of ArcMap), then I think the hasCurves property could be used like this:

for row in cursor:
    polyline = row[0]
    if polyline.hasCurves() == True:
        polyline = polyline.densify('ANGLE', 10, 0.174533) #radians

Unfortunately, the hasCurves property doesn't seem to be available for a Polyline in ArcMap 10.7.1.

#ArcPy/ArcMap 10.7.1

AttributeError: 'Polyline' object has no attribute 'hasCurves'              

In ArcMap 10.7.1, is there an alternative option for determining if polylines have true curves?


Edit:

The WKT property sounds like it might do what I want:

ArcMap 10.7.1 Polyline --> WKT attribute

Returns the well-known text (WKT) representation for OGC geometry. It provides a portable representation of a geometry value as a text string.

Any true curves in the geometry will be densified into approximate curves in the WKT string.

That sounds promising, but I don't know if there is a clean way to convert the WKT back to a geometry or not. Or if there would be downsides/risks to converting to WKT. In this case, maintaining the topological correctness of the lines (sewers) is very important.

I'm using ArcPy with ArcMap 10.7.1.

I want to densify SDE.ST_GEOMETRY polylines if (and only if) the polylines have true curves.

If I were using ArcPy with the latest version of ArcGIS Pro (instead of ArcMap), then I think the hasCurves property could be used:

for row in cursor:
    polyline = row[0]
    if polyline.hasCurves() == True:
        polyline = polyline.densify('ANGLE', 10, 0.174533) #radians

Unfortunately, the hasCurves property doesn't seem to be available for a Polyline in ArcMap 10.7.1.

#ArcPy/ArcMap 10.7.1

AttributeError: 'Polyline' object has no attribute 'hasCurves'              

In ArcMap 10.7.1, is there an alternative option for determining if polylines have true curves?

added 618 characters in body
Source Link
User1974
  • 1.3k
  • 16
  • 64

I am using ArcPy with ArcMap 10.7.1.

I want to densify SDE.ST_GEOMETRY polylines if (and only if) the polylines have true curves.

If I were using ArcPy with the latest version of ArcGIS Pro (instead of ArcMap), then I think the hasCurves property could be used like this:

for row in cursor:
    polyline = row[0]
    if polyline.hasCurves() == True:
        polyline = polyline.densify('ANGLE', 10, 0.174533) #radians

Unfortunately, the hasCurves property doesn't seem to be available for a Polyline in ArcMap 10.7.1.

#ArcPy/ArcMap 10.7.1

AttributeError: 'Polyline' object has no attribute 'hasCurves'              

 

In ArcMap 10.7.1, is there an alternative option for determining if polylines have true curves?


Edit:

The WKT property sounds like it might do what I want:

ArcMap 10.7.1 Polyline --> WKT attribute

Returns the well-known text (WKT) representation for OGC geometry. It provides a portable representation of a geometry value as a text string.

Any true curves in the geometry will be densified into approximate curves in the WKT string.

That sounds promising, but I don't know if there is a clean way to convert the WKT back to a geometry or not. Or if there would be downsides/risks to converting to WKT. In this case, maintaining the topological correctness of the lines (sewers) is very important.

I am using ArcPy with ArcMap 10.7.1.

I want to densify SDE.ST_GEOMETRY polylines if (and only if) the polylines have true curves.

If I were using ArcPy with the latest version of ArcGIS Pro (instead of ArcMap), then I think the hasCurves property could be used like this:

for row in cursor:
    polyline = row[0]
    if polyline.hasCurves() == True:
        polyline = polyline.densify('ANGLE', 10, 0.174533) #radians

Unfortunately, the hasCurves property doesn't seem to be available for a Polyline in ArcMap 10.7.1.

#ArcPy/ArcMap 10.7.1

AttributeError: 'Polyline' object has no attribute 'hasCurves'              

 

In ArcMap 10.7.1, is there an alternative option for determining if polylines have true curves?

I am using ArcPy with ArcMap 10.7.1.

I want to densify SDE.ST_GEOMETRY polylines if (and only if) the polylines have true curves.

If I were using ArcPy with the latest version of ArcGIS Pro (instead of ArcMap), then I think the hasCurves property could be used like this:

for row in cursor:
    polyline = row[0]
    if polyline.hasCurves() == True:
        polyline = polyline.densify('ANGLE', 10, 0.174533) #radians

Unfortunately, the hasCurves property doesn't seem to be available for a Polyline in ArcMap 10.7.1.

#ArcPy/ArcMap 10.7.1

AttributeError: 'Polyline' object has no attribute 'hasCurves'              

In ArcMap 10.7.1, is there an alternative option for determining if polylines have true curves?


Edit:

The WKT property sounds like it might do what I want:

ArcMap 10.7.1 Polyline --> WKT attribute

Returns the well-known text (WKT) representation for OGC geometry. It provides a portable representation of a geometry value as a text string.

Any true curves in the geometry will be densified into approximate curves in the WKT string.

That sounds promising, but I don't know if there is a clean way to convert the WKT back to a geometry or not. Or if there would be downsides/risks to converting to WKT. In this case, maintaining the topological correctness of the lines (sewers) is very important.

deleted 49 characters in body
Source Link
User1974
  • 1.3k
  • 16
  • 64

I am using ArcPy with ArcMap 10.7.1.

I want to densify Oracle 18c SDE.ST_GEOMETRY polylines if (and only if) the polylines have true curves.

If I were using ArcPy with the latest version of ArcGIS Pro (instead of ArcMap), then I think the hasCurves property could be used like this:

for row in cursor:
    polyline = row[0]
    if polyline.hasCurves() == True:
        polyline = polyline.densify('ANGLE', 10, 0.174533) #radians

Unfortunately, the hasCurves property doesn't seem to be available for a Polyline in ArcMap 10.7.1.

#ArcPy/ArcMap 10.7.1

AttributeError: 'Polyline' object has no attribute 'hasCurves'              

In ArcMap 10.7.1, is there an alternative option for determining if polylines have true curves?

I am using ArcPy with ArcMap 10.7.1.

I want to densify Oracle 18c SDE.ST_GEOMETRY polylines if (and only if) the polylines have true curves.

If I were using ArcPy with the latest version of ArcGIS Pro (instead of ArcMap), then I think the hasCurves property could be used like this:

for row in cursor:
    polyline = row[0]
    if polyline.hasCurves() == True:
        polyline = polyline.densify('ANGLE', 10, 0.174533) #radians

Unfortunately, the hasCurves property doesn't seem to be available for a Polyline in ArcMap 10.7.1.

#ArcPy/ArcMap 10.7.1

AttributeError: 'Polyline' object has no attribute 'hasCurves'              

In ArcMap 10.7.1, is there an alternative option for determining if polylines have true curves?

I am using ArcPy with ArcMap 10.7.1.

I want to densify SDE.ST_GEOMETRY polylines if (and only if) the polylines have true curves.

If I were using ArcPy with the latest version of ArcGIS Pro (instead of ArcMap), then I think the hasCurves property could be used like this:

for row in cursor:
    polyline = row[0]
    if polyline.hasCurves() == True:
        polyline = polyline.densify('ANGLE', 10, 0.174533) #radians

Unfortunately, the hasCurves property doesn't seem to be available for a Polyline in ArcMap 10.7.1.

#ArcPy/ArcMap 10.7.1

AttributeError: 'Polyline' object has no attribute 'hasCurves'              

In ArcMap 10.7.1, is there an alternative option for determining if polylines have true curves?

deleted 49 characters in body
Source Link
User1974
  • 1.3k
  • 16
  • 64
Loading
edited title
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
Loading
added 30 characters in body; edited tags; added 15 characters in body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
Loading
edited title
Link
User1974
  • 1.3k
  • 16
  • 64
Loading
Source Link
User1974
  • 1.3k
  • 16
  • 64
Loading