looks maybe like your distance is in radians? are your lat/long coordinates in radians as well? for that formula i think you need radians:
radians=(degrees+minutes/60)*pI/180 great CIRCLE distance forumla: d=(acos(sin(lat1)*sin(lat2)+cos(lat1)*cos(lat2)*cos(lon1-lon2)))*180*60/pi where lat & long are in radians, should you give nautical miles. > D=(1.852*60)*(ACOS(SIN(minLatitude)*(SIN(maxLatitude)+(COS(minLatitude)*(COS > (maxLatitude)*(COS(minLongitude-maxLongitude)))))))> not sure of your GIS technology but most (that i know) would render geographic data based on a bounding box (lower left, upper right). actually seems kinda hard to query for spatial features like this (center point & distance)...though i guess it might be building the bounding box from that onfo on the fly ll=xMid-d, yMid-d, ur=xMid+d, yMid+d. if that's the case i guess the distance needs to be in radians (or arcseconds or whatever it will swallow). make any sense? ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists