berlog / androzic

Automatically exported from code.google.com/p/androzic
0 stars 0 forks source link

Ignore IWH,Map Image Width/Height field in MAP file for better OZI compatibility #246

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is expected? What do you get instead?

What version of the product are you using?

Please provide any additional information below.

Original issue reported on code.google.com by rich...@aardvark.com.au on 5 Apr 2012 at 7:39

GoogleCodeExporter commented 8 years ago
I have many maps and corresponding MAP files which I have used with OZI. Many 
of htese have apparently invalid IWH fields which prevent Androzic moving map 
feature from working correctly. Since OZI does not use this field - it shuld be 
possible for Androzic to also ignore it.

Original comment by rich...@aardvark.com.au on 5 Apr 2012 at 7:42

GoogleCodeExporter commented 8 years ago
Since this post - I have used some linux scripting to fix the IWH field in many 
.map files. If you have a linux box you can do something like this:
--
for FILE in *.map; do awk 'BEGIN{ FS="," ; OFS=","} {if ( NR == 11) { x = $3 ; 
y = $4 } if ( NR == 56 ) { print $1,$2,x,y ; next } { print }}' "${FILE}" > 
"./fix/${FILE}"; done
---

If you don't have a linux box - I can send you the corrected files for the 
NATMAP 2003 series map files.

Original comment by rich...@aardvark.com.au on 21 Aug 2012 at 5:09