mmeany/proj4j


proj4j migration from svn. Project details can be found at http://trac.osgeo.org/proj4j/

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.mmeany:proj4j:0.1.0'
	}
	dependencies {
		implementation("com.github.mmeany:proj4j:0.1.0")
	}
	<dependency>
	    <groupId>com.github.mmeany</groupId>
	    <artifactId>proj4j</artifactId>
	    <version>0.1.0</version>
	</dependency>

                            
    libraryDependencies += "com.github.mmeany" % "proj4j" % "0.1.0"
        
        

                            
    :dependencies [[com.github.mmeany/proj4j "0.1.0"]]
        
        

Readme


Why I forked this ...

Proj4J does not appear to be in Maven Central. I wanted it to be accessible from Maven without having to go through hoops.

Now it can be using JitPack and using the following repository and dependency to your POM:

<repositories>
	<repository>
		<id>jitpack.io</id>
		<url>https://jitpack.io</url>
	</repository>
</repositories>

<dependency>
	<groupId>com.github.mmeany</groupId>
	<artifactId>proj4j</artifactId>
	<version>0.1.0</version>
</dependency>

Welcome to Proj4J

Proj4J is a Java library to transform point coordinates from one geographic coordinate system to another, including datum transformations.

The core of this library is a port of the PROJ.4 C library. The projection algorithms, concepts and coordinate system definitions are all taken directly from PROJ.4. These are wrapped in a Java class model which follows standard Java conventions and OO best practices.

Proj4J is a part of the MetaCRS group of projects, hosted by OSGeo.

Documentation

  • The PROJ.4 documentation is the best reference for details of the coordinate system specification language, projection algorithms and supported parameters.

  • the [Version History](doc/Proj4J Version History.html) lists the evolution of features of the library

  • the Javadoc describes the API

Mailing List

A mailing list is available for users and developers of Proj4J.

Development

Bug Tracking

License

Proj4J is licensed under the Apache License, Version 2.0.

Related Resources

History

The Proj4J codebase is based on a partial port of PROJ.4 carried out by JHLabs circa 2006. The JHLabs port provided a large number of the PROJ.4 projections, but did not support some PROJ.4 features such as datum transformation.