1

We are currently checking up on GeoServer over MongoDB on our dev-environment. We are having some difficulties: we have a collection, containing different documents which answer to the same structure ("schema-like"). When querying a WFS service from GeoServer - some of the columns are missing. We discovered that if one of the "columns" on one of the documents contains null value - the whole column does not appear on the query response.

Is there some configuration we are missing on the GeoServer to return null values on WFS response?

Even if one instance of an attribute value equals null, the whole column is missing. I don't see how DescribeFeatureType may help as many Q&aA already suggested over the web.

1

I had a similar problem, when my data contained nulls geoserver did not load the data at all. I could only resolve this by replacing nulls with "null" (convert to String) before loading it to mongodb.

  • I did the same, but was afraid of problems when querying it. Decided to change the db to postgre for meanwhile till there be a more elegant solution – Barak Schoster Feb 16 '15 at 9:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.