Revision 4269 org.gvsig.raster.wcs/trunk/org.gvsig.raster.wcs/org.gvsig.raster.wcs.app.wcsclient/src/main/java/org/gvsig/raster/wcs/app/wcsclient/layer/FLyrWCS.java
FLyrWCS.java | ||
---|---|---|
352 | 352 |
//Rectangle2D.Double vpExtent = this.getRectable2DFromEnvelope(vpEnv); |
353 | 353 |
//Rectangle2D.intersect(vpExtent, bBox, extent); |
354 | 354 |
|
355 |
Envelope vpAdjustedEnvelope = vp.getAdjustedEnvelope(); |
|
355 | 356 |
Extent ex = rManager.getDataStructFactory().createExtent( |
356 |
vp.getAdjustedEnvelope().getMinimum(0),
|
|
357 |
vp.getAdjustedEnvelope().getMaximum(1),
|
|
358 |
vp.getAdjustedEnvelope().getMaximum(0),
|
|
359 |
vp.getAdjustedEnvelope().getMinimum(1));
|
|
357 |
vpAdjustedEnvelope.getMinimum(0),
|
|
358 |
vpAdjustedEnvelope.getMaximum(1),
|
|
359 |
vpAdjustedEnvelope.getMaximum(0),
|
|
360 |
vpAdjustedEnvelope.getMinimum(1));
|
|
360 | 361 |
ViewPortData vpData = rManager.getDataStructFactory().createViewPortData(vp.getProjection(), ex, sz ); |
361 | 362 |
vpData.setMat(vp.getAffineTransform()); |
362 | 363 |
vpData.setDPI((int)vp.getDPI()); |
... | ... | |
743 | 744 |
this.setDataStore(dStore); |
744 | 745 |
|
745 | 746 |
if(params instanceof WCSDataParameters) { |
746 |
this.setName((String)((WCSDataParameters)params).getURI());
|
|
747 |
this.setName(((WCSDataParameters)params).getURI().getPath());
|
|
747 | 748 |
} |
748 | 749 |
|
749 | 750 |
if(params instanceof TileDataParameters) { |
750 | 751 |
DataParameters p = ((TileDataParameters) params).getDataParameters(); |
751 | 752 |
if(p instanceof WCSDataParameters) { |
752 |
this.setName((String)((WCSDataParameters) p).getURI());
|
|
753 |
this.setName(((WCSDataParameters)params).getURI().getPath());
|
|
753 | 754 |
} |
754 | 755 |
} |
755 | 756 |
} catch (ValidateDataParametersException e) { |
Also available in: Unified diff