Support for lexical level 2 (UCS-2) NATF attributes in s57 reader
|Reported by:||julius6||Owned by:||warmerdam|
|Severity:||critical||Keywords:||UCS-2 NATF lexical NALL|
we would like to know how in GDAL 1.9.2 we could handle LL2 languages in the S57 driver: as far as we understand the driver does not check LL 0, 1 or 2 before parsing string attributes. We read here and there (either in code or tickets) of "patches" attempting to solve the problem by looking at the unit terminator, but it does not seem to be present a definitive solution to this problem.
We tried a temporary fix with success:
- Modify S57Reader to get the DSID record and read the LL (NALL or AALL)
- Accordingly, recode strings from either UCS-2 or ISO-8859-1 to UTF-8
We put our fix in S57Reader::ApplyObjectClassAttributes, when it reads the string attributes for ATTF and NATF, we intercept the strings and recode them.
Is there any plan to do something official about this issue or do you have alternative suggestions to get around this problem?
Feel free to ask for the code if you are interested
Change History (17)
comment:9 by , 10 years ago
|Component:||default → OGR_SF|
|Status:||new → closed|