Very simple c program
$30-250 USD
Thanh toán khi bàn giao
This is a VERY simple program that solves somethat has cropped to do with a maps project
We have a csv file of asset locations in x,y coordinates. About 700 records in format :
Point, x coord, y coord
eg
1, 23234.435,3434.454556
2,3435.4555,34545.4556
etc
Also we have a similar a file of the coastline as a series of points in same format - but a much larger file, maybe 100,000 records.
We want the program to work out for each asset location which coastline point is the nearest using pythogoras for distance for each point to each coastline point.
d = ((assetX-coastX)^2+(assetY-CoastY)^2)^0.5 in excel formula.
We need the prpgram to run on a freeware/shareware C compiler.
It should prompt for input filenames and output file name
We are in a rush so dont immediatey have the data, this will follow so you will need to make up some test data with the right number of records, so when the final data is ready we will have a tested program to hand.
I hope program can cope with this much data & solve in a reasonable time (can be up to an hour or more on an average pc) , if not we can perhaps reduce the number of coastal points or improve algorithm
Output a csv file in format
Point, Point Xcoord, Point Ycoord, Nearest Coastpoint, Nearest coast X coord,Nearest Y coord, min Distance from point to coast
for each row.
We want to solve the simplest way - test every point vs every coastline point, so it easy to read & be certain not bugs.
I know there will be cleverer ways of not needing to test every point for speed, but we want it kept simple is possible. Can discuss complex soluitions if if the problem is insoluble as described in a reasonable time.
Some kind of progress output helpful (eg "solving point 12 of 700")
This project is urgent !!
ID dự án: #855207
Về dự án
Được trao cho:
28 freelancer chào giá trung bình$48 cho công việc này
For what operating system is it? If it is for Windows, I can do this for several hours (more of them for testing), with C or WIN API code, which will run at any C/C++ compiler. Best Regards
Good at C/C++ language, It is easy to get the result you want. Yes, count every coastline point distance to the relative asset point, then sort the distance with pop arithmatic, and get the least one out, with it's rel Thêm