[Geoserver-users] srsName missing with Geometries when using app-schema

Hello,

we are using geoserver version 2.7.1.1 and the related app-schema plugin.

We are also using the oracle plugin to retrieve the data.

When we map a geometry type (SDO_GEOMETRY) to a gml:geometry (e.g. gml:Point) the outcome is as expected in general but the attribute srsName is missing.

We made sure, that the information is available within the SDO_GEOMETRY type and –using a debugger- we made sure it is available within the app-schema plugin.

Nevertheless it is not output to the generated XML stream.

There seems to be a related bug (with fix) in the geotools (https://osgeo-org.atlassian.net/browse/GEOT-2639).

Does anybody know when this fix will have made its way into a geoserver release?

Best regards

Gerhard Duennebeil

GERHARD DÜNNEBEIL
Secure Information Management
Safety & Security Department

AIT Austrian Institute of Technology GmbH
Donau-City-Straße 1 | 1220 Vienna | Austria
T +43(0) 50550-3173 | M +43(0) 664 2351747 | F +43(0) 50550-4150
gerhard.duennebeil@anonymised.com | http://www.ait.ac.at

FN: 115980 i HG Wien | UID: ATU14703506
http://www.ait.ac.at/Email-Disclaimer

Hello,

we are using geoserver version 2.7.1.1 and the related app-schema plugin.

We are also using the oracle plugin to retrieve the data.

When we map a geometry type (SDO_GEOMETRY) to a gml:geometry (e.g. gml:Point) the outcome is as expected in general but the attribute srsName is missing.

We made sure, that the information is available within the SDO_GEOMETRY type and –using a debugger- we made sure it is available within the app-schema plugin.

Nevertheless it is not output to the generated XML stream.

There seems to be a related bug (with fix) in the geotools (https://osgeo-org.atlassian.net/browse/GEOT-2639).

Does anybody know when this fix will have made its way into a geoserver release?

Best regards

Gerhard Duennebeil

> GERHARD DÜNNEBEIL

Secure Information Management
Safety & Security Department

> AIT Austrian Institute of Technology GmbH

Donau-City-Straße 1 | 1220 Vienna | Austria
T +43(0) 50550-3173 | M +43(0) 664 2351747 | F +43(0) 50550-4150
> gerhard.duennebeil@anonymised.com | http://www.ait.ac.at

FN: 115980 i HG Wien | UID: ATU14703506
> http://www.ait.ac.at/Email-Disclaimer

Would you also be able to confirm that you have updated

USER_SDO_GEOM_METADATA

http://docs.oracle.com/cd/B19306_01/appdev.102/b14255/sdo_objrelschema.htm

···

From: stefano.costa [mailto:stefano.costa@…1107…]
Sent: Friday, 10 July 2015 4:18 PM
To: Gerhard.Duennebeil@…7146…
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] srsName missing with Geometries when using app-schema

Hi Dünnebeil,
works for me on GeoServer 2.7.1 with a PostGIS-backed layer.

Request is:

http://localhost:8080/geoserver/ows?service=WFS&version=2.0.0&request=GetFeature&typeName=lcv:LandCoverUnit&maxFeatures=50&srsName=EPSG:4326

Sample output:

<wfs:FeatureCollection numberMatched=“unknown”
numberReturned=“1044” timeStamp=“2015-07-10T08:00:45.387Z”
xsi:schemaLocation=“http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://inspire.ec.europa.eu/schemas/lcv/3.0 http://inspire.ec.europa.eu/schemas/lcv/3.0/LandCoverVector.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd”>
wfs:member
<lcv:LandCoverUnit gml:id=“lcu.15766”>
lcv:inspireId
base:Identifier
base:localIdf9f3fb10-980f-11e4-9126-1b2d9c2751a0</base:localId>
base:namespacelcu</base:namespace>
</base:Identifier>
</lcv:inspireId>
lcv:geometry
<gml:MultiSurface srsDimension=“2”
srsName=“http://www.opengis.net/gml/srs/epsg.xml#4326”>
gml:surfaceMember
<gml:Polygon srsDimension=“2”>
gml:exterior
gml:LinearRing
gml:posList
10.265245506969334
43.81816641231743
10.265182592170541
43.81805635449135

10.265245506969334
43.81816641231743
</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</gml:surfaceMember>
</gml:MultiSurface>
</lcv:geometry>
lcv:landCoverObservation
lcv:LandCoverObservation
lcv:class243</lcv:class>
lcv:observationDate2007-01-01T00:00:00Z</lcv:observationDate>
</lcv:LandCoverObservation>
</lcv:landCoverObservation>
lcv:landCoverObservation
lcv:LandCoverObservation
lcv:class243</lcv:class>
lcv:observationDate2013-01-01T00:00:00Z</lcv:observationDate>
</lcv:LandCoverObservation>
</lcv:landCoverObservation>
</lcv:LandCoverUnit>
</wfs:member>
</wfs:FeatureCollection>

Perhaps the problem occurs only when the layer is served by Oracle?
Could you prepare a minimal sample dataset and app-schema mapping file to reproduce the error?

Best regards,

Stefano Costa

==

GeoServer Professional Services from the experts! Visit

http://goo.gl/it488V for more information.

==

Dott. Stefano Costa

Senior Software Engineer

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054 Massarosa (LU)

Italy

phone: +39 0584 962313

fax: +39 0584 1660272

http://www.geo-solutions.it

http://twitter.com/geosolutions_it


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o

nel/i file/s allegato/i sono da considerarsi strettamente riservate.

Il loro utilizzo è consentito esclusivamente al destinatario del

messaggio, per le finalità indicate nel messaggio stesso. Qualora

riceviate questo messaggio senza esserne il destinatario, Vi preghiamo

cortesemente di darcene notizia via e-mail e di procedere alla

distruzione del messaggio stesso, cancellandolo dal Vostro sistema.

Conservare il messaggio stesso, divulgarlo anche in parte,

distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità

diverse, costituisce comportamento contrario ai principi dettati dal

D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely

for the attention and use of the named addressee(s) and may be

confidential or proprietary in nature or covered by the provisions of

privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New

Data Protection Code).Any use not in accord with its purpose, any

disclosure, reproduction, copying, distribution, or either

dissemination, either whole or partial, is strictly forbidden except

previous formal approval of the named addressee(s). If you are not the

intended recipient, please contact immediately the sender by

telephone, fax or e-mail and delete the information in this message

that has been received in error. The sender does not give any warranty

or accept liability as the content, accuracy or completeness of sent

messages and accepts no responsibility for changes made after they

were sent or for other risks which arise as a result of e-mail

transmission, viruses, etc.

Da: “Dünnebeil Gerhard” Gerhard.Duennebeil@…7146…

A: “geoserver-users@lists.sourceforge.netgeoserver-users@lists.sourceforge.net

Cc:

Data: Fri, 10 Jul 2015 06:52:36 +0000

Oggetto: [Geoserver-users] srsName missing with Geometries when using app-schema

Hello,

we are using geoserver version 2.7.1.1 and the related app-schema plugin.

We are also using the oracle plugin to retrieve the data.

When we map a geometry type (SDO_GEOMETRY) to a gml:geometry (e.g. gml:Point) the outcome is as expected in general but the attribute srsName is missing.

We made sure, that the information is available within the SDO_GEOMETRY type and –using a debugger- we made sure it is available within the app-schema plugin.

Nevertheless it is not output to the generated XML stream.

There seems to be a related bug (with fix) in the geotools (https://osgeo-org.atlassian.net/browse/GEOT-2639).

Does anybody know when this fix will have made its way into a geoserver release?

Best regards

Gerhard Duennebeil

> GERHARD DÜNNEBEIL

Secure Information Management
Safety & Security Department

> AIT Austrian Institute of Technology GmbH

Donau-City-Straße 1 | 1220 Vienna | Austria
T +43(0) 50550-3173 | M +43(0) 664 2351747 | F +43(0) 50550-4150
> gerhard.duennebeil@…7146… | http://www.ait.ac.at

FN: 115980 i HG Wien | UID: ATU14703506
> http://www.ait.ac.at/Email-Disclaimer