GDB to GPX 변환기
Contents
[
Hide
]
Aspose.GIS for .NET 라이브러리를 사용하여 GDB를 GPX 파일 형식으로 변환합니다.
라이브 예제
Aspose.GIS for .NET / C#는 “GDB to GPX Converter” 애플리케이션을 온라인에서 무료로 제공하며, 기능을 조사하고 작동 품질을 확인할 수 있습니다.
코드 샘플 - GDB to GPX 변환기
다음 코드 스니펫은 GDB to GPX 변환기를 구현하는 방법을 보여줍니다. 대상 GPX 레이어에 공간 참조 시스템을 지정하면 모든 지오메트리가 해당 시스템으로 변환됩니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 GPX. | |
VectorLayer.Convert("source.gdbtable", Drivers.FileGdb, "destination.gpx", Drivers.Gpx, options); |
이 샘플은 일반적인 가능성을 보여줍니다. Aspose.GIS for .NET은 파일 변환에 대한 광범위한 옵션을 제공합니다. 각 벡터 기반 형식에는 DriverOptions 클래스에서 상속된 고유한 읽기/쓰기 옵션이 있습니다.
플랫폼 - .NET / C#
Windows에서는 Framework 4.7 이상을 지원하고, Windows 또는 Linux에서는 .NET Core 2.0 이상을 지원합니다.