Geospatial Modelling Environment

isectpntpoly (Intersect Points With Polygons)

Acquires attribute data from a polygon data source and writes it to the input point data source


This tool writes data from a polygon attribute table to the attribute table of the input point data source. The tool finds the polygon that intersects each point, and acquires the attribute data from that polygon. If polygons overlap and a point intersects multiple polygons the tool just acquires the data from the first polygon it finds.

The tool can acquire data from more than one field in the polygon table at one time. If a single field name is provided (e.g. field=”NAME”) then only that one field is recorded. To specify multiple fields use the list format, e.g. field=c(“NAME”, “HEIGHT”, “COST”). This tool does not support geometry or blob fields, and if you specify a unique ID field (like FID or OID) then it will be written as a long integer field and renamed so that it does not conflict with the unique ID fields already in the point attribute table.

It is important that the spatial references are defined and are identical for both layers.


isectpntpoly(in, poly, field, [where]);

inthe input point data source
polythe polygon data source
fieldthe field(s) in this polygon layer to acquire (either one field or a list of fields)
[where]the filter/selection statement that will be applied to the point feature class to identify a subset of points to process


isectpntpoly(in=”C:datasamples.shp”, poly=”C:datasoils.shp”, field=”SOILTYPE”);

isectpntpoly(in=”C:datalocs.shp”, poly=”C:dataforestunits.shp”, field=c(“PRIMARY”,”SECONDARY”));

isectpntpoly(in=”C:datawells.shp”, poly=”C:datacensus.shp”, field=”POPSIZE”);


Please consider making a purchase to support the continued development of these tools  Read more...

Tips on how to use this interface efficiently 


Open Source GIS

Copyright © 2001-2014 Hawthorne L. Beyer, Ph.D., Spatial Ecology LLC    Connect on LinkedIn