/** * @param id * @param lon0 * @param lat0 * @return the corresponding auto generated crs */ public static ICRS getAutoCRS( int id, double lon0, double lat0 ) { switch ( id ) { case 42001: { return getAuto42001( lon0, lat0 ); } case 42002: { return getAuto42002( lon0, lat0 ); } case 42003: { return getAuto42003( lon0, lat0 ); } case 42004: { return getAuto42004( lon0, lat0 ); } case 42005: { return getAuto42005( lon0 ); } default: break; } return null; }
public LayerQuery( Envelope envelope, int width, int height, int x, int y, int featureCount, OperatorFilter filter, StyleRef style, Map<String, String> parameters, Map<String, List<?>> dimensions, MapOptionsMaps options, Envelope queryBox, int layerRadius ) { this.envelope = envelope; this.width = width; this.height = height; this.x = x; this.y = y; this.featureCount = featureCount; this.filter = filter; this.style = style; this.parameters = parameters; this.dimensions = dimensions; this.options = options; this.queryBox = queryBox; this.layerRadius = layerRadius; this.scale = RenderHelper.calcScaleWMS130( width, height, envelope, envelope.getCoordinateSystem(), DEFAULT_PIXEL_SIZE ); this.resolution = Utils.calcResolution( envelope, width, height ); }
/** * @param envelope * @param width * @param height * @param style * @param filters * @param parameters * @param dimensions * @param pixelSize * must be in meter, not mm * @param options * @param layerRadius */ public LayerQuery( Envelope envelope, int width, int height, StyleRef style, OperatorFilter filter, Map<String, String> parameters, Map<String, List<?>> dimensions, double pixelSize, MapOptionsMaps options, Envelope queryBox ) { this.envelope = envelope; this.width = width; this.height = height; this.style = style; this.filter = filter; this.parameters = parameters; this.dimensions = dimensions; this.options = options; this.queryBox = queryBox; this.scale = RenderHelper.calcScaleWMS130( width, height, envelope, envelope.getCoordinateSystem(), pixelSize ); this.resolution = Utils.calcResolution( envelope, width, height ); }