[Geoserver-users] wfs-t and 3-dimension points (Oracle)

Hi,
I am working with 3-dimension feature stored in an Oracle database.
When i retrieve the features in a standard wfs query (gml 3.1), the
response gives me the 3 dimensions of the point.

(...)
<gml:Point srsDimension="3"
srsName="http://www.opengis.net/gml/srs/epsg.xml#25831&quot;&gt;&lt;gml:pos&gt;459217\.116781156
4670969.51204205 0</gml:pos>
</gml:Point>
(...)

However, when I try to do a insert or update with WFS-T request in the demo
console (sent with same format I had recieved), I get an Oracle exception
(Layer Dimensionality does not match geometry dimensions)

Cheking the geoserver log I've seen that Geoserver puts a 2 dimension
geometry in the Oralce Insert Query.

Am I doing anything wrong?

Thanks in advance.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/wfs-t-and-3-dimension-points-Oracle-tp5222246.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Wed, Sep 2, 2015 at 8:52 AM, xmiquel <xmiquel@anonymised.com> wrote:

Hi,
I am working with 3-dimension feature stored in an Oracle database.
When i retrieve the features in a standard wfs query (gml 3.1), the
response gives me the 3 dimensions of the point.

(...)
<gml:Point srsDimension="3"
srsName="http://www.opengis.net/gml/srs/epsg.xml#25831
"><gml:pos>459217.116781156
4670969.51204205 0</gml:pos>
</gml:Point>
(...)

However, when I try to do a insert or update with WFS-T request in the demo
console (sent with same format I had recieved), I get an Oracle exception
(Layer Dimensionality does not match geometry dimensions)

Cheking the geoserver log I've seen that Geoserver puts a 2 dimension
geometry in the Oralce Insert Query.

Am I doing anything wrong?

Maybe not... GeoServer did not use to support 3d ordinates at all, the
support was added
bit by bit over the last years on different store and on the reading side,
but I don't remember specific WFS-T work, and I don't see any integration
test
covering this use case, so I believe you're looking at a missing feature
there

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

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.

-------------------------------------------------------

OK,

I’ll try with some postgis datastores and post any significant advance.
I can also configure some processes on the database side.

Thank you Andrea.

nexus.png

···

El 02/09/2015 a les 09:50, Andrea Aime ha escrit:

On Wed, Sep 2, 2015 at 8:52 AM, xmiquel <xmiquel@anonymised.com> wrote:

Hi,
I am working with 3-dimension feature stored in an Oracle database.
When i retrieve the features in a standard wfs query (gml 3.1), the
response gives me the 3 dimensions of the point.

(…)
<gml:Point srsDimension=“3”
srsName=“http://www.opengis.net/gml/srs/epsg.xml#25831”>gml:pos459217.116781156
4670969.51204205 0</gml:pos>
</gml:Point>
(…)

However, when I try to do a insert or update with WFS-T request in the demo
console (sent with same format I had recieved), I get an Oracle exception
(Layer Dimensionality does not match geometry dimensions)

Cheking the geoserver log I’ve seen that Geoserver puts a 2 dimension
geometry in the Oralce Insert Query.

Am I doing anything wrong?

Maybe not… GeoServer did not use to support 3d ordinates at all, the support was added
bit by bit over the last years on different store and on the reading side,
but I don’t remember specific WFS-T work, and I don’t see any integration test
covering this use case, so I believe you’re looking at a missing feature there

Cheers
Andrea

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

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.


Xavier Miquel Serra
Analista GIS
Nexus Geografics - 972 20 79 04
http://www.nexusgeografics.com
http://www.cercalia.com


Abans d’imprimir aquest e-mail pensa en el medi ambient

La informació inclosa en aquest email és CONFIDENCIAL.
Si vostè llegeix aquest missatge i no és el destinatari indicat, l’informem que està totalment prohibida qualsevol utilització, divulgació, distribució i/o reproducció 'aquesta comunicació, total o parcial, sense autorització expressa en virtut de la legislació vigent. Si ha rebut aquest missatge per error, li preguem que ens ho notifiqui mmediatament per aquesta via i procedeixi a la seva eliminació junt amb els fitxers annexes sense llegir-lo ni gravar-lo.

Antes de imprimir este mail piensa en el medio ambiente

La información incluida en este email es CONFIDENCIAL.
Si Ud lee este mensaje y no es el destinatario indicado, le informamos que está totalmente prohibida cualquier utilización, divulgación, distribución y/o reproducción de esta comunicación, total o parcial, sin autorización expresa en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos nos lo notifique inmediatamente por esta vía y proceda a su eliminación junto con sus ficheros anexos sin leerlos ni grabarlo.

On Wed, Sep 2, 2015 at 4:32 PM, Xavier Miquel <xmiquel@anonymised.com>
wrote:

OK,

I'll try with some postgis datastores and post any significant advance.
I can also configure some processes on the database side.

Thanks. By the way, I've just had a peek at the current postgis code and it
should be able
to deal with a third dimension while writing...
You might want to put your breakpoint here:
https://github.com/geotools/geotools/blob/master/modules/plugin/jdbc/jdbc-postgis/src/main/java/org/geotools/data/postgis/PostGISDialect.java#L1032

Ah, you did not say anything about the geoserver version
you're using, what I said above is valid for the 2.7.x series,
haven't checked what's going on for older versions

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

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.

-------------------------------------------------------