Skip to content

A simple GeoJSON parser for Unity

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

Torantulino/Unity-GeoJSONObject

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity-GeoJSONObject

A simple RFC 7946 GeoJSON parser in C# for Unity 3D. Utilizes the JSONObject library by Matt Schoen.

Prerequisite

Import the JSONObject library from https://github.com/mtschoen/JSONObject

Example

//Read a TextAsset and parse as a FeatureCollection
FeatureCollection collection = GeoJSON.GeoJSONObject.Deserialize(encodedGeoJSON.text);

//Serialize collection back to text
string json = collection.Serialize().ToString();

Getting started

(0. Import the JSONObject library from https://github.com/mtschoen/JSONObject into Unity)

  1. Import directory into Unity
  2. See the example scene

Missing features

  • Bounding Box support

About

A simple GeoJSON parser for Unity

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%