com.maryanovsky.map.client.opengis.wms
Class Epsg4326Projection
java.lang.Object
com.maryanovsky.map.client.projections.AbstractProjection
com.maryanovsky.map.client.projections.ScaleProjection
com.maryanovsky.map.client.opengis.wms.Epsg4326Projection
- All Implemented Interfaces:
- WmsProjection, Projection
public class Epsg4326Projection
- extends ScaleProjection
- implements WmsProjection
The projection for the EPSG:4326 SRS.
- Author:
- Maryanovsky Alexander
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static Epsg4326Projection getInstance(List<Double> resolutions,
boolean longitudeWraps)
- Returns an
Epsg4326Projection
with the specified list of
resolutions and longitude wrapping strategy.
- Parameters:
resolutions
- The list of resolutions (map units per pixel) for each
zoom. The first value corresponds to zoom 0 and so on.longitudeWraps
- Whether the projection will cause the map to wrap
around the X (longitude) axis.
fromPixelToNative
public DoublePointView fromPixelToNative(int x,
int y,
int zoom)
- Converts the specified pixel coordinates to the "native" coordinates of
the projection. Unlike
Projection.fromPixelToLatLng(com.maryanovsky.gwtutils.client.geom.PointView, int)
this method should return null
if the specified location is
outside the map.
- Specified by:
fromPixelToNative
in interface WmsProjection