Bug 1261 - [AVCE00] Error with blank TX6/TX7 subclass names
: [AVCE00] Error with blank TX6/TX7 subclass names
Status: RESOLVED FIXED
: AVCE00
default
: unspecified
: PC Linux
: P2 normal
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2006-01-24 18:10 by
Modified: 2006-03-02 17:52 (History)


Attachments
Patch that fixes this for TX6/TX7 sections only (2.42 KB, patch)
2006-03-02 17:45, Daniel Morissette
Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2006-01-24 18:10:07
Jerl Simpson writes:

When I run the program on a file that contains Populated Places as points,
obtained from http://data.geocomm.com/ I receive the following error:

ERROR 5: Invalid TX6/TX7 subclass name "-8.6507622E+01 1.6335363E+01"

I end up with a file containing a list of points, but no city names to go along
with it.

A snippet from the file itself follows.  I've included a bit before and after
the place where the error appears to occur.  If you like, I will email you the
file, it's rather small, but didn't want to send it with out solicitation.

-8.7066605E+01 1.3024831E+01-8.7066605E+01 1.3024831E+01
       999       578-8.7019020E+01 1.3023805E+01
-8.7019020E+01 1.3023805E+01-8.7019020E+01 1.3023805E+01
        -1         0 0.0000000E+00 0.0000000E+00
TOL  2
         1         2 2.0000001E-03
         2         2 0.0000000E+00
         3         2 0.0000000E+00
         4         2 0.0000000E+00
         5         2 0.0000000E+00
         6         2 5.9793243E-02
         7         2 5.9793243E-03
         8         2 5.9793243E-03
         9         2 5.9793243E-03
        10         2 5.9793243E-03
        -1         0         0         0         0         0         0
TX7  2

         0         4         2         0         1         0         6         0
         1         0         0         0         0         0         0
         0         0         0         0         0         0         0
         0         0         0         0         0         0
         0         0         0         0         0         0         0
         0         0         0         0         0         0         0
         0         0         0         0         0         0
 1.2700000E+00
 1.6766226E-02 0.0000000E+00 0.0000000E+00
-8.6507622E+01 1.6335363E+01
-8.6507622E+01 1.6335363E+01
Roatan
         0         4         2         0         1         0         9         0
         1         0         0         0         0         0         0
         0         0         0         0         0         0         0
         0         0         0         0         0         0
         0         0         0         0         0         0         0
         0         0         0         0         0         0         0
         0         0         0         0         0         0
 0.0000000E+00
 1.6408410E-02 0.0000000E+00 0.0000000E+00
-8.7678352E+01 1.5876268E+01
-8.7678352E+01 1.5876268E+01

Please let me know if you require more information.
------- Comment #1 From 2006-01-24 18:18:41 -------
I have seen this issue reported before, I thought it had been addressed or at
least documented in a bug but I guess I forgot to do it.

Anyway, the source of the problem is the blank subclass name (the blank line
that follows the "TX7  2" line). The second line of a TX7 section should contain
the subclass name which is used to build the filename of the .TX* files in the
coverage directory.

The workaround until this is fixed would be to enter some arbitrary name on the
line that follows the "TX7  2" line. e.g.

TX7  2
cities
         0         4         2         0         1         0         6         0
         1         0         0         0         0         0         0
------- Comment #2 From 2006-03-02 17:43:35 -------
The empty subclass names really seem to defeat the logic of the file format, or
at least the implementation in avce00 used to skip empty lines, I don't remember
why exactly I used to skip empty lines but there must have been a good reason.

Anyway, since those empty TX7 subclass names seem to be common (possibly from a
single source?), I will implement a specific case just for TX6/TX7 section that
should not affect the way other other supersection types such as RPL and RXP are
handled.

The hack will default to using class name "TXT", resulting in a "txt.txt" file
being created in the coverage directory. If the coverage is ever exported then
the subclass name TXT will show up in the E00 instead of the empty subclass name.

If someone can import one of those E00 files in Arc/Info and tell me how it
names the .txt file then I can adjust the lib to use the same behavior.
------- Comment #3 From 2006-03-02 17:45:17 -------
Created an attachment (id=110) [details]
Patch that fixes this for TX6/TX7 sections only
------- Comment #4 From 2006-03-02 17:52:24 -------
Fixed in CVS, will be part of next release. Feedback on the patch welcome.