I am new to ModelBuilder in ArcGIS Desktop. I have two shapefiles, one is a polygon shapefile of all lightning caused fire in Alaska sine 1939 (~1500 polygons) and the second is a point shapefile with all recorded lightning strikes since 1986 in Alaska (~10000 points).

What I want to do is create a data/attribute table that outputs the following for varying time scale (1 day through 16 weeks):

  1. If the fire had a lightning strike within it on the time scale specified and latitude/longitude of strike
  2. If not what is the nearest strike and its distance (point (lightning) to centroid (fire polygon)or point to nearest edge)
  3. Polarity of strike
  4. Multiplicity of strike

The attribute table I have for the lightning data has all strike Lat/Long, polarity, multiplicity. This is a flow chart of the analysis I want to do:

Select lightning and fire that falls in specified time (I have dates of both strikes and fire) 

--> determine if a strike was in the fire 

--> if yes then put the specified value from the lightning table into the new table along with fire ID 

--> If no find the nearest strike to the fire and its distance to the fire

--> add specified values for this strike to same table

What would the basic outline for a model that performs this flow look like?

Are there any alternate methods to achieve this with such a large data set?

closed as too broad by PolyGeo Feb 6 '18 at 4:36

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


I would start by importing all the data into PostgreSQL with the Postgis extension. Using shp2pgsql would be the easiest way. Make sure you include the proper flags to generate indexes on the data. After importing the data, you'll probably have to massage the date/times from varchar to timestamp.

After you get all your data imported, you can use the geometry operators (st_within, st_centroid, ST_Distance_Spheroid) to answer your questions.

I can be more specific if you have more details about how the data is actually structured.

  • The question was in regards to ArcGIS Model Builder, not PostgreSQL with the Postgis extension. – Sue Deforest Feb 27 '13 at 0:53
  • The question did ask for alternative methods. Using shapefiles and model builder for a large dataset is slow and cumbersome. When working with a large data set, a sql database and query is orders of magnitude more efficient. – westyvw Jul 25 '13 at 15:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.