[Geoserver-users] OpenLayers Feature ordering question

Hi all,

A GeoMesa user ingested the NYC polygon landmark shapefile (which ships with GeoServer) and registered the layer in GeoServer. They reported that features appeared and disappeared from the OpenLayers preview as they dragged the layer around.

I reproduced the error today, and I think that the issue is that GeoMesa is not returning the features in Feature Id order. Since the features come back in different orders each time, they are painted to the tiles differently each time. The polygons are not exclusive, so the overlap causes the observed behavior.

Does anyone know if there is a flag or other option for ordering which may help? Perhaps something that we can use to insert a FeatureCollection which would help sort things into the order expected by GeoServer to paint the tiles correctly?

Thanks in advance,

Jim