[Geoserver-users] App-schema data not populating

Hello All,

I want to try and figure out why app-schema is not displaying content, when viewing the ‘geoserver.log’ I see it gets content but does not display in the final WFS output.

Is there a way to see more of why app-schema/geoserver is not displaying the content than silently discarding the results?

Thanks

Hello,

To expand on this slightly,

In my xsd I have:

And in my features app-schema file is:

company:location pe_location

Now the database shows the type=polygon and SRID =4326

The featuretype.xml file has the 4326 within it.

When I request the feature I receive a blank entry for ‘location’.

On the geoserver.log I see it populate the following info:

GeometryAttributeImpl:position<MultiGeometryPropertyType crs=GEOGCS[“GDA94”,

DATUM[“Geocentric Datum of Australia 1994”,
SPHEROID[“GRS 1980”, 6378137.0, 298.257222101, AUTHORITY[“EPSG”,“7019”]],
TOWGS84[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
AUTHORITY[“EPSG”,“6283”]],
PRIMEM[“Greenwich”, 0.0, AUTHORITY[“EPSG”,“8901”]],
UNIT[“degree”, 0.017453292519943295],
AXIS[“Geodetic latitude”, NORTH],
AXIS[“Geodetic longitude”, EAST],
AUTHORITY[“EPSG”,“4283”]]>=GEOMETRYCOLLECTION (POINT (-24.97124999999994 114.87125000000003))]

But it never shows in the final output.

I have a different app-schema which produces the same sort of output in the log but also displays it in the final XML.

Suggestions ?

···

On 24 October 2013 14:25, snuffy <snuffy22@anonymised.com> wrote:

Hello All,

I want to try and figure out why app-schema is not displaying content, when viewing the ‘geoserver.log’ I see it gets content but does not display in the final WFS output.

Is there a way to see more of why app-schema/geoserver is not displaying the content than silently discarding the results?

Thanks

Are you able to publish the geometry as simple features?
Maybe you're missing a spatial index for your geometry column?

Failing that.. judging by the log, it looks like app-schema managed to build
the geometry attribute, but it gets skipped during encoding. If you want to
debug it, here's a good place to start:
https://github.com/geotools/geotools/blob/master/modules/extension/xsd/xsd-gml2/src/main/java/org/geotools/gml2/bindings/GMLEncodingUtils.java

If you know your geometry type, you can put a breakpoint in getProperty() in
your corresponding geometry type, e.g. PolygonTypeBinding.java.

https://github.com/geotools/geotools/blob/master/modules/extension/xsd/xsd-gml3/src/main/java/org/geotools/gml3/bindings/PolygonTypeBinding.java.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/App-schema-data-not-populating-tp5085488p5086793.html
Sent from the GeoServer - User mailing list archive at Nabble.com.