Java API for parsing MapInfo TAB format

女生的网名这么多〃 提交于 2019-12-06 13:46:05

There is no direct way to parse .TAB using java code. First of all you need to convert .TAB into KML or other extension using Gdal1 or ogr2ogr using this command line tool

ogr2ogr -f "KML" "filepath/filename.kml" "filepath/filename.TAB"

After that you can parse .kml file using java code using DOM parser2 API available in java.

The API you are trying to use is specifically for the use of raster tab files for the GeoTiff format. The title on the github page specifically mentions this:

GEOT-4619: Support MapInfo TAB files in geotiff format reader

There is a C++ library available to read and write MapInfo TAB files called MITAB which you could integrate into your application. Alternatively, you could use a library such as GDAL to convert your data into MIF/MID (a plain text MapInfo file format) which you can then parse as text.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!