Page 1 of 1

Tool: OtsFp9Tools.exe

Posted: Tue Dec 23, 2014 4:44 pm
by harry_vdk
Hi,

For my Dutch maps I have create a small tool named:OtsFp9Tools.exe.

Its written in C# and located within this github repository.

Within this repository is also a short file description of the .fp9 fileformat made by Robert Crandall.

The Dutch maps are 7 hexdraw maps 67x64 hexes from left to the right with 21 columns overlap and 46 unique columns.

With this tool I can copy every overlap to the next map.


First map:
otsfp9tools /filename="NL 37b 1985.png" /import="NL 37f 1985.png" /offsetcol=46

Second map:
otsfp9tools /filename="NL 37f 1985.png" /import="NL 37b 1985.png" /offsetcol=-46
otsfp9tools /filename="NL 37f 1985.png" /import="NL 38b 1985.png" /offsetcol=46

Third map:
otsfp9tools /filename="NL 38b 1985.png" /import="NL 37f 1985.png" /offsetcol=-46
otsfp9tools /filename="NL 38b 1985.png" /import="NL 38f 1985.png" /offsetcol=46
......

......
Last map:
otsfp9tools /filename="NL 40f 1985.png" /import="NL 40b 1985.png" /offsetcol=-46

There are more options right now not used with this purpose (and not full tested).
/filename=<base filename>");
/import=<import filename>");

[/OffsetCol=<int>]
[/OffsetRow=<int>]

[/RangeMinCol=<int>]
[/RangeMinRow=<int>]
[/RangeMaxCol=<int>]
[/RangeMaxRow=<int>]

[/NewMaxCol=<int>]
[/NewMaxRow=<int>]


Updated to version 1.03:
- Use .jpg as default mapfile extension.
- Add 2 options useful with qgis
/CreateElevation and /CreateHexContours


RE: Tool: OtsFp9Tools.exe

Posted: Tue Dec 23, 2014 7:30 pm
by Plodder
Nice! This will come in handy if/when I decide to extend the Berlin map.

RE: Tool: OtsFp9Tools.exe

Posted: Wed Dec 24, 2014 11:10 am
by harry_vdk
Add a special draw option used for drawing mapvalues:
/drawmapvalues
[/drawfilename=<optional filename>]

Sample:
otsfp9tools /filename="CA 1 Red Storm.fp9" /drawfilename="CA 1 Red Storm.jpg" /drawmapvalues

produce this:



Image

RE: Tool: OtsFp9Tools.exe

Posted: Wed Dec 24, 2014 6:06 pm
by WildCatNL
Cool!

William

RE: Tool: OtsFp9Tools.exe

Posted: Thu Jan 15, 2015 8:48 am
by harry_vdk
Hi,

I have done one option on my bucketlist.

/ExtractMap=<extract to filename>
/StartCol=<int>
/StartRow=<int>
/NrOfCols=<int>, default=46
/NrOfRows=<int>, default=30

Its extract a .png and .fp9

RE: Tool: OtsFp9Tools.exe

Posted: Thu Jan 15, 2015 9:05 am
by CapnDarwin
Harry, awesome work! Thanks for sharing the tool.

RE: Tool: OtsFp9Tools.exe

Posted: Tue May 26, 2015 12:23 pm
by harry_vdk
Add the Hexsize Obstacle ID to the /drawmapvalues option.



Image

RE: Tool: OtsFp9Tools.exe

Posted: Fri Sep 30, 2016 3:39 am
by harry_vdk
Add option /CreateElevation

Example:
/filename="CA 1 Red Storm.fp9" /createelevation

Create a new file named "CA 1 Red Storm.elevation.png"

This useful after the creation of a elevation layer witin qgis and scan the .fp9 file and use the levels within the .fp9.


Image

RE: Tool: OtsFp9Tools.exe

Posted: Fri Sep 30, 2016 3:47 am
by harry_vdk
Add option /CreateHexContours

Example:
/filename="CA 1 Red Storm.fp9" /createhexcontours

Create a new file named "CA 1 Red Storm.hexcontours.png"

Similar with /CreateElevation, but its create only the hexcontours on a transparent image and intended as a layer on top of the grid layer as a indication for the levels.


Image

RE: Tool: OtsFp9Tools.exe

Posted: Fri Sep 30, 2016 6:52 am
by mb4329
Hi Harry,

This is a really great tool. I used it a bit this evening and have a couple of questions.

I am running it from the command prompt, but I am wondering if there is a better way to run it?

Also, I used the /createelevation option which worked well and wondered it there is a command to suppress the display of the row and column numbers on the filename.elevation.png?

Regards,
Merrick

RE: Tool: OtsFp9Tools.exe

Posted: Sat Oct 01, 2016 4:04 am
by kipanderson
Harry,

thanks...extraordinarily clever stuff and look forward to using it.

Thanks.
All the best,
Kip.

RE: Tool: OtsFp9Tools.exe

Posted: Sat Oct 01, 2016 10:08 am
by harry_vdk
ORIGINAL: mb4329

Hi Harry,

This is a really great tool. I used it a bit this evening and have a couple of questions.

I am running it from the command prompt, but I am wondering if there is a better way to run it?

Also, I used the /createelevation option which worked well and wondered it there is a command to suppress the display of the row and column numbers on the filename.elevation.png?

Regards,
Merrick
Merrick,

I have split /createelevation and add /drawhexnumbers as a separate parameter.

I have create this tool for batch processing and repeated usage without a user interface. I running this only from batch/script files.

RE: Tool: OtsFp9Tools.exe

Posted: Sun Oct 02, 2016 10:34 pm
by mb4329
Hi Harry,

Thanks for the tweak. It works great.

Merrick