C# 클래스 Azavea.Open.Reprojection.Reprojector

Static helper class for reprojecting points between various projection systems.
파일 보기 프로젝트 열기: azavea/net-omgeo-reprojection

공개 프로퍼티들

프로퍼티 타입 설명
NZGD2000 ICoordinateSystem
PAStatePlane ICoordinateSystem
WGS84 ICoordinateSystem
WebMercator ICoordinateSystem

공개 메소드들

메소드 설명
GetCoordinateSystemBySRID ( int srid ) : ICoordinateSystem

Return a coordinate system object given a SRID.

Reproject ( ICoordinateSystem from, ICoordinateSystem to, IPoint point ) : IPoint

Given a couple coordinate systems, projects a point from one to another.

Reproject ( ICoordinateSystem from, ICoordinateSystem to, double xLon, double yLat ) : Point

Given a pair of coordinate systems, projects a point from one to another.

ReprojectPAStatePlaneToWGS84 ( double x, double y ) : Point

Convert X / Y coordinates in PA State Plane South projection (feet) to lat/long decimal degree coordinates (WGS84 datum).

ReprojectWGS84ToPAStatePlane ( double lon, double lat ) : Point

Convert lat/long decimal degree coordinates (WGS84 datum) to X / Y coordinates in PA State Plane South projection (feet).

ReprojectWGS84ToWebMercator ( double lon, double lat ) : Point

Convert lat/long decimal degree coordinates (WGS84 datum) to X / Y coordinates in Web Mercator projection (meters). Note that this is a manual re-projection and does not use PROJ.Net.

ReprojectWebMercatorToWGS84 ( double x, double y ) : Point

Convert X / Y coordinates in Web Mercator projection (meters) to lat/long decimal degree coordinates (WGS84 datum). Note that this is a manual re-projection and does not use PROJ.Net.

비공개 메소드들

메소드 설명
ConvertLatitudeToMercatorY ( double latitudeDegrees ) : double
ConvertLongitudeToMercatorX ( double longitudeDegrees ) : double
ConvertMercatorXToLongitude ( double x ) : double
ConvertMercatorYToLatitude ( double y ) : double

메소드 상세

GetCoordinateSystemBySRID() 공개 정적인 메소드

Return a coordinate system object given a SRID.
public static GetCoordinateSystemBySRID ( int srid ) : ICoordinateSystem
srid int Spatial Reference ID of the desired coordinate system
리턴 ICoordinateSystem

Reproject() 공개 정적인 메소드

Given a couple coordinate systems, projects a point from one to another.
public static Reproject ( ICoordinateSystem from, ICoordinateSystem to, IPoint point ) : IPoint
from ICoordinateSystem The coordinate system which the point is in originally
to ICoordinateSystem The coordinate system into which the point will be reprojected
point IPoint The point to be reprojected
리턴 IPoint

Reproject() 공개 정적인 메소드

Given a pair of coordinate systems, projects a point from one to another.
public static Reproject ( ICoordinateSystem from, ICoordinateSystem to, double xLon, double yLat ) : Point
from ICoordinateSystem The coordinate system from which to convert the point.
to ICoordinateSystem
xLon double The X or Longitude coordinate of the point to be reprojected
yLat double The Y or Latitude coordinate of the point to be reprojected
리턴 Point

ReprojectPAStatePlaneToWGS84() 공개 정적인 메소드

Convert X / Y coordinates in PA State Plane South projection (feet) to lat/long decimal degree coordinates (WGS84 datum).
public static ReprojectPAStatePlaneToWGS84 ( double x, double y ) : Point
x double x value in feet for PA State Plane South projection
y double y value in feet for PA State Plane South projection
리턴 Point

ReprojectWGS84ToPAStatePlane() 공개 정적인 메소드

Convert lat/long decimal degree coordinates (WGS84 datum) to X / Y coordinates in PA State Plane South projection (feet).
public static ReprojectWGS84ToPAStatePlane ( double lon, double lat ) : Point
lon double longitude in decimal degrees based on WGS84 horizontal datum
lat double latitude in decimal degrees based on WGS84 horizontal datum
리턴 Point

ReprojectWGS84ToWebMercator() 공개 정적인 메소드

Convert lat/long decimal degree coordinates (WGS84 datum) to X / Y coordinates in Web Mercator projection (meters). Note that this is a manual re-projection and does not use PROJ.Net.
public static ReprojectWGS84ToWebMercator ( double lon, double lat ) : Point
lon double longitude in decimal degrees based on WGS84 horizontal datum
lat double latitude in decimal degrees based on WGS84 horizontal datum
리턴 Point

ReprojectWebMercatorToWGS84() 공개 정적인 메소드

Convert X / Y coordinates in Web Mercator projection (meters) to lat/long decimal degree coordinates (WGS84 datum). Note that this is a manual re-projection and does not use PROJ.Net.
public static ReprojectWebMercatorToWGS84 ( double x, double y ) : Point
x double x value in meters for Spherical Mercator projection
y double y value in meters for Spherical Mercator projection
리턴 Point

프로퍼티 상세

NZGD2000 공개적으로 정적으로 프로퍼티

Coordinate system for New Zealand?.
public static ICoordinateSystem NZGD2000
리턴 ICoordinateSystem

PAStatePlane 공개적으로 정적으로 프로퍼티

Coordinate system for Pennsylvania State Plane South.
public static ICoordinateSystem PAStatePlane
리턴 ICoordinateSystem

WGS84 공개적으로 정적으로 프로퍼티

Coordinate system for WGS84 (most common lat/lon projection).
public static ICoordinateSystem WGS84
리턴 ICoordinateSystem

WebMercator 공개적으로 정적으로 프로퍼티

Coordinate system for Web Mercator. This is not well defined, and needs a hack in the reprojector, but we still want to have the CoordinateSystem around nominally, so it can be used in the standard way.
public static ICoordinateSystem WebMercator
리턴 ICoordinateSystem