GDB to CSV 변환기
Aspose.GIS for .NET 라이브러리를 사용하여 GDB를 CSV 파일 형식으로 변환합니다.
라이브 예제
Aspose.GIS for .NET / C#는 “GDB to CSV Converter” 애플리케이션을 온라인에서 무료로 제공하며, 기능을 조사하고 품질을 확인할 수 있습니다.
코드 샘플 - GDB to CSV 변환기
다음 코드 스니펫은 GDB를 CSV 변환기를 구현하는 방법을 보여줍니다. 대상 CSV 레이어에 공간 참조 시스템을 지정하면 모든 지오메트리가 해당 시스템으로 변환됩니다.
// For complete examples and data files, please go to https://github.com/aspose-gis/Aspose.GIS-for-.NET | |
// Specify conversion settings if necessary. It is optional. | |
ConversionOptions options = null; | |
// This options assigns Wgs84 to the destination layer. | |
// Conversion may throw error If destination layer does not support the Wgs84 spatial reference. So need to check. | |
if (Drivers.Shapefile.SupportsSpatialReferenceSystem(SpatialReferenceSystem.Wgs84)) | |
{ | |
options = new ConversionOptions() | |
{ | |
DestinationSpatialReferenceSystem = SpatialReferenceSystem.Wgs84, | |
}; | |
} | |
// Convert file format from GDB to CSV. | |
VectorLayer.Convert("source.gdbtable", Drivers.FileGdb, "destination.csv", Drivers.Csv, options); |
이 샘플은 일반적인 가능성을 보여줍니다. Aspose.GIS for .NET은 파일 변환에 대한 광범위한 옵션을 제공합니다. 각 벡터 기반 형식에는 DriverOptions 클래스에서 상속된 고유 한 읽기 / 쓰기 옵션이 있습니다.
플랫폼 - .NET / C#
Windows에서는 Framework 4.7 이상을 지원하고, Windows 또는 Linux에서는 .NET Core 2.0 이상을 지원합니다.