Revision 36418 branches/dal_time_support/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/ReprojectDefaultGeometry.java
ReprojectDefaultGeometry.java | ||
---|---|---|
64 | 64 |
private FeatureType orgDefFeatureType; |
65 | 65 |
private List orgFeatureTypes; |
66 | 66 |
|
67 |
public ReprojectDefaultGeometry() {
|
|
67 |
public ReprojectDefaultGeometry(){ |
|
68 | 68 |
|
69 | 69 |
} |
70 | 70 |
|
71 |
// public ReprojectDefaultGeometry(IProjection targetSRS){ |
|
72 |
// super("ReprojectDefaultGeometry", "ReprojectDefaultGeometry"); |
|
73 |
// this.targetSRS = targetSRS; |
|
74 |
// this.ct = null; |
|
75 |
// } |
|
76 |
// |
|
77 |
// public ReprojectDefaultGeometry(ICoordTrans ct){ |
|
78 |
// super("ReprojectDefaultGeometry", "ReprojectDefaultGeometry"); |
|
79 |
// this.ct = ct; |
|
80 |
// } |
|
81 |
|
|
71 | 82 |
public IProjection getTargetSRS() { |
72 | 83 |
return targetSRS; |
73 | 84 |
} |
... | ... | |
75 | 86 |
public void setTargetSRS(IProjection targetSRS) { |
76 | 87 |
this.targetSRS = targetSRS; |
77 | 88 |
} |
89 |
|
|
90 |
// public void setCoordTrans(ICoordTrans ct){ |
|
91 |
// this.ct = ct; |
|
92 |
// if ( getFeatureStore() != null ){ |
|
93 |
// setFeatureStore(getFeatureStore()); |
|
94 |
// } |
|
95 |
// } |
|
78 | 96 |
|
79 | 97 |
/* (non-Javadoc) |
80 | 98 |
* @see org.gvsig.fmap.dal.feature.FeatureStoreTransform#applyTransform(org.gvsig.fmap.dal.feature.Feature, org.gvsig.fmap.dal.feature.EditableFeature) |
... | ... | |
107 | 125 |
EditableFeatureAttributeDescriptor attr = (EditableFeatureAttributeDescriptor) defFType |
108 | 126 |
.getAttributeDescriptor(defFType |
109 | 127 |
.getDefaultGeometryAttributeName()); |
110 |
sourceSRS = attr.getSRS(); |
|
111 |
ct = sourceSRS.getCT(targetSRS); |
|
128 |
// if (ct!=null){ |
|
129 |
// targetSRS = ct.getPDest(); |
|
130 |
// sourceSRS = ct.getPOrig(); |
|
131 |
// } else { |
|
132 |
sourceSRS = attr.getSRS(); |
|
133 |
ct = sourceSRS.getCT(targetSRS); |
|
134 |
// } |
|
112 | 135 |
attr.setSRS(this.targetSRS); |
113 | 136 |
FeatureType defaultType = defFType.getNotEditableCopy(); |
114 | 137 |
List types = new ArrayList(); |
Also available in: Unified diff