All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openstreetmap.osmosis.pgsimple.common.PointBuilder Maven / Gradle / Ivy

There is a newer version: 0.49.2
Show newest version
// This software is released into the Public Domain.  See copying.txt for details.
package org.openstreetmap.osmosis.pgsimple.common;

import org.postgis.Point;


/**
 * Builds PostGIS Point objects based on a set of coordinates.
 * 
 * @author Brett Henderson
 */
public class PointBuilder {
	/**
	 * Creates a PostGIS Point object corresponding to the provided coordinates.
	 * 
	 * @param latitude
	 *            The latitude measured in degrees.
	 * @param longitude
	 *            The longitude measured in degrees.
	 * @return The Point object.
	 */
	public Point createPoint(double latitude, double longitude) {
		Point result;
		
		result = new Point(longitude, latitude);
		result.srid = 4326;
		
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy