How to add a new Sector Map to SEOW
Moderator: SEOW Developers
-
- Posts: 302
- Joined: Fri 13 Apr 2007 1:13 pm
- Location: Italy
-
- Posts: 2211
- Joined: Mon 08 Jan 2007 11:10 pm
- Location: Perth, Western Australia
Looking forward to this - any estimate when it is available ?IV/JG7_4Shades wrote:The new MTO map from the 4.09mb patch has just been added to SEOW by EJgr.Ost_Chamel, entitled "Tubruq". Chamel has done a great job and I will release this minor update to SEOW shortly, along with bug fixes for the MP and Stats engine.
Cheers,
4Shades
Have been working on adding the new English Channel map for 4.09. Have been able to add the files for the Mission Planner. I'm at the point of editing the Sector map PHP files. The information in this thread is a great help. I just have a question on where you are pulling the following coordinate from.
$maxpX=1118; //Size of map image in pixels in x direction
$mincX=200; //Max longitude of image in FB coords
$maxcX=139200; //Min longitude of image in FB coords
$maxpY=799; //Size of map image in pixels in y direction
$mincY=400; //Max latitude of image in FB coords
$maxcY=99900; //Min latitude of image in FB coords
I understand the pixel size for x and y
I just don't see where you are getting the x and y information for the max and min longitude and latitude.
I do have a running SEOW server to work with
$maxpX=1118; //Size of map image in pixels in x direction
$mincX=200; //Max longitude of image in FB coords
$maxcX=139200; //Min longitude of image in FB coords
$maxpY=799; //Size of map image in pixels in y direction
$mincY=400; //Max latitude of image in FB coords
$maxcY=99900; //Min latitude of image in FB coords
I understand the pixel size for x and y
I just don't see where you are getting the x and y information for the max and min longitude and latitude.
I do have a running SEOW server to work with
-
- Posts: 2211
- Joined: Mon 08 Jan 2007 11:10 pm
- Location: Perth, Western Australia
Hi Rumely,
Those latitude/longitude coordinates are extracted from the FMB. Basically, you put a stationary car at each corner of your image and save the resulting mission (.mis) file. Open the .mis file in Notepad or any ascii editor and you will see the Stationary cars listed - you can read off their X,Y coordinates - these are the coordinates you need.
Getting these in place will allow the MP to "georeference" the map images against the IL-2 spatial coordinate system. You may need to do some fine adjustments to get the roads/bridges to overlap the image precisely. Note that because of topographic elevations, it is rare to get perfect match across the entire image, especially if there are lots of hills and valleys.
Cheers,
4Shades
Those latitude/longitude coordinates are extracted from the FMB. Basically, you put a stationary car at each corner of your image and save the resulting mission (.mis) file. Open the .mis file in Notepad or any ascii editor and you will see the Stationary cars listed - you can read off their X,Y coordinates - these are the coordinates you need.
Getting these in place will allow the MP to "georeference" the map images against the IL-2 spatial coordinate system. You may need to do some fine adjustments to get the roads/bridges to overlap the image precisely. Note that because of topographic elevations, it is rare to get perfect match across the entire image, especially if there are lots of hills and valleys.
Cheers,
4Shades
IV/JG7_4Shades
SEOW Developer
SEOW Developer
-
- Posts: 2211
- Joined: Mon 08 Jan 2007 11:10 pm
- Location: Perth, Western Australia
-
- Posts: 2211
- Joined: Mon 08 Jan 2007 11:10 pm
- Location: Perth, Western Australia
Hi Dore,
When doing roads and railways, I use FMB to place a vehicle or train for each segment of road/track between junctions. Then I save the .mis file and import it into MS Excel where I format the waypoint lists to correspond to the Highways table format. Then I bring all that data into the DB. From Highways and Railways data I can find bridge names, locations and lengths.
It isn't a quick process. But I can do a sector in a few hours.
Cheers,
4Shades
When doing roads and railways, I use FMB to place a vehicle or train for each segment of road/track between junctions. Then I save the .mis file and import it into MS Excel where I format the waypoint lists to correspond to the Highways table format. Then I bring all that data into the DB. From Highways and Railways data I can find bridge names, locations and lengths.
It isn't a quick process. But I can do a sector in a few hours.
Cheers,
4Shades
IV/JG7_4Shades
SEOW Developer
SEOW Developer
OK thanks 4Shades, I'll do that. We have already the 3 files .mis for English Channel roads, railways, bridges... I'm going to use Excel. My Squadron leader (PA-Syspo) is working actually to build a software which merge directly file .mis into database. But he's very busy and we have to wait a few time.
An other question: I'have read the post above (How to capture...) very nice resume, but why not to take the 1st and last way-point? For example in this case, we have only to keep the lines that finish by 20.0 (Bold below)
160753.20 126753.29 120.00 0 20 3.055555582046509
161500.00 127500.00 20.00
163100.00 129100.00 20.00
163700.00 129100.00 20.00
167500.00 131100.00 20.00
167900.00 130700.00 20.00
168099.94 130499.95 120.00
These way points are those we have put with mouse on map. Perhaps, they are'nt enough precise?
An other question: I'have read the post above (How to capture...) very nice resume, but why not to take the 1st and last way-point? For example in this case, we have only to keep the lines that finish by 20.0 (Bold below)
160753.20 126753.29 120.00 0 20 3.055555582046509
161500.00 127500.00 20.00
163100.00 129100.00 20.00
163700.00 129100.00 20.00
167500.00 131100.00 20.00
167900.00 130700.00 20.00
168099.94 130499.95 120.00
These way points are those we have put with mouse on map. Perhaps, they are'nt enough precise?
-
- Posts: 179
- Joined: Tue 16 Jan 2007 8:29 am
- Contact:
-
- Posts: 2211
- Joined: Mon 08 Jan 2007 11:10 pm
- Location: Perth, Western Australia
Dore wrote:
It is doubly important to do this, since the SEOW Highway_Intersection data looks for common nodes to define junctions, so you start and end points must be exactly on the 100 m grid.
Cheers,
4Shades
The way I capture the waypoints is to put the mouse clicks right over the end points of each highway segment (from junction to junction). That means the first and last waypoints (for me) are important. As you say, Dore, there will always be some inaccuracy when doing this. But this is easily corrected using Excel (or any other spreadsheet) simply by rounding the X and Y coordinates to the nearest 100 m. This rounding is important since the road and rail networks in FMB maps are expressed in terms of node points located on a 100 m regular grid.160753.20 126753.29 120.00 0 20 3.055555582046509
161500.00 127500.00 20.00
163100.00 129100.00 20.00
163700.00 129100.00 20.00
167500.00 131100.00 20.00
167900.00 130700.00 20.00
168099.94 130499.95 120.00
It is doubly important to do this, since the SEOW Highway_Intersection data looks for common nodes to define junctions, so you start and end points must be exactly on the 100 m grid.
Cheers,
4Shades
IV/JG7_4Shades
SEOW Developer
SEOW Developer
OK it's right.
In your example (first page of this post):
[2_Chief_Road]
24502.58 12659.96 120.00 0 19 3.055555582046509
24500.00 12900.00 20.00
you said: "We want to capture the complete list for each Chief except the first and last nodes"
you transform the first one in excel ?
24500.00 12700.00 20.00
24500.00 12900.00 20.00
In your example (first page of this post):
[2_Chief_Road]
24502.58 12659.96 120.00 0 19 3.055555582046509
24500.00 12900.00 20.00
you said: "We want to capture the complete list for each Chief except the first and last nodes"
you transform the first one in excel ?
24500.00 12700.00 20.00
24500.00 12900.00 20.00
-
- Posts: 2211
- Joined: Mon 08 Jan 2007 11:10 pm
- Location: Perth, Western Australia
LOL, you are right. I guess I have changed my mind. It all depends on whether you:
(a) intentionally click the first and last waypoints well away from the start and end points of the route (as in my first post, so you would discard them)
or
(b) click the first and last waypoints as close to the start and end points as you can (as in my recent post, and you have to round them to the neaest 100 m)
Either way works, but the second method (b) means you have to do some programming in the spreadsheet.
Cheers,
4Shades
(a) intentionally click the first and last waypoints well away from the start and end points of the route (as in my first post, so you would discard them)
or
(b) click the first and last waypoints as close to the start and end points as you can (as in my recent post, and you have to round them to the neaest 100 m)
Either way works, but the second method (b) means you have to do some programming in the spreadsheet.
Cheers,
4Shades
IV/JG7_4Shades
SEOW Developer
SEOW Developer