spatial query project - java GUI