{"id":21820015,"url":"https://github.com/ngageoint/projections-java","last_synced_at":"2025-07-12T13:35:42.734Z","repository":{"id":57736812,"uuid":"379934894","full_name":"ngageoint/projections-java","owner":"ngageoint","description":"Projections Java Library","archived":false,"fork":false,"pushed_at":"2024-04-02T19:02:23.000Z","size":3936,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-27T16:41:47.719Z","etag":null,"topics":["coordinate-reference-system","coordinate-reference-systems","coordinate-transformation","coordinate-transformations","crs","java-api","java-libraries","java-library","java-sdk","nga","ogc","proj","proj4","proj4j","projection","projections","well-known","well-known-text","wkt","wkt-crs"],"latest_commit_sha":null,"homepage":"https://ngageoint.github.io/projections-java/","language":"Java","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.txt","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":"2021-06-24T13:30:58.000Z","updated_at":"2024-04-02T17:40:38.000Z","dependencies_parsed_at":"2024-04-02T19:50:46.825Z","dependency_job_id":null,"html_url":"https://github.com/ngageoint/projections-java","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fprojections-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fprojections-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fprojections-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fprojections-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngageoint","download_url":"https://codeload.github.com/ngageoint/projections-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248812206,"owners_count":21165387,"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":["coordinate-reference-system","coordinate-reference-systems","coordinate-transformation","coordinate-transformations","crs","java-api","java-libraries","java-library","java-sdk","nga","ogc","proj","proj4","proj4j","projection","projections","well-known","well-known-text","wkt","wkt-crs"],"created_at":"2024-11-27T16:27:59.890Z","updated_at":"2025-04-14T02:41:41.015Z","avatar_url":"https://github.com/ngageoint.png","language":"Java","readme":"# Projections Java\n\n#### Projections Lib ####\n\nThe Projections Library was 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[Projections](http://ngageoint.github.io/projections-java/) is a Java library for performing projection conversions between coordinates.\n\nFor conversions between geometries, see [Simple Features Projections](https://ngageoint.github.io/simple-features-proj-java/).\n\n### Usage ###\n\nView the latest [Javadoc](http://ngageoint.github.io/projections-java/docs/api/)\n\n```java\n\n// ProjCoordinate coordinate = ...\n\nProjection projection1 = ProjectionFactory.getProjection(\n    ProjectionConstants.AUTHORITY_EPSG,\n    ProjectionConstants.EPSG_WEB_MERCATOR);\nProjection projection2 = ProjectionFactory.getProjection(\"EPSG:4326\");\nProjection projection3 = ProjectionFactory.getProjection(\n    ProjectionConstants.AUTHORITY_EPSG, 3123,\n    \"+proj=tmerc +lat_0=0 +lon_0=121 +k=0.99995 +x_0=500000 +y_0=0 +ellps=clrk66 \"\n        + \"+towgs84=-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06 +units=m +no_defs\");\nProjection projection4 = ProjectionFactory.getProjectionByDefinition(\n    \"PROJCS[\\\"Lambert_Conformal_Conic (1SP)\\\",\"\n        + \"GEODCRS[\\\"GCS_North_American_1983\\\",\"\n        + \"DATUM[\\\"North_American_Datum_1983\\\",\"\n        + \"SPHEROID[\\\"GRS_1980\\\",6371000,0]],\"\n        + \"PRIMEM[\\\"Greenwich\\\",0],\"\n        + \"UNIT[\\\"Degree\\\",0.017453292519943295]],\"\n        + \"PROJECTION[\\\"Lambert_Conformal_Conic_1SP\\\"],\"\n        + \"PARAMETER[\\\"latitude_of_origin\\\",25],\"\n        + \"PARAMETER[\\\"central_meridian\\\",-95],\"\n        + \"PARAMETER[\\\"scale_factor\\\",1],\"\n        + \"PARAMETER[\\\"false_easting\\\",0],\"\n        + \"PARAMETER[\\\"false_northing\\\",0],\"\n        + \"PARAMETER[\\\"standard_parallel_1\\\",25],\"\n        + \"UNIT[\\\"Meter\\\",1],AUTHORITY[\\\"EPSG\\\",\\\"9801\\\"]]\");\n\nProjectionTransform transform = projection1\n    .getTransformation(projection2);\nProjectionTransform inverseTransform = transform\n    .getInverseTransformation();\n\nProjCoordinate transformed = transform.transform(coordinate);\nProjCoordinate inverseTransformed = inverseTransform\n    .transform(transformed);\n\n```\n\n### Installation ###\n\nPull from the [Maven Central Repository](http://search.maven.org/#artifactdetails|mil.nga|proj|1.1.4|jar) (JAR, POM, Source, Javadoc)\n\n```xml\n\n\u003cdependency\u003e\n    \u003cgroupId\u003emil.nga\u003c/groupId\u003e\n    \u003cartifactId\u003eproj\u003c/artifactId\u003e\n    \u003cversion\u003e1.1.4\u003c/version\u003e\n\u003c/dependency\u003e\n\n```\n\n### Build ###\n\n[![Build \u0026 Test](https://github.com/ngageoint/projections-java/workflows/Build%20\u0026%20Test/badge.svg)](https://github.com/ngageoint/projections-java/actions/workflows/build-test.yml)\n\nBuild this repository using Eclipse and/or Maven:\n\n    mvn clean install\n\n### Standalone Projections ###\n\nThe jar can be built as standalone (or combined with required dependency jars) to run utilities from the command line.\n\nTo build the jar into a standalone jar that includes all dependencies:\n\n    mvn clean install -Pstandalone\n\nPerforms coordinate transformations from a source projection to a target projection. Download [project.zip](https://github.com/ngageoint/projections-java/releases/latest/download/project.zip) and follow the [instructions](script/project/).\n\nOr run against the jar:\n\n    java -jar proj-*standalone.jar [from_projection to_projection [coordinates]]\n\n### Remote Dependencies ###\n\n* [Proj4J](https://github.com/locationtech/proj4j) (Apache License, Version 2.0) - Projection Library\n* [Coordinate Reference Systems](https://github.com/ngageoint/coordinate-reference-systems-java) (The MIT License (MIT)) - Coordinate Reference Systems Library\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngageoint%2Fprojections-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngageoint%2Fprojections-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngageoint%2Fprojections-java/lists"}