Revision 2613 org.gvsig.raster.wmts/trunk/org.gvsig.raster.wmts/org.gvsig.raster.wmts.ogc/org.gvsig.raster.wmts.ogc.impl/src/main/java/org/gvsig/raster/wmts/ogc/impl/struct/WMTSTileMatrixSetImpl.java
WMTSTileMatrixSetImpl.java | ||
---|---|---|
40 | 40 |
private String supportedCRS = null; |
41 | 41 |
private String wellKnownScaleSet = null; |
42 | 42 |
protected List<WMTSTileMatrix> tileMatrix = null; |
43 |
protected boolean forceLongitudeFirstAxisOrder = false;
|
|
43 |
protected boolean forceChangeAxisOrder = false;
|
|
44 | 44 |
|
45 |
/**
|
|
46 |
* Sets longitude first in the axis order read from the capabilities file
|
|
45 |
/**
|
|
46 |
* Force to change the axis order read from the capabilities
|
|
47 | 47 |
* @param force |
48 | 48 |
*/ |
49 |
public void setForceLongitudeFirstAxisOrder(boolean force) {
|
|
50 |
this.forceLongitudeFirstAxisOrder = force;
|
|
49 |
public void setForceChangeAxisOrder(boolean force) {
|
|
50 |
this.forceChangeAxisOrder = force;
|
|
51 | 51 |
} |
52 | 52 |
|
53 | 53 |
/** |
... | ... | |
85 | 85 |
} |
86 | 86 |
|
87 | 87 |
public String getSupportedCRS() { |
88 |
if(supportedCRS.compareTo("CRS:84") == 0) |
|
89 |
supportedCRS = "EPSG:4326"; |
|
88 |
//if(supportedCRS.compareTo("CRS:84") == 0) |
|
89 |
//supportedCRS = "EPSG:4326"; |
|
90 |
if(supportedCRS.contains("900913")) |
|
91 |
supportedCRS = "EPSG:3857"; |
|
90 | 92 |
return supportedCRS; |
91 | 93 |
} |
92 | 94 |
|
93 | 95 |
public void setSupportedCRS(String supportedCRS) { |
94 |
if(supportedCRS.compareTo("CRS:84") == 0) |
|
95 |
supportedCRS = "EPSG:4326"; |
|
96 |
//if(supportedCRS.compareTo("CRS:84") == 0) |
|
97 |
//supportedCRS = "EPSG:4326"; |
|
98 |
if(supportedCRS.contains("900913")) |
|
99 |
supportedCRS = "EPSG:3857"; |
|
96 | 100 |
this.supportedCRS = supportedCRS; |
97 | 101 |
} |
98 | 102 |
|
Also available in: Unified diff