Hi Robert,

We are currently trying to resurrect the current schema.xml behavior for 
1.7.3. However for previous versions you can work around the problem by 
changing schema.xml to schema.xsd. But, the syntax for the two is 
somewhat different. schema.xml is just the complex type definition, 
whereas schema.xsd is an entire schema.

I suggest you do the following:

1) do a DFT against your feature type, and save the result to disk
2) manually change GeometryPropertyType to PolygonPropertyType
3) copy the file to schema.xsd inside of the featureType directory for 
your feature type (parallel to schema.xml)

And that should get across to openlayers the desired information. Try 
that and let me know if that works.

-Justin

Roberdt wrote:
> Hi there,
> 
> I use Geoserver (with an Oracle datastore) to highlight features in an
> OpenLayers app . The geometry type is determined via a DescribeFeatureType
> request, but the request always returns "gml:GeometryPropertyType" for the
> geometry attribute, which effectively highlights polygons as if they were
> points. 
> 
> My guess was that a custom schema.xml would help solve this problem, but the
> functionality is broken and scheduled to be fixed in 1.7.3. So for now I
> installed a 1.6.5 Geoserver,  which picks up my schema.xml but always sets
> the more generic "gml:GeometryPropertyType" instead of
> "gml:PolygonPropertyType".
> 
> Comments on issue  this http://jira.codehaus.org/browse/GEOS-1124
> http://jira.codehaus.org/browse/GEOS-1124  suggest that this is not a bug
> because Oracle allows storing multiple geometry types in one column. 
> 
> Is there a way to specify the specific type of my geometry attribute in
> Geoserver when using an Oracle datastore? More or less like the
> '"gml_<column_name>_type" "polygon"' in the METADATA section of a MapServer
> mapfile.
> 
> Thanks for helping me out!
> 
> Regards,
> Robert van Drunen


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to