Revision 36418 branches/dal_time_support/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/FLyrVect.java
FLyrVect.java | ||
---|---|---|
142 | 142 |
|
143 | 143 |
private boolean isLabeled; |
144 | 144 |
protected ILabelingStrategy strategy; |
145 |
// private ReprojectDefaultGeometry reprojectTransform; |
|
145 | 146 |
|
146 | 147 |
public FLyrVect() { |
147 | 148 |
super(); |
... | ... | |
158 | 159 |
} |
159 | 160 |
return featureStore; |
160 | 161 |
} |
162 |
|
|
163 |
// public void setCoordTrans(ICoordTrans ct) { |
|
164 |
// super.setCoordTrans(ct); |
|
165 |
// if (ct != null){ |
|
166 |
// if (this.reprojectTransform == null){ |
|
167 |
// this.reprojectTransform = new ReprojectDefaultGeometry(ct); |
|
168 |
// } else { |
|
169 |
// this.reprojectTransform.setCoordTrans(ct); |
|
170 |
// } |
|
171 |
// try { |
|
172 |
// this.getFeatureStore().getTransforms().add(this.reprojectTransform); |
|
173 |
// } catch (DataException e) { |
|
174 |
// throw new RuntimeException(e); |
|
175 |
// } |
|
176 |
// } |
|
177 |
// } |
|
161 | 178 |
|
162 | 179 |
/** |
163 | 180 |
* If we use a persistent spatial index associated with this layer, and the |
... | ... | |
312 | 329 |
|
313 | 330 |
// Esto es para cuando se crea una capa nueva con el fullExtent de ancho |
314 | 331 |
// y alto 0. |
315 |
if (rAux == null || rAux.getMaximum(0) - rAux.getMinimum(0) == 0 |
|
332 |
if (rAux == null || rAux.isEmpty() || rAux.getMaximum(0) - rAux.getMinimum(0) == 0
|
|
316 | 333 |
&& rAux.getMaximum(1) - rAux.getMinimum(1) == 0) { |
317 | 334 |
try { |
318 | 335 |
rAux = |
319 |
geomManager.createEnvelope(0, 0, 100, 100, SUBTYPES.GEOM2D);
|
|
336 |
geomManager.createEnvelope(0, 0, 90, 90, SUBTYPES.GEOM2D);
|
|
320 | 337 |
} catch (CreateEnvelopeException e) { |
321 | 338 |
logger.error("Error creating the envelope", e); |
322 | 339 |
e.printStackTrace(); |
Also available in: Unified diff