Skip to content

Commit

Permalink
add support for bbox
Browse files Browse the repository at this point in the history
  • Loading branch information
lievendoclo committed Dec 8, 2014
1 parent 74d77bc commit e2b51fe
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -31,6 +31,8 @@ public DBObject convert(GeoJsonObject source) {
DBObject dbObject = new BasicDBObject();
dbObject.put("type", source.getType());
dbObject.put("coordinates", source);
if(source.getBoundingBox() != null && source.getBoundingBox().length > 0)
dbObject.put("bbox", source.getBoundingBox());
return dbObject;
}
}
Expand Down

0 comments on commit e2b51fe

Please sign in to comment.