English

json to geojson conversion API for net

Integrate json to geojson conversion with GIS API for net developers

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.

  Download Free Trial
PNG JPG BMP TIFF GPX
Aspose.GIS for NET
GIS

Overview

Add Json to Geojson conversion into your cross-platform application or Net project using our API for Net.

The GIS conversion API uses the same method with many options for different formats, making it simple and intuitive to use for users. Our API provides fast and accurate conversions between Json and Geojson and retrieves the converted Geojson files losslessly at the original high resolution.

Conversion API has a several features:
  • Inter-conversion;
  • Supports setting object attributes during conversion;
  • Reprojection during conversion.
Get fully managed code to integrate the Json to Geojson conversion into any kind of Net application.
Build a powerful conversion application in C#, ASPNet, or other Net-related technologies.
You can use the conversion to Net to develop your application in any development environment that targets the Net platform. Compatible with all Net-based languages and supports popular operating systems (Windows, Linux, macOS) with Mono or the Net framework (including Net Core) installed.

Why Aspose.GIS.Conversion for Net?

Aspose.GIS.Conversion API for Net helps developers convert geographic information fetched from vector-based geospatial data formats without needing any other GIS software. Our API supports working with Shapefile, Json, ESRI File Geodatabase (FileGDB), Geography Markup Language (GML), Keyhole Markup Language (KML), Scalable Vector Graphics (SVG), and many others. Aspose’s customers are drawn from various industries, from software developers and consulting companies to banks, government agencies, and academic institutions. Whenever you need experience in GIS, you need an Aspose.GIS product.
Some of our 21,000+ customers around the world have shared their succhess stories already.
Code for integrating Json to Geojson Conversion into your application
Input file
Upload a file you want to convert
Output format
Select the target format from the list
                
                    
// 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 GeoJSON.
VectorLayer.Convert("source.geojson", Drivers.GeoJson, "destination.geojson", Drivers.GeoJson, options);
                
            

How to convert Json to Geojson in C#

  1. A string type file path to the source Json file
  2. Source driver to let the API know about the input format. Set it to Drivers.Json
  3. The string type file path to the destination Geojson data file
  4. Destination driver to specify output format. Set it to Drivers.Geojson

C# Conversion library

There are a simple way to install Aspose.GIS for Net onto your system:

  • Install Package Aspose.GIS from Package Manager Console in Visual Studio to get the NuGet package;
  • Or you can download package from our site;
  • Update Package Aspose.GIS. to upgrade to the latest version;
  • Add Aspose.GIS for Net to your system by installing NuGet Package;
  • See Documentation.

System Requirements

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.

Json as Geojson Live Demos

Try the features of our library to see new opportunities. Live demos in C#

Key Features

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.