{"id":21819975,"url":"https://github.com/ngageoint/simple-features-proj-ios","last_synced_at":"2025-04-14T02:43:18.479Z","repository":{"id":56933215,"uuid":"128946948","full_name":"ngageoint/simple-features-proj-ios","owner":"ngageoint","description":"Simple Features Projection iOS Library","archived":false,"fork":false,"pushed_at":"2025-04-09T21:10:27.000Z","size":29150,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-09T21:31:32.485Z","etag":null,"topics":["features","nga","ogc","proj4","projection","projections","simple-features"],"latest_commit_sha":null,"homepage":"https://ngageoint.github.io/simple-features-proj-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:31:57.000Z","updated_at":"2023-12-01T20:54:13.000Z","dependencies_parsed_at":"2024-04-09T17:54:00.787Z","dependency_job_id":"6c0f014f-66b3-4f10-8c03-0b9e43a489a0","html_url":"https://github.com/ngageoint/simple-features-proj-ios","commit_stats":{"total_commits":108,"total_committers":3,"mean_commits":36.0,"dds":0.5277777777777778,"last_synced_commit":"252a0c878f4b49df5a8f890e47a4beed23a2590d"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fsimple-features-proj-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fsimple-features-proj-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fsimple-features-proj-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fsimple-features-proj-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngageoint","download_url":"https://codeload.github.com/ngageoint/simple-features-proj-ios/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248812524,"owners_count":21165444,"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","nga","ogc","proj4","projection","projections","simple-features"],"created_at":"2024-11-27T16:27:43.321Z","updated_at":"2025-04-14T02:43:18.458Z","avatar_url":"https://github.com/ngageoint.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Features Projection iOS\n\n#### Simple Features Projection 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 Projection](http://ngageoint.github.io/simple-features-proj-ios/) is an iOS library for performing projection conversions between [Simple Feature](https://github.com/ngageoint/simple-features-ios) Geometries.\n\n### Usage ###\n\nView the latest [Appledoc](http://ngageoint.github.io/simple-features-proj-ios/docs/api/)\n\n#### Transform ####\n\n```objectivec\n\n// SFGeometry *geometry = ...\n\nPROJProjection *projection1 =\n    [PROJProjectionFactory projectionWithAuthority:PROJ_AUTHORITY_EPSG\n    andIntCode:PROJ_EPSG_WEB_MERCATOR];\nPROJProjection *projection2 =\n    [PROJProjectionFactory projectionWithAuthority:PROJ_AUTHORITY_EPSG\n    andIntCode:PROJ_EPSG_WORLD_GEODETIC_SYSTEM];\n\nSFPGeometryTransform *transform =\n    [SFPGeometryTransform transformFromProjection:projection1\n    andToProjection:projection2];\n\nSFGeometry *transformed = [transform transformGeometry:geometry];\n\n[transform destroy];\n\n```\n\n### Build ###\n\n[![Build \u0026 Test](https://github.com/ngageoint/simple-features-proj-ios/workflows/Build%20\u0026%20Test/badge.svg)](https://github.com/ngageoint/simple-features-proj-ios/actions/workflows/build-test.yml)\n\n**IMPORTANT** -\nBe sure your Mac has the `autoconf`, `automake`, and `glibtoolize` utilities.  These are required to build\nthe [PROJ](https://github.com/ngageoint/PROJ) dependency.  Without them, `pod install` will fail.  The easiest way to get these is to [`brew install`](https://brew.sh/) them:\n```\nbrew install automake\nbrew install libtool\n```\n\nBuild this repository using Xcode and/or CocoaPods:\n\n    pod repo update\n    pod install\n\nOpen sf-proj-ios.xcworkspace in Xcode or build from command line:\n\n    xcodebuild -workspace 'sf-proj-ios.xcworkspace' -scheme sf-proj-ios build\n\nRun tests from Xcode or from command line:\n\n    xcodebuild test -workspace 'sf-proj-ios.xcworkspace' -scheme sf-proj-ios -destination 'platform=iOS Simulator,name=iPhone 15'\n\n### Include Library ###\n\nSee the [above note](https://github.com/ngageoint/simple-features-proj-ios#build) about `automake` and `glibtoolize`.\n\nInclude this repository by specifying it in a Podfile using a supported option.\n\nPull from [CocoaPods](https://cocoapods.org/pods/sf-proj-ios):\n\n    pod 'sf-proj-ios', '~\u003e 6.0.3'\n\nIf you use `use_modular_headers!` in your Podfile, disable modular headers for the [PROJ](https://github.com/ngageoint/PROJ) dependency:\n\n    pod 'sf-proj-ios', '~\u003e 6.0.3'\n    pod 'PROJ', :modular_headers =\u003e false\n\nPull from GitHub:\n\n    pod 'sf-proj-ios', :git =\u003e 'https://github.com/ngageoint/simple-features-proj-ios.git', :branch =\u003e 'master'\n    pod 'sf-proj-ios', :git =\u003e 'https://github.com/ngageoint/simple-features-proj-ios.git', :tag =\u003e '6.0.3'\n\nInclude as local project:\n\n    pod 'sf-proj-ios', :path =\u003e '../simple-features-proj-ios'\n\n### Swift ###\n\nTo use from Swift, import the sf-proj-ios bridging header from the Swift project's bridging header\n\n    #import \"sf-proj-ios-Bridging-Header.h\"\n\n#### Transform ####\n\n```swift\n\n// var geometry: SFGeometry = ...\n\nlet projection1: PROJProjection = PROJProjectionFactory.projection(withAuthority: PROJ_AUTHORITY_EPSG, andIntCode: PROJ_EPSG_WEB_MERCATOR)\nlet projection2: PROJProjection = PROJProjectionFactory.projection(withAuthority: PROJ_AUTHORITY_EPSG, andIntCode: PROJ_EPSG_WORLD_GEODETIC_SYSTEM)\n\nlet transform: SFPGeometryTransform = SFPGeometryTransform(from: projection1, andTo: projection2)\n\nlet transformed: SFGeometry = transform.transform(geometry)\n\ntransform.destroy()\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* [Projections](https://github.com/ngageoint/projections-ios) (The MIT License (MIT)) - Projections Lib\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngageoint%2Fsimple-features-proj-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngageoint%2Fsimple-features-proj-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngageoint%2Fsimple-features-proj-ios/lists"}