Automatic schema generation fails

Description

Leaving out the schema.xml file should make GeoServer generate a schema automatically for the featureType. But when executing the DescribeFeatureRequest, an error is thrown. It seems to be that the geometry is not supported.

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:29 PM

CodeHaus Comment From: brentjens - Time: Fri, 9 Jan 2004 07:47:11 -0600
---------------------
<p>Here are the first few lines of the error:</p>

<p> &lt;ServiceException&gt;javax.xml.transform.TransformerException: Encoding Error at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:120) at org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:102) at org.vfny.geoserver.responses.wfs.DescribeResponse.generateFromSchema(DescribeResponse.java:351) at org.vfny.geoserver.responses.wfs.DescribeResponse.generateSpecifiedTypes(DescribeResponse.java:308) at org.vfny.geoserver.responses.wfs.DescribeResponse.generateTypes(DescribeResponse.java:180) at

...</p>

<p>And in the stdout.log:

...

530406 <span class="error">&#91;FINE&#93;</span> org.vfny.geoserver.servlets.AbstractService - executing request

530406 <span class="error">&#91;FINER&#93;</span> org.vfny.geoserver.responses.wfs.DescribeResponse - processing describe requestDescribeFeatureType Request [outputFormat: XMLSCHEMA <span class="error">&#91;feature types: DRAFT_BOUNDARY&#93;</span>

530422 <span class="error">&#91;FINER&#93;</span> org.geotools.gml.producer.FeatureTypeTransformer$FeatureTypeTranslator - com.vividsolutions.jts.geom.Geometry

java.lang.RuntimeException: Unsupported type: com.vividsolutions.jts.geom.Geometry

...</p>

<p>Please send an e-mail if more details are needed.</p>

codehaus
April 10, 2015, 4:29 PM

CodeHaus Comment From: seangeo - Time: Fri, 9 Jan 2004 07:54:39 -0600
---------------------
<p>The latest Oracle Data Store stuff just uses Geometry for the geometry column attribute type. This is less precise but it is more accurate when it comes to what SDO_GEOMETRY means since an oracle geometry column has no geometry type restriction.</p>

<p>So it looks like the schema generation code needs to be updated to handle gml:Geometry aswell.</p>

codehaus
April 10, 2015, 4:29 PM

CodeHaus Comment From: cholmes - Time: Fri, 9 Jan 2004 10:36:05 -0600
---------------------
<p>I just committed the fix to geotools and emailed Thijs. Once he reports back if it works I'll close this issue.</p>

codehaus
April 10, 2015, 4:29 PM

CodeHaus Comment From: aaime - Time: Thu, 29 Mar 2007 02:05:59 -0500
---------------------
<p>These issue has been in resolved state for at least one month (quite a bit, a lot more than one month). Batch transitioning them to closed state</p>

Fixed

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

None

Affects versions

Components

Priority

Low