"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/plugin/mongodb/src/main/java/org/geotools/data/mongodb/MongoFeature.java" between
geotools-24.0-project.zip and geotools-24.1-project.zip

About: GeoTools (The Open Source Java GIS Toolkit) is a Java code library which provides standards compliant methods for the manipulation of geospatial data.

MongoFeature.java  (geotools-24.0-project):MongoFeature.java  (geotools-24.1-project)
skipping to change at line 24 skipping to change at line 24
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
*/ */
package org.geotools.data.mongodb; package org.geotools.data.mongodb;
import com.mongodb.DBObject; import com.mongodb.DBObject;
import org.geotools.feature.simple.SimpleFeatureImpl; import org.geotools.feature.simple.SimpleFeatureImpl;
import org.geotools.filter.identity.FeatureIdImpl; import org.geotools.filter.identity.FeatureIdImpl;
import org.opengis.feature.simple.SimpleFeatureType; import org.opengis.feature.simple.SimpleFeatureType;
import org.opengis.referencing.crs.CoordinateReferenceSystem;
public class MongoFeature extends SimpleFeatureImpl { public class MongoFeature extends SimpleFeatureImpl {
private final DBObject mongoObject; private final DBObject mongoObject;
private final Object[] values; private final Object[] values;
private CoordinateReferenceSystem originalCRS;
public MongoFeature(Object[] values, SimpleFeatureType featureType, String i d) { public MongoFeature(Object[] values, SimpleFeatureType featureType, String i d) {
this(null, values, featureType, id); this(null, values, featureType, id);
} }
public MongoFeature( public MongoFeature(
DBObject mongoObject, Object[] values, SimpleFeatureType featureType , String id) { DBObject mongoObject, Object[] values, SimpleFeatureType featureType , String id) {
super(values, featureType, new FeatureIdImpl(id), false); super(values, featureType, new FeatureIdImpl(id), false);
this.values = values; this.values = values;
this.mongoObject = mongoObject; this.mongoObject = mongoObject;
this.originalCRS = this.featureType.getGeometryDescriptor().getCoordinat eReferenceSystem();
} }
public DBObject getMongoObject() { public DBObject getMongoObject() {
return mongoObject; return mongoObject;
} }
public Object[] getValues() { public Object[] getValues() {
return values; return values;
} }
public CoordinateReferenceSystem getOriginalCRS() {
return originalCRS;
}
} }
 End of changes. 4 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)