Hello everybody,

I am trying to determine if mongodb is a good storage mechanism for our 
existing geoserver instance.  Unfortunately, I run into trouble with the 
geotools mongodb plugin.  The list with troubles I have for now, major to minor:

* I can't get Filtering to work. e.g.  I add cql_filter=datatype%3D'C' which 
adds a filter on an attribute datatype='C'.   Depending on the attribute, I get 
the whole mongodb collection or nothing.  I debugged it to a function 
splitFilter that basically just throws my filter away.  Issue GEOT-5911 has the 
same conclusions as I have and a partial fix, but it seems dead.

* After reading 
https://github.com/geotools/geotools/blob/main/modules/plugin/mongodb/src/main/java/org/geotools/data/mongodb/AbstractFilterToMongo.java
 , I have the impression filtering on dates/times is either not implemented 
(throw new UnsupportedOperationException() ) or done by geoserver instead of 
mongo (costing me the mongodb indexes).  Can't test this because of the issue 
above so I might be wrong here.

* We have a few geoserver layers that basically act as API/datacontainers, 
without a geospatial index.  Users can use their existing tooling and geoserver 
to request some non-geographic data.  The mongodb plugin seems to require a geo 
index and makes this use case impossible unless I add a dummy index.

* The mongodb password needs to be hardcoded in the URL.  This means geoserver 
can't hide/encrypt it.  It is readable for everyone who can see the datastore.

* MongoDB is schemaless, but it seems geoserver needs 2 schema definitions: 1 
defining the attributes for layers, a 2nd specific for mongodb cached on disk 
and invisible if you don' know about its existence.  If an attribute is added 
to mongodb, we'll need to delete/adapt the second, and restart the geoserver.

* If something is misconfigured, I rarely get a useful error message.  I've got 
some Nullpointer exceptions and must read the code to find out what went wrong.

Now I am a junior user in this technology, so I hope someone on this list will 
tell me that I'm holding it wrong and point me to correct usage.

Thanks in advance,

Hans
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to