Aspose.GIS for net is a GIS data manipulation and conversion API. It fully supports reading, writing and converting famous GIS data formats such as ESRI Shapefiles, GeoJSON, TopoJSON, ESRI Geodatabase, Geography Markup Language, Google Earth, GPS Exchange Format, MapInfo Formats and OpenStreetMap. It is a standalone net based API and does not require any GIS based softwares like ArcGIS / ArcMap, QGIS etc.
// 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 JSON to GPX.
VectorLayer.Convert("source.geojson", Drivers.GeoJson, "destination.gpx", Drivers.Gpx, options);
There are a simple way to install Aspose.GIS for Net onto your system:
Conversion API for Net is supported on most platforms and operating systems and it can be used to develop several different types of Net apps including ASP Net, WinForms and Windows Services. API for Net is easy to use and deploy, and provides the ideal solution to work with geospatial information with Net Framework 4.7, Net Standard 2.0 & Xamarin platforms. Before running the code, please make sure your system meets the appropriate requirements.
Try the features of our library to see new opportunities. Live demos in C#
No need to download Aspose GIS API.
Just Select SHP as output format and.
Upload your GPX file, it will be converted instantly to SHP.
You will get the download link.
You can also convert Json into many other file formats including few listed below.