zoukankan      html  css  js  c++  java
  • 验证gdal支持打开的矢量文件格式

    1.gdal支持的矢量格式列表

    https://www.osgeo.cn/gdal/drivers/vector/index.html

    2.gdal命令测试打开矢量格式

    gdal版本

    C:Program FilesGDAL>gdalinfo.exe --version
    GDAL 3.1.3, released 2020/09/01
    

    ogrinfo.exe xxx.文件格式后缀

    GeoJSON(打开成功)

    C:Program FilesGDAL>ogrinfo.exe D:aaaa.geojson
    INFO: Open of `D:aaaa.geojson'
          using driver `GeoJSON' successful.
    1: test (Multi Polygon)
    

    csv(打开成功)

    C:Program FilesGDAL>ogrinfo.exe D:bbb.csv
    INFO: Open of `D:bbb.csv'
          using driver `CSV' successful.
    1: bbbb (None)
    

    txt(打开失败)

    C:Program FilesGDAL>ogrinfo.exe D:cccc.txt
    FAILURE:
    Unable to open datasource `D:cccc.txt' with the following drivers.
      -> netCDF
      -> MSSQLSpatial
      -> PCIDSK
      -> PDS4
      -> VICAR
      -> JP2OpenJPEG
      -> PDF
      -> MBTiles
      -> EEDA
      -> DB2ODBC
      -> ESRI Shapefile
      -> MapInfo File
      -> UK .NTF
      -> OGR_SDTS
      -> S57
      -> DGN
      -> OGR_VRT
      -> REC
      -> Memory
      -> BNA
      -> CSV
      -> NAS
      -> GML
      -> GPX
      -> LIBKML
      -> KML
      -> GeoJSON
      -> GeoJSONSeq
      -> ESRIJSON
      -> TopoJSON
      -> Interlis 1
      -> Interlis 2
      -> OGR_GMT
      -> GPKG
      -> SQLite
      -> ODBC
      -> WAsP
      -> PGeo
      -> PostgreSQL
      -> MySQL
      -> OpenFileGDB
      -> XPlane
      -> DXF
      -> CAD
      -> FlatGeobuf
      -> Geoconcept
      -> GeoRSS
      -> GPSTrackMaker
      -> VFK
      -> PGDUMP
      -> OSM
      -> GPSBabel
      -> SUA
      -> OpenAir
      -> OGR_PDS
      -> WFS
      -> OAPIF
      -> HTF
      -> AeronavFAA
      -> Geomedia
      -> EDIGEO
      -> SVG
      -> CouchDB
      -> Cloudant
      -> Idrisi
      -> ARCGEN
      -> SEGUKOOA
      -> SEGY
      -> ODS
      -> XLSX
      -> Elasticsearch
      -> Walk
      -> Carto
      -> SXF
      -> Selafin
      -> JML
      -> PLSCENES
      -> CSW
      -> VDV
      -> GMLAS
      -> MVT
      -> NGW
      -> MapML
      -> TIGER
      -> AVCBin
      -> AVCE00
      -> HTTP
    

    xml(打开失败)

    C:Program FilesGDAL>ogrinfo.exe D:dddd.xml
    FAILURE:
    Unable to open datasource `D:dddd.xml' with the following drivers.
      -> netCDF
      -> MSSQLSpatial
      -> PCIDSK
      ...
    

    GeoPackage(打开成功)

    C:Program FilesGDAL>ogrinfo.exe D:eeee.gpkg
    INFO: Open of `D:eeee.gpkg'
          using driver `GPKG' successful.
    1: Point (3D Point)
    

    ESRI Shapefile(打开成功)

    C:Program FilesGDAL>ogrinfo.exe D:ffff.shp
    INFO: Open of `D:ffff.shp'
          using driver `ESRI Shapefile' successful.
    1: ffff (Line String)
    

    kml(打开成功)

    C:Program FilesGDAL>ogrinfo.exe D:gggg.kml
    INFO: Open of `D:gggg.kml'
          using driver `LIBKML' successful.
    1: gggg
    

    gml(打开成功)

    C:Program FilesGDAL>ogrinfo.exe D:hhhh.gml
    INFO: Open of `D:hhhh.gml'
          using driver `GML' successful.
    1: hhhh (Multi Line String)
    
  • 相关阅读:
    ArcGIS for Android示例解析之高亮要素-----HighlightFeatures
    ArcGIS Runtime for Android开发教程V2.0(8)基础篇-----地图事件
    ArcGIS for Android示例解析之空间查询-----QueryTask
    ArcGIS for Android地图控件的5大常见操作
    ArcGIS Runtime for Android开发教程V2.0(4)基础篇---MapView
    ArcGIS for Android 中MapView的地图背景设置
    使用Arcglobe 10与3dmax建立三维城市
    使用PowerDesigner建立数据库模型
    一步一步学Remoting系列文章
    App集成支付宝
  • 原文地址:https://www.cnblogs.com/unlockth/p/14760688.html
Copyright © 2011-2022 走看看