WATER 0, GRASS 1, GRASSY_ROCK 2, FARM 3, ROCK 4, and FOREST 5
Thats the DataTypes for the *.typ File.
I havent debuged the oba file as of yet.
But i will try.
C01VOD000, city, 42272.031, 0.000, -918865.268, 0.0000, 0.0000, 0.0000, 2560, 0, 0, -1.00, -1.0, -1, 0, 0, 0, 0
Lets look at the first Data.
C01
This is what i am assuming for all of them.
C01 is the Field Number.
VOD is the Type of object
000 Is the number of objects on that Field.
So you have.
C01VOD000
C01VOD001
C01VOD002
C01VOD003
C02VOD000
C02VOD001
C02VOD002
C02VOD003
Okay next data.
City
Dont know about that one.
Okay next Data.
42272.031 = x position
Okay next Data.
0.000 = alt
Okay next.
-918865.268 = y position.
6th 0.00000 = roll Each Degree is approximately 0.0174533
7th 0.0000 = Tilt Each Degree is approximately 0.0174533
8th 0.0000 = Rotate Each Degree is Approximately 0.0174533
There is a direct Corrilation between the array index and oba x and y posiitions.
Here is how you calculate the object double value down to the array middle even index.
Copy and past from autolevel program.
== Covert Array *.elv Index into object double position ==
if( ( row > 512) & ( col > 512) ){
realrow = (row - 512) * 2640;
realcol = (col - 512) * 2640;
System.out.println( row );
System.out.println( col );
}
if( ( row < 512) & ( col < 512) ){
realrow = (row - 512) * -2640;
realcol = (col - 512) * -2640;
System.out.println( row );
System.out.println( col );
}
if( ( row > 512) & ( col < 512) ){
realrow =(row - 512) * 2640;
realcol =(col - 512) * -2640;
System.out.println( row );
System.out.println( col );
}
if( (row < 512) & (col > 512) ){
realrow =(row - 512) * -2640;
realcol =(col - 512) * 2640;
System.out.println( row );
System.out.println( col );
== Covert Double object position back to *.elv array index==
public void convertback( double row, double col ){
double realrow = 0;
double realcol = 0;
if( ( row > 0) & ( col > 0) ){
realrow = (row / 2640 ) + 512;
realcol = (col / 2640 ) + 512;
}
if( ( row < 0) & ( col < 0) ){
realrow = ( row / 2640) + 512;
realcol = ( col / 2640) + 512;
}
if( ( row > 0) & ( col < 0) ){
realrow = ( row / 2640) + 512;
realcol = ( col / 2640) + 512;
}
if( (row < 0) & (col > 0) ){
realrow = ( row / 2640) + 512;
realcol = ( col / 2640) + 512;
}