a blog about GIS from a urban geogeek working for humanitarian emergencies
Categories: GIS, GFT, GDAL
Feedback: View Comments
Today in the GDAL mailing list Frank Warmerdam has announced that GDAL 1.9.0 has finally been released. Being a major new release, it offers many new features, but what I was waiting for is the support for Esri File GDB and Google Fusion Table. So I couldn't resist to install it and giving a try.
Using GDAL with Esri File Geodatabase
For using the File Geodatabase driver I had to dowload the Esri File Geodatabase API (you need to be registered for downloading it).
It was then just a matter of setting the value of the library path in the LD_LIBRARY_PATH variable, and using the --with-fgdb GDAL configuration option when configuring before compilation for obtaining support for FGDB in GDAL.
After compilation I could verify that I had this format supported by using the --formats option of the ogrinfo command:
$ ogrinfo --formats -> "ESRI Shapefile" (read/write) -> "MapInfo File" (read/write) ... -> "FileGDB" (read/write) ...
$ ogr2ogr -f "FileGDB" mygdb.gdb ~/data/shapefile/country.shp
Support for Google Fusion Tables
Google Fusion Tables support is the first cloud storage supported by GDAL natively. I guess many others drivers will come for other cloud computing storages, but at the moment this is a big plus for Google, if compared to others.
After compilation you can easily verify that your GDAL installation is supporting the GFT format:
$ ogrinfo --formats -> "ESRI Shapefile" (read/write) -> "MapInfo File" (read/write) ... --> "GFT" (read/write) ...
After installation, I could then import a shapefile straight to the Google cloud, by using the ogr2ogr command with the GFT driver:
$ ogr2ogr -f GFT "GFT:firstname.lastname@example.org password=mypassword" ~/data/shapefile/country.shp
And as soon as my shapefile was uploaded to the cloud, I could easily access it with the Google Maps API