ogr

ogr

OGR是開源C++的一個簡單要素庫,帶有命令行工具,提供對各種矢量文件格式的讀寫能力。

基本簡介


支持文件格式包括ESRI公司的shp格式,S - 57,SDTS,PostGIS,Oracle空間資料庫,和Mapinfo公司的mid/mif、TAB格式。
OGR是GDAL庫的一部分。
OGR 支持的矢量文件格式如下:
Format NameCodeCreationGeoreferencingCompiled by default
Aeronav FAA filesAeronavFAANoYesYes
ESRI ArcObjectsArcObjectsNoYesNo, needs ESRI ArcObjects
Arc/Info Binary CoverageAVCBinNoYesYes
Arc/Info .E00 (ASCII) CoverageAVCE00NoYesYes
Arc/Info GenerateARCGENNoNoYes
Atlas BNABNAYesNoYes
AutoCAD DWGDWGNoNoNo
AutoCAD DXFDXFYesNoYes
Comma Separated Value (.csv)CSVYesNoYes
CouchDB / GeoCouchCouchDBYesYesNo, needs libcurl
DODS/OPeNDAPDODSNoYesNo, needs libdap
EDIGEOEDIGEONoYesYes
ElasticSearchElasticSearchYes (write-only)-No, needs libcurl
ESRI FileGDBFileGDBYesYesNo, needs FileGDB API library
ESRI Personal GeoDatabasePGeoNoYesNo, needs ODBC library
ESRI ArcSDESDENoYesNo, needs ESRI SDE
ESRI ShapefileESRI ShapefileYesYesYes
FMEObjects GatewayFMEObjects GatewayNoYesNo, needs FME
GeoJSONGeoJSONYesYesYes
Géoconcept ExportGeoconceptYesYesYes
Geomedia .mdbGeomediaNoNoNo, needs ODBC library
GeoRSSGeoRSSYesYesYes (read support needs libexpat)
Google Fusion TablesGFTYesYesNo, needs libcurl
GMLGMLYesYesYes (read support needs Xerces or libexpat)
GMTGMTYesYesYes
GPSBabelGPSBabelYesYesYes (needs GPSBabel and GPX driver)
GPXGPXYesYesYes (read support needs libexpat)
GRASSGRASSNoYesNo, needs libgrass
GPSTrackMaker (.gtm, .gtz)GPSTrackMakerYesYesYes
Hydrographic Transfer FormatHTFNoYesYes
Idrisi Vector (.VCT)IdrisiNoYesYes
Informix DataBladeIDBYesYesNo, needs Informix DataBlade
INTERLIS"Interlis 1" and "Interlis 2"YesYesNo, needs Xerces (INTERLIS model reading needs ili2c.jar)
INGRESINGRESYesNoNo, needs INGRESS
KMLKMLYesYesYes (read support needs libexpat)
LIBKMLLIBKMLYesYesNo, needs libkml
Mapinfo FileMapInfo FileYesYesYes
Microstation DGNDGNYesNoYes
Access MDB (PGeo and Geomedia capable)MDBNoYesNo, needs JDK/JRE
MemoryMemoryYesYesYes
MySQLMySQLNoYesNo, needs MySQL library
NAS - ALKISNASNoYesNo, needs Xerces
Oracle SpatialOCIYesYesNo, needs OCI library
ODBCODBCNoYesNo, needs ODBC library
MS SQL SpatialMSSQLSpatialYesYesNo, needs ODBC library
Open Document SpreadsheetODSYesNoNo, needs libexpat
OGDI Vectors (VPF, VMAP, DCW)OGDINoYesNo, needs OGDI library
OpenAirOpenAirNoYesYes
OpenStreetMap XML and PBFOSMNoYesNo, needs libsqlite3 (and libexpat for OSM XML)
PCI Geomatics Database FilePCIDSKNoNoYes, using internal PCIDSK SDK (from GDAL 1.7.0)
Geospatial PDFPDFYesYesYes (read supports need libpoppler or libpodofo support)
PDSPDSNoYesYes
PGDumpPostgreSQL SQL dumpYesYesYes
PostgreSQL/PostGISPostgreSQL/PostGISYesYesNo, needs PostgreSQL client library (libpq)
EPIInfo .RECRECNoNoYes
S-57 (ENC)S57NoYesYes
SDTSSDTSNoYesYes
SEG-P1 / UKOOA P1/90SEGUKOOANoYesYes
SEG-YSEGYNoNoYes
Norwegian SOSI StandardSOSINoYesNo, needs FYBA library
SQLite/SpatiaLiteSQLiteYesYesNo, needs libsqlite3 or libspatialite
SUASUANoYesYes
SVGSVGNoYesNo, needs libexpat
UK .NTFUK. NTFNoYesYes
U.S. Census TIGER/LineTIGERNoYesYes
VFK dataVFKNoYesYes
VRT - Virtual DatasourceVRTNoYesYes
OGC WFS (Web Feature Service)WFSYesYesNo, needs libcurl
MS Excel formatXLSNoNoNo, needs libfreexl
MS Office Open XML spreadsheetXLSXYesNoNo, needs libexpat
X-Plane/Flighgear aeronautical dataXPLANENoYesYes