Revision 43153 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/layers/DefaultLayerInformationBuilder.java
DefaultLayerInformationBuilder.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.ArrayList; |
4 | 4 |
import java.util.List; |
5 |
|
|
5 | 6 |
import org.apache.commons.lang3.StringEscapeUtils; |
6 | 7 |
import org.apache.commons.lang3.StringUtils; |
7 | 8 |
import org.cresques.cts.ICRSFactory; |
8 | 9 |
import org.cresques.cts.IProjection; |
10 |
|
|
9 | 11 |
import org.gvsig.fmap.geom.Geometry; |
12 |
import org.gvsig.fmap.geom.Geometry.DIMENSIONS; |
|
10 | 13 |
import org.gvsig.fmap.geom.primitive.Envelope; |
11 | 14 |
import org.gvsig.tools.ToolsLocator; |
12 | 15 |
|
... | ... | |
274 | 277 |
//FIXME: |
275 | 278 |
|
276 | 279 |
PropertyElement p1 = new DefaultPropertyElement(); |
277 |
p1.labelkey("ul");
|
|
278 |
p1.value("%+f, %+f", value.getUpperCorner().getX(), value.getUpperCorner().getY());
|
|
280 |
p1.labelkey("_upper_left_corner");
|
|
281 |
p1.value("%+f, %+f", value.getMinimum(DIMENSIONS.X), value.getMaximum(DIMENSIONS.Y));
|
|
279 | 282 |
p1.monospace(); |
280 | 283 |
|
281 | 284 |
PropertyElement p2 = new DefaultPropertyElement(); |
282 |
p2.labelkey("lr");
|
|
283 |
p2.value("%+f, %+f", value.getLowerCorner().getX(), value.getLowerCorner().getY());
|
|
285 |
p2.labelkey("_upper_right_corner");
|
|
286 |
p2.value("%+f, %+f", value.getMaximum(DIMENSIONS.X), value.getMaximum(DIMENSIONS.Y));
|
|
284 | 287 |
p2.monospace(); |
285 | 288 |
|
286 | 289 |
PropertyElement p3 = new DefaultPropertyElement(); |
287 |
p3.labelkey("ur");
|
|
288 |
p3.value("%+f, %+f", value.getUpperCorner().getX(), value.getLowerCorner().getY());
|
|
290 |
p3.labelkey("_lower_right_corner");
|
|
291 |
p3.value("%+f, %+f", value.getMaximum(DIMENSIONS.X), value.getMinimum(DIMENSIONS.Y));
|
|
289 | 292 |
p3.monospace(); |
290 | 293 |
|
291 | 294 |
PropertyElement p4 = new DefaultPropertyElement(); |
292 |
p4.labelkey("ll");
|
|
293 |
p4.value("%+f, %+f", value.getUpperCorner().getX(), value.getLowerCorner().getY());
|
|
295 |
p4.labelkey("_lower_left_corner");
|
|
296 |
p4.value("%+f, %+f", value.getMinimum(DIMENSIONS.X), value.getMinimum(DIMENSIONS.Y));
|
|
294 | 297 |
p4.monospace(); |
295 | 298 |
|
296 | 299 |
return p1.build() + p2.build() + p3.build() + p4.build(); |
Also available in: Unified diff