Convert file to ascii (lat long data) -- 3
$30-250 USD
Оплачується при отриманні
I need you to develop some software for me. I would like this software to be developed for Windows using .[url removed, login to view] propertary files to ascii, the application shall be able to bulk convert multiple *.ma1 files to one [url removed, login to view] file the Map Filename
I have attached some files in the MA1 format and a textual format.
Format description is below
To translate Latitude Segment to a latitude value.
LatSeg = First 5 digits is the latitude segment
LatChar = Next Character is N = north, S = south
LongSeg = Next 5 digits is the longitude segment
LongChar = Next Character is W = West, E = East
oneKOfLatitude = 360.0 / EARTHSIZE , EARTHSIZE = 40000kms
= 360.0 / 40000.0
How to convert to a latitude value:
if LatChar = N
Latitude = (LatSeg+1) * oneKOfLatitude;
If LatChar = S
Latitude = (LatSeg) * oneKOfLatitude;
How to convert to a longitude value:
NOTE: This uses the latitude value from previous conversion…
If LongChar = W
Longitude = -180.0 + ((LongSeg-1) * oneKOfLongitude(Latitude))
If LongChar = E
Longitude = 180.0 – ((LongSeg+1) * oneKOfLongitude(Latitude) )
Function oneKOfLongitude is:
C = cos( Latitude ) * EARTHSIZE
oneKLat = ( 360.0 / C )
return oneKLat;
Once this conversion is done you will get a latitude and longitude value.
This lat,long value is the position of the top left corner of the 1000x1000 meter grid file.
The file itself is formatted as 1000 x 1000 of the following c structure.
typedef struct {
short depth10; // depth value for 1m square
byte fish; // fish magnitude data for 1m square
byte mag; // bottom magnitude value for 1m square
} mapDataType;
Example for previous filename of
[url removed, login to view]
Latitude = (4782+1) * (360.0 / 40000.0) = 43.047° N
Longitude = 180.0 – 8888 * (360.0/(cos(43.047)*40000.0 )) = 70.5410° W
Top left corner of the file is at 43.047° N , 70.5410° W
Each square meter should be output in the format “longitude, latitude, depth10,fish,mag”
Eg 70.5410,43.047,50,1,99
(Assuming depth10=50, fish =1 and mag = 99)
ID Проекту: #8808053
Про проект
1 фрілансер у середньому готовий виконати цю роботу за $155
I can create such program in less than two days and I can offer you best price here. All I need to start is milestone payment from you. You'll release it after you check everything on your side. Thanks. Roman