Convert file to ascii (lat long data)

In Progress Posted Oct 28, 2015 Paid on delivery
In Progress Paid on delivery

I need you to develop some software for me. I would like this software to be developed for Windows using .[login to view URL] propertary files to ascii, the application shall be able to bulk convert multiple *.ma1 files to one [login to view URL] file the Map Filename 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

[login to view URL]

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)

.NET C# Programming Software Architecture Windows Desktop

Project ID: #8788251

About the project

1 proposal Remote project Active Oct 28, 2015

1 freelancer is bidding on average $222 for this job

rinabuoy13

A proposal has not yet been provided

$222 USD in 14 days
(84 Reviews)
6.2