- Start QGIS
- Go to "Settings" > "Options"
- In Options window, find "System", then "Environment"
- Add environment variable "GDAL_PAM_ENABLED" with value equals "NO"
- Restart QGIS
Showing posts with label gdal. Show all posts
Showing posts with label gdal. Show all posts
Friday, February 17, 2023
Stop QGIS from generating the .aux.xml files when opening GeoTiff files
Thursday, January 19, 2023
Compile fanvanzh's 3dtiles in Linux
Working for fanvanzh's 3dtiles Linux compilation for days. Some items for reminding everybody how wants to do the same thing.
liwei0705 did a good move in making fanvanzh's 3dtiles converter works. But if you are using a new version of OSG and GDAL, pay attention to the following summarised reminders when building your own version of "_3dtile"
- Delete 3dtiles/bin, it is for windows only
- Compile your own OpenSceneGraph
- Copy OpenSceneGraph /lib to 3dtiles
- Copy OpenSceneGraph /include/* to 3dtiles/src/osg/*
- If not compile OpenSceneGraph on your own, you can install "openscenegraph" and "libopenscenegraph-dev" instead
- Delete /lib in 3dtiles (the /lib is for self-compiled OSG, GDAL actually)
- Delete 3dtiles/src/osg/ (no need to provide OSG header, use the one in libopenscenegraphi-dev)
- Install gdal-bin, libgdal-dev
- rm -rf 3dtiles/src/gdal (we will use libraries and header by gdal-bin and libgdal-dev)
- Source file: src/tileset.cpp
- Hide up #ifdef _WIN32, turn on "epsg_convert" and "wkt_convert"
- Comment out GDAL_DATA:
- // CPLSetConfigOption("GDAL_DATA", path);
- For epsg_convert( )
- Don't use importFromEPSG(), use:
- // For 2326 Input (Hard code the input SRS) (Ref)
- inRs.importFromProj4("+proj=tmerc +lat_0=22.3121333333333 +lon_0=114.178555555556 +k=1 +x_0=836694.05 +y_0=819069.8 +ellps=intl +towgs84=-162.619,-276.959,-161.764,-0.067753,2.243648,1.158828,-1.094246 +units=m +no_defs +type=crs");
- // for 4326 Output (Hard code the output SRS) (Ref)
- outRs.importFromProj4("+proj=longlat +datum=WGS84 +no_defs +type=crs");
- Source file: src/earcut.hpp
- Add header files
- #include <stdexcept>
- #include <limits>
- Source file: build.rs
- In linux bulid config, add:
- println!("cargo:rustc-link-lib=gdal");
- When running the ./target/release/_3dtile
- export LD_LIBRARY_PATH=./lib
- Side notes, if you use "cargo run" for debugging and when to rebuild the project when some CPP files are modified, add the following in linux build config (build.rs): (reference)
- println!("cargo:rerun-if-changed=./src/tileset.cpp");
Monday, May 18, 2020
Using GDAL with SpringBoot in Ubuntu
To use GDAL with SpringBoot in Ubuntu:
Reference: http://geoexamples.blogspot.com/2012/05/running-gdal-java.html
- Apt install gdal-bin, gdal-data, libgdal-java (optionally libgdal26, don't know whether it's necessary)
- Set the Environment variables in Eclipse:
- GDAL_DATA = /usr/share/gdal
- LD_LIBRARY_PATH = /usr/lib/jni:$LD_LIBRARY_PATH
Reference: http://geoexamples.blogspot.com/2012/05/running-gdal-java.html
Subscribe to:
Posts (Atom)
Upgrade nodejs in conda (from v18 to v26)
If your conda env is nodejs v18, doing a conda install nodejs=26 is likely to create a lot of conflict. Consider remove those conflicting p...
-
When Office2003 couldn't find file SKU011.CAB: regedit -> [HKEY_LOCAL_MACHINE] -> [SOFTWARE] -> [Microsoft] -> [Office] -...
-
The resolution can be changed by editing the BlueStack's registry: HKLM\SOFTWARE\BlueStacks\Guests\Android\FrameBuffer\0\Height and ...
-
Suppose you got a file in Big5 containing some HKSCS characters (e.g. 深水埗, 赤鱲角, etc). When your environment (Ref: Charset.defaultCharset( ) ...