Select to view content in your preferred language

calculate # of features with distance and time constraints

4724
11
Jump to solution
04-13-2015 03:21 PM
QiuhuaMa
Deactivated User

Hi,

Earlier I asked how to find the nearest fire that burned 7 years ago and get helped.

Here is the detail the discussion:

https://community.esri.com/message/491873?et=watches.email.thread#491873

Another way to check the effect of fire on house is to count number and size of fire within a certain distance in the last 7 years.

For example, I want to find number of fires within 5km of each house in the past 7 years, then calculate their average size!

How to code this in Python?

My sample data is attached. SHAPE_AERA is the size of fire.

Thanks so much,

Chelsea

0 Kudos
11 Replies
QiuhuaMa
Deactivated User

I think I figured out the problem. Input Field Shape_area is 0 in my new

data.

thanks,

qiuhua

0 Kudos
XanderBakker
Esri Esteemed Contributor

Is it an empty geometry? In that case I suppose it can't calculate distances and errors will occur. I you exclude it from the dataset it should work. If not post it and I will have a look.

Kind regards, Xander

0 Kudos