Sorry, user-defined geometry types are not supported. GeoServer (and 
GeoTools) relies on compiled Java bindings for all geometry types, and 
as far as I know, cannot encode user-defined geometry types.

In OGC-speak, GeoServer simple feature are close to Simple Features 
Profile SF-0 and GeoServer complex features (app-schema) are close to 
SF-1. All OGC Simple Features Profile restrict geometry property types 
to a fixed predefined set. See:
OGC 06-049r1 "Geography Markup Language (GML) simple features
profile"
http://portal.opengeospatial.org/files/?artifact_id=15201
From: http://www.opengeospatial.org/standards/gml

It looks like you are trying to write an application schema that 
includes your data by *inheriting* from a geometry type. This is 
unsupported. Instead I recommend using *aggregation*, which is a 
different pattern. For example, in GeoSciML 3.0, a MappedFeature has a 
shape property for its spatial information, and other properties for 
non-spatial information:
http://schemas.geosciml.org/geosciml-core/3.0/geologicFeature.xsd

If you are creating a full-featured application schema, consider using 
Enterprise Architect, FullMoon and HollowWorld to build your information 
model and generate a GML application schema.

You also linked to a GML 2 specification. This is ancient and not 
supported by app-schema. Please use either GML 3.1.1 or GML 3.2.1.
http://docs.geoserver.org/latest/en/user/data/app-schema/supported-gml-versions.html

Kind regards,
Ben.

On 07/11/12 01:52, RudyWI wrote:
> Using instructions from parts 5.2.2 and 5.2.3 of GML Specification
> (http://tinyurl.com/ccxx5uz), I thought create XML Object expected
> (compliant GML) :
>
> <myNs:MyPoint srsName="...">
>      <gml:pos>...</gml:pos>
>      <myNs:myElem>...</myNs:myElem>
> </myNs:MyPoint>
>
> And then use app-schema to transform Geometry from database to my XML
> Object.
> But it does not works.
>
> Is there something that I have not understand ? or done correctly ?
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.n6.nabble.com/App-schema-How-to-map-Oracle-Geometry-into-GML-tp4984781p5014355.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> LogMeIn Central: Instant, anywhere, Remote PC access and management.
> Stay in control, update software, and manage PCs from one command center
> Diagnose problems and improve visibility into emerging IT issues
> Automate, monitor and manage. Do more in less time with Central
> http://p.sf.net/sfu/logmein12331_d2d
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

-- 
Ben Caradoc-Davies <[email protected]>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to