Did I find the right examples for you? yes no      Crawl my project      Python Jobs

# arcpy.Point

All Samples(21)  |  Call(21)  |  Derive(0)  |  Import(0)

```        # project to Web Merc and add to separate dictionary
#pnt2 = arcpy.Geometry("POINT",arcpy.Point(pnt[0],pnt[1],Z),arcpy.Describe(inputFeature).spatialReference,True) # user for interpolated points, not extracted
pnt2 = arcpy.Geometry("POINT",arcpy.Point(pnt[0],pnt[1],Z),arcpy.Describe(extractPoints).spatialReference,True)
pntWM = pnt2.projectAs(prjWebMercator)
observersWebMerc[OID] = [pntWM.firstPoint.X,pntWM.firstPoint.Y,Z]
```
```
path.append([x,y,z,t])
pathArray.append(arcpy.Point(x,y,z,t)) # add the point to the path array

# compare if the path-point's Z is below the surface, if so stop adding points.
```
```            tHalf = TimeToRange(maxHeight)
path.append([x,y,z,0.0])
pathArray.append(arcpy.Point(x,y,z,0.0))
path.append([x,y,z + maxHeight,tHalf])
pathArray.append(arcpy.Point(x,y,z + maxHeight,tHalf))
path.append([x,y,z,2 * tHalf])
pathArray.append(arcpy.Point(x,y,z,2 * tHalf))
```

```            rndPt = row[1]
# if I'm right this is how we add a multipart line feature
diagArray1 = arcpy.Array([arcpy.Point(rndPt[0] - offset,rndPt[1] + offset),arcpy.Point(rndPt[0] + offset,rndPt[1] - offset)])
diagArray2 = arcpy.Array([arcpy.Point(rndPt[0] - offset,rndPt[1] - offset),arcpy.Point(rndPt[0] + offset,rndPt[1] + offset)])
diagArray = arcpy.Array([diagArray1,diagArray2])
```

```        for part in currentRead[1]:
for pnt in part:
partCoordList.append(arcpy.Point(pnt.X,pnt.Y))

# get critical points
```
```        llX =  startPoint.X + (halfWidth * math.cos(math.radians(Geo2Arithmetic(leftBearing))))
llY =  startPoint.Y + (halfWidth * math.sin(math.radians(Geo2Arithmetic(leftBearing))))
llPoint = arcpy.Point(llX,llY)

# from llPoint go fanRange by bearing
ulX = llPoint.X + (fanRange * math.cos(math.radians(Geo2Arithmetic(bearing))))
ulY = llPoint.Y + (fanRange * math.sin(math.radians(Geo2Arithmetic(bearing))))
ulPoint = arcpy.Point(ulX,ulY)
```
```        urX = ulPoint.X + (width * math.cos(math.radians(Geo2Arithmetic(rightBearing))))
urY = ulPoint.Y + (width * math.sin(math.radians(Geo2Arithmetic(rightBearing))))
urPoint = arcpy.Point(urX,urY)

# from urPoint go fanRange by negative bearing
lrX = urPoint.X + (fanRange * math.cos(math.radians(Geo2Arithmetic(backBearing))))
lrY = urPoint.Y + (fanRange * math.sin(math.radians(Geo2Arithmetic(backBearing))))
lrPoint = arcpy.Point(lrX,lrY)
```

```    rows = arcpy.InsertCursor(mbgCenterPoint)
feat = rows.newRow()
feat.setValue(mbgShapeFieldName,arcpy.Point(mbgCenterX,mbgCenterY))
rows.insertRow(feat)
del rows
```

```    rows = arcpy.InsertCursor(mbgCenterPoint)
feat = rows.newRow()
feat.setValue(mbgShapeFieldName,arcpy.Point(mbgCenterX,mbgCenterY))
rows.insertRow(feat)
del rows
```

```        lineArray = arcpy.Array()
for vertex in outPath:
pnt = arcpy.Point()
pnt.X = vertex[0]
pnt.Y = vertex[1]
```

```            lineArray = arcpy.Array()
for vertex in outPath:
pnt = arcpy.Point()
pnt.X = vertex[0]
pnt.Y = vertex[1]
```

```            lineArray = arcpy.Array()
for vertex in outPath:
pnt = arcpy.Point()
pnt.X = vertex[0]
pnt.Y = vertex[1]
```

```
for vertex in path:
pnt = arcpy.Point()
pnt.X = vertex[0]
pnt.Y = vertex[1]
```

```    :type output:               String