kikitte / GDAL4Android

Builds GDAL into an Android Archive(AAR) file
10 stars 2 forks source link

Enable MicroStation DGN and AutoCAD DXF drivers. #1

Closed lionpham-gis closed 3 months ago

lionpham-gis commented 1 year ago

Awesome,

How can i enable MicroStation DGN, AutoCAD DXF and GeoPDF drivers.

Thank you so much,

kikitte commented 1 year ago

You may reading the gdal building guide, currently this project produce a minimal build, you can enable these drivers by adding -DOGR_ENABLE_DRIVER_<driver_name>=ON to the cmake command used for configure gdal in the following section: https://github.com/kikitte/GDAL4Android/blob/d8086d7855ebf39d2c7cb548606e62bab71fa058/gdal/build_cpp.sh#L91-L111

Please note that some drivers may require extra dependencies(e.g. kml rquires expat), you should build & install them before building gdal, so modification to build_cpp.sh is also needed.

After these changes, just rebuild the gdal module in Android Studio.

lionpham-gis commented 1 year ago

I have enabled DGN and DXF Drivers, but I get compilation error with GeoPDF and PDFium library. Bạn có thể cập nhật repo này với PDFium library like Expat library.

Many thanks,

kikitte commented 1 year ago

Could you attach the error log?