E-mail Discussion List > Posts
E-mail Discussion List Posts
[ESRI-L] Python: Type of polygon boundary
2012-04-16 07:51:00.0
This is a multi-part MIME message.
--=_reb-r6A67665E-t4F8C782C
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
We have a polygon feature layer. I would like to find polygons whose polyg=
on boundary includes curved pieces. I can find the X/Y coordinates (see be=
low), but not the type of the polygon boundary. Does anybody know how to g=
et the type of the polygon boundary with Python?
Thanks,
Gido
PolyRows =3D arcpy.SearchCursor(FeatureLayer)
PolyRow =3D PolyRows.next()
while PolyRow:
Feature =3D PolyRow.getValue("Shape")
Part =3D Feature.getPart(0)
Point =3D Part.next()
FirstPoint =3D Point1
SecondPoint =3D Point2
NextPoint =3D Part.next()
while NextPoint:
print NextPoint1.X, NextPoint1.Y]
...
--=_reb-r6A67665E-t4F8C782C
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left:=
#800000 2px solid; } --></style>
</head>
<body>
<font size=3D"2" face=3D"Arial"><span style=3D"font-size:10pt;">
<div>We have a polygon feature layer. I would like to find polygons w=
hose polygon boundary includes curved pieces. I can find the X/Y coor=
dinates (see below), but not the type of the polygon boundary. Does a=
nybody know how to get the type of the polygon
boundary with Python?</div>
<div> </div>
<div>Thanks,</div>
<div>Gido</div>
<div> </div>
<div>PolyRows =3D arcpy.SearchCursor(FeatureLayer)</div>
<div>PolyRow =3D PolyRows.next()</div>
<div>while PolyRow:</div>
<div> Feature =3D PolyRow.getValue("Shape")</div>
<div> Part =3D Feature.getPart(0)</div>
<div> Point =3D Part.next()</div>
<div> FirstPoint =3D Point1</div>
<div> SecondPoint =3D Point2</div>
<div> NextPoint =3D Part.next()</div>
<div> while NextPoint:</div>
<div> print NextPoint1.X, NextPoint1.Y]</div>
<div> …</div>
<div> </div>
<div> </div>
</span></font>
</body>
</html>
--=_reb-r6A67665E-t4F8C782C--
--=_reb-r6A67665E-t4F8C782C
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
We have a polygon feature layer. I would like to find polygons whose polyg=
on boundary includes curved pieces. I can find the X/Y coordinates (see be=
low), but not the type of the polygon boundary. Does anybody know how to g=
et the type of the polygon boundary with Python?
Thanks,
Gido
PolyRows =3D arcpy.SearchCursor(FeatureLayer)
PolyRow =3D PolyRows.next()
while PolyRow:
Feature =3D PolyRow.getValue("Shape")
Part =3D Feature.getPart(0)
Point =3D Part.next()
FirstPoint =3D Point1
SecondPoint =3D Point2
NextPoint =3D Part.next()
while NextPoint:
print NextPoint1.X, NextPoint1.Y]
...
--=_reb-r6A67665E-t4F8C782C
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left:=
#800000 2px solid; } --></style>
</head>
<body>
<font size=3D"2" face=3D"Arial"><span style=3D"font-size:10pt;">
<div>We have a polygon feature layer. I would like to find polygons w=
hose polygon boundary includes curved pieces. I can find the X/Y coor=
dinates (see below), but not the type of the polygon boundary. Does a=
nybody know how to get the type of the polygon
boundary with Python?</div>
<div> </div>
<div>Thanks,</div>
<div>Gido</div>
<div> </div>
<div>PolyRows =3D arcpy.SearchCursor(FeatureLayer)</div>
<div>PolyRow =3D PolyRows.next()</div>
<div>while PolyRow:</div>
<div> Feature =3D PolyRow.getValue("Shape")</div>
<div> Part =3D Feature.getPart(0)</div>
<div> Point =3D Part.next()</div>
<div> FirstPoint =3D Point1</div>
<div> SecondPoint =3D Point2</div>
<div> NextPoint =3D Part.next()</div>
<div> while NextPoint:</div>
<div> print NextPoint1.X, NextPoint1.Y]</div>
<div> …</div>
<div> </div>
<div> </div>
</span></font>
</body>
</html>
--=_reb-r6A67665E-t4F8C782C--
[ESRI-L] Install ArcGIS 10?
2012-04-16 04:56:00.0
Hi all,
Finley made it back to the US.
Looking forward to the smooth roads and being in the land of cheap cheap
gas.
No more $6.75/gallon for field work.
Anyhow to cut to the chase with my question...
My new Dell arrives later this week and while I have all the service
packs (on external drive) and ArcGis 10 (temporarily) installed on a lap
top, I need to install it on my new desktop.
It appears the ESRI CDs/DVD(?) that I had for initial install may have
been lost in transit.
I think there is an ESRI WEB location I an DL the full install disk
image for ArcGIS 10 Desktop?
I can unregister the current license and re-activate on the new machine
once installed... IF I can get the basic install disc image.
Any ideas?
I need to now hit the ground running and get rolling on the new mapping
of species distributions etc. for a current project.
The lap top is painfully slow and takes minutes for a screen re-draw...
not to mention since small RAM any real processing.
Bruce
--
Bruce W. Miller, Ph.D.
Conservation Ecologist
Neotropical Bat Project
office details
Gallon Jug, Belize
Mailing address
P.O. Box 37, Belize City
Belize, Central America
Phone +501-220-9002
Finley made it back to the US.
Looking forward to the smooth roads and being in the land of cheap cheap
gas.
No more $6.75/gallon for field work.
Anyhow to cut to the chase with my question...
My new Dell arrives later this week and while I have all the service
packs (on external drive) and ArcGis 10 (temporarily) installed on a lap
top, I need to install it on my new desktop.
It appears the ESRI CDs/DVD(?) that I had for initial install may have
been lost in transit.
I think there is an ESRI WEB location I an DL the full install disk
image for ArcGIS 10 Desktop?
I can unregister the current license and re-activate on the new machine
once installed... IF I can get the basic install disc image.
Any ideas?
I need to now hit the ground running and get rolling on the new mapping
of species distributions etc. for a current project.
The lap top is painfully slow and takes minutes for a screen re-draw...
not to mention since small RAM any real processing.
Bruce
--
Bruce W. Miller, Ph.D.
Conservation Ecologist
Neotropical Bat Project
office details
Gallon Jug, Belize
Mailing address
P.O. Box 37, Belize City
Belize, Central America
Phone +501-220-9002