{"id":21819960,"url":"https://github.com/ngageoint/simple-features-geojson-ios","last_synced_at":"2025-04-14T02:42:42.033Z","repository":{"id":56933148,"uuid":"128947552","full_name":"ngageoint/simple-features-geojson-ios","owner":"ngageoint","description":"Simple Features GeoJSON iOS Library","archived":false,"fork":false,"pushed_at":"2025-04-08T17:41:53.000Z","size":5113,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-08T17:50:21.523Z","etag":null,"topics":["features","features-geojson","geojson","geojson-features","nga","ogc","simple-features"],"latest_commit_sha":null,"homepage":"https://ngageoint.github.io/simple-features-geojson-ios/","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ngageoint.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-10T14:36:01.000Z","updated_at":"2021-11-01T20:27:24.000Z","dependencies_parsed_at":"2024-04-08T20:49:21.404Z","dependency_job_id":null,"html_url":"https://github.com/ngageoint/simple-features-geojson-ios","commit_stats":{"total_commits":93,"total_committers":2,"mean_commits":46.5,"dds":0.07526881720430112,"last_synced_commit":"37f891d1e6453af98ef62a0a94123799b3b0ef38"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fsimple-features-geojson-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fsimple-features-geojson-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fsimple-features-geojson-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fsimple-features-geojson-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngageoint","download_url":"https://codeload.github.com/ngageoint/simple-features-geojson-ios/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248812423,"owners_count":21165421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["features","features-geojson","geojson","geojson-features","nga","ogc","simple-features"],"created_at":"2024-11-27T16:27:29.054Z","updated_at":"2025-04-14T02:42:41.988Z","avatar_url":"https://github.com/ngageoint.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Features GeoJSON iOS\n\n#### Simple Features GeoJSON Lib ####\n\nThe Simple Features Libraries were developed at the [National Geospatial-Intelligence Agency (NGA)](http://www.nga.mil/) in collaboration with [BIT Systems](https://www.caci.com/bit-systems/). The government has \"unlimited rights\" and is releasing this software to increase the impact of government investments by providing developers with the opportunity to take things in new directions. The software use, modification, and distribution rights are stipulated within the [MIT license](http://choosealicense.com/licenses/mit/).\n\n### Pull Requests ###\nIf you'd like to contribute to this project, please make a pull request. We'll review the pull request and discuss the changes. All pull request contributions to this project will be released under the MIT license.\n\nSoftware source code previously released under an open source license and then modified by NGA staff is considered a \"joint work\" (see 17 USC § 101); it is partially copyrighted, partially public domain, and as a whole is protected by the copyrights of the non-government authors and must be released according to the terms of the original open source license.\n\n### About ###\n\n[Simple Features GeoJSON](http://ngageoint.github.io/simple-features-geojson-ios/) is an iOS Objective-C library for writing and reading [Simple Feature](https://github.com/ngageoint/simple-features-ios) Geometries to and from GeoJSON.\n\n### Usage ###\n\nView the latest [Appledoc](http://ngageoint.github.io/simple-features-geojson-ios/docs/api/)\n\n#### Read ####\n\n```objectivec\n\n// NSString *content = ...\n\nSFGGeometry *geometry = [SFGFeatureConverter jsonToGeometry:content];\nSFGeometry *simpleGeometry = [geometry geometry];\n\n/* Read as a generic GeoJSON object, Feature, or Feature Collection */\n// SFGGeoJSONObject *geoJSONObject = [SFGFeatureConverter jsonToObject:content];\n// SFGFeature *feature = [SFGFeatureConverter jsonToFeature:content];\n// SFGFeatureCollection *featureCollection = [SFGFeatureConverter jsonToFeatureCollection:content];\n\n```\n\n#### Write ####\n\n```objectivec\n\n// SFGeometry *geometry = ...\n\nNSString *content = [SFGFeatureConverter simpleGeometryToJSON:geometry];\n\nSFGFeature *feature = [SFGFeatureConverter simpleGeometryToFeature:geometry];\nNSString *featureContent = [SFGFeatureConverter objectToJSON:feature];\n\nSFGFeatureCollection *featureCollection = [SFGFeatureConverter simpleGeometryToFeatureCollection:geometry];\nNSString *featureCollectionContent = [SFGFeatureConverter objectToJSON:featureCollection];\n\nNSDictionary *contentTree = [SFGFeatureConverter simpleGeometryToTree:geometry];\n\n```\n\n### Build ###\n\n[![Build \u0026 Test](https://github.com/ngageoint/simple-features-geojson-ios/workflows/Build%20\u0026%20Test/badge.svg)](https://github.com/ngageoint/simple-features-geojson-ios/actions/workflows/build-test.yml)\n\nBuild this repository using Xcode and/or CocoaPods:\n\n    pod repo update\n    pod install\n\nOpen sf-geojson-ios.xcworkspace in Xcode or build from command line:\n\n    xcodebuild -workspace 'sf-geojson-ios.xcworkspace' -scheme sf-geojson-ios build\n\nRun tests from Xcode or from command line:\n\n    xcodebuild test -workspace 'sf-geojson-ios.xcworkspace' -scheme sf-geojson-ios -destination 'platform=iOS Simulator,name=iPhone 15'\n\n### Include Library ###\n\nInclude this repository by specifying it in a Podfile using a supported option.\n\nPull from [CocoaPods](https://cocoapods.org/pods/sf-geojson-ios):\n\n    pod 'sf-geojson-ios', '~\u003e 4.2.5'\n\nPull from GitHub:\n\n    pod 'sf-geojson-ios', :git =\u003e 'https://github.com/ngageoint/simple-features-geojson-ios.git', :branch =\u003e 'master'\n    pod 'sf-geojson-ios', :git =\u003e 'https://github.com/ngageoint/simple-features-geojson-ios.git', :tag =\u003e '4.2.5'\n\nInclude as local project:\n\n    pod 'sf-geojson-ios', :path =\u003e '../simple-features-geojson-ios'\n\n### Swift ###\n\nTo use from Swift, import the sf-geojson-ios bridging header from the Swift project's bridging header\n\n    #import \"sf-geojson-ios-Bridging-Header.h\"\n\n#### Read ####\n\n```swift\n\n// var content: String = ...\n\nlet geometry: SFGGeometry = SFGFeatureConverter.json(toGeometry: content)\nlet simpleGeometry: SFGeometry = geometry.geometry()\n\n/* Read as a generic GeoJSON object, Feature, or Feature Collection */\n// let geoJSONObject : SFGGeoJSONObject = SFGFeatureConverter.json(toObject: content)\n// let feature: SFGFeature = SFGFeatureConverter.json(toFeature: content)\n// let featureCollection : SFGFeatureCollection = SFGFeatureConverter.json(toFeatureCollection: content)\n\n```\n\n#### Write ####\n\n```swift\n\n// let geometry : SFGeometry = ...\n\nlet content : String = SFGFeatureConverter.simpleGeometry(toJSON: geometry)\n\nlet feature : SFGFeature = SFGFeatureConverter.simpleGeometry(toFeature: geometry)\nlet featureContent : String = SFGFeatureConverter.object(toJSON: feature)\n\nlet featureCollection : SFGFeatureCollection = SFGFeatureConverter.simpleGeometry(toFeatureCollection: geometry)\nlet featureCollectionContent : String = SFGFeatureConverter.object(toJSON: featureCollection)\n\nlet contentTree : Dictionary = SFGFeatureConverter.simpleGeometry(toTree: geometry)\n\n```\n\n### Remote Dependencies ###\n\n* [Simple Features](https://github.com/ngageoint/simple-features-ios) (The MIT License (MIT)) - Simple Features Lib\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngageoint%2Fsimple-features-geojson-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngageoint%2Fsimple-features-geojson-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngageoint%2Fsimple-features-geojson-ios/lists"}