-
Couldn't load subscription status.
- Fork 33
Open
Description
Two files, both UFT8 one with, one without BOM
GPX.read cannot handle the file with BOM. Txt files are GPX files, but GPX Files could not be uploaded here
Sample Code:
@Slf4j
public class GpxApplication {
public static void main(String[] args) {
File[] files = new File("/Users/kk/ij_git/gpx/input").listFiles();
assert files != null;
for (File file : files) {
if (file.isFile() && file.getName().endsWith("txt")) {
try {
GPX gpxR = GPX.read(file.toPath());
log.info("filen: {} // gpx: {}", file.getName(), gpxR.toString());
} catch (IOException e) {
log.error("cannot read file: {} {}", file.getName(), e.getLocalizedMessage());
e.printStackTrace();
}
}
}
}
}
Regrads,
Klaus
Metadata
Metadata
Assignees
Labels
No labels