"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/plugin/mongodb/src/test/java/org/geotools/data/mongodb/geojson/GeoJSONMongoTestSetup.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.

GeoJSONMongoTestSetup.java  (geotools-24.0-project):GeoJSONMongoTestSetup.java  (geotools-24.1-project)
skipping to change at line 122 skipping to change at line 122
.add("dateProperty", getDateProperty(2)) .add("dateProperty", getDateProperty(2))
.add("stringProperty2", "b") .add("stringProperty2", "b")
.pop() .pop()
.get()); .get());
ft1.createIndex(new BasicDBObject("geometry", "2dsphere")); ft1.createIndex(new BasicDBObject("geometry", "2dsphere"));
ft1.createIndex(new BasicDBObject("properties.listProperty.value", 1)); ft1.createIndex(new BasicDBObject("properties.listProperty.value", 1));
DBCollection ft2 = db.getCollection("ft2"); DBCollection ft2 = db.getCollection("ft2");
ft2.drop(); ft2.drop();
DBCollection ft3 = db.getCollection("ft3");
ft3.drop();
ft3.save(
BasicDBObjectBuilder.start()
.add("_id", new ObjectId("58e5889ce4b02461ad5af090"))
.add("id", "ft3.0")
.push("geometry")
.add("type", "Point")
.add("coordinates", list(0, 1))
.pop()
.push("properties")
.add("intProperty", 0)
.add("doubleProperty", 0.0)
.add("stringProperty", "zero")
.add("optionalProperty3", "optional")
.add(NULLABLE_ATTRIBUTE, "A value")
.add(
"listProperty",
list(
new BasicDBObject("value", 0.1),
new BasicDBObject("value", 0.2)))
.add("dateProperty", getDateProperty(0))
.add("stringProperty2", "a")
.pop()
.get());
ft3.save(
BasicDBObjectBuilder.start()
.add("_id", new ObjectId("58e5889ce4b02461ad5af091"))
.add("id", "ft3.1")
.push("geometry")
.add("type", "Point")
.add("coordinates", list(1, 2))
.pop()
.push("properties")
.add("intProperty", 1)
.add("doubleProperty", 1.1)
.add("optionalProperty2", "optional")
.add("stringProperty", "one")
.add(NULLABLE_ATTRIBUTE, null)
.add(
"listProperty",
list(
new BasicDBObject("value", 1.1),
new BasicDBObject("value", 1.2)))
.add("dateProperty", getDateProperty(1))
.add("stringProperty2", "b")
.pop()
.get());
ft3.save(
BasicDBObjectBuilder.start()
.add("_id", new ObjectId("58e5889ce4b02461ad5af029"))
.add("id", "ft3.2")
.push("geometry")
.add("type", "Point")
.add("coordinates", list(2, 3))
.pop()
.push("properties")
.add("intProperty", 2)
.add("doubleProperty", 2.2)
.add("stringProperty", "two")
.add("optionalProperty", "optional")
.add(
"listProperty",
list(
new BasicDBObject("value", 2.1),
new BasicDBObject("value", 2.2),
new BasicDBObject("insideArrayValue", 7.
7)))
.add("dateProperty", getDateProperty(2))
.add("stringProperty2", "b")
.pop()
.get());
ft3.createIndex(new BasicDBObject("geometry", "2dsphere"));
ft3.createIndex(new BasicDBObject("properties.listProperty.value", 1));
} }
@Override @Override
protected Date getDateProperty(int featureIdx) { protected Date getDateProperty(int featureIdx) {
if (featureIdx < dateValues.length) { if (featureIdx < dateValues.length) {
return dateValues[featureIdx]; return dateValues[featureIdx];
} }
return null; return null;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 77 lines changed or added

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