vanjay011379

Create point and intersect with polygon shp?

Discussion created by vanjay011379 on Feb 15, 2011
Latest reply on Feb 23, 2011 by marquish
Hello,

I have created the following two points.

sourcePoint = gp.CreateObject('Point')
sinkPoint = gp.CreateObject('Point')

I would like to know if there is anyway to intersect these with a polygon in a shapefile.

While I could create a shp file with these points and then do the intersection, I was wondering if could do this on the fly with the points above.

Once intersected, I would need the values retrieved from the polygon.  Basically, I need to find values on a polygon given the points.

Any ideas?

Also, is there a Python API for the geoprocessor?  The closest thing I could find was this link on another site at http://www.geospatialtraining.com/Geoprocessing/Geoprocessor.pdf

Outcomes