Hi all,
I am getting an error while reading a .gdb data source (ogr with OpenFileGDB driver):
org.locationtech.jts.io.ParseException: Unknown WKB type 12
at org.locationtech.jts.io.WKBReader.readGeometry(WKBReader.java:238)
at org.locationtech.jts.io.WKBReader.read(WKBReader.java:159)
at org.locationtech.jts.io.WKBReader.read(WKBReader.java:140)
at org.geotools.data.ogr.GeometryMapper$WKB.parseOgrGeometry(GeometryMapper.java:69)
am I missing something?
My setup is:
thanks in advance
That datastore doesn’t support curves, you could look at the PostGIS and Oracle stores for examples of stores that do support curves
Ian
···
Ian Turton
What Ian said, just a further note: the store can likely be modified to support curved geometries,
based on the work available in the PostGIS stores. It’s a matter of making it use
a different WKB reader (assuming OGR produces extended WKB the same way PostGIS does,
if there are differences, then more code would need to be written).
Cheers
Andrea
···
Regards, Andrea Aime
== 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 di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.
Please keep replies on list (as per user guidelines, they are linked at the bottom of each message).
GeoServer cannot switch between the reader classes, but the store in Geotools could be made to use the one that understands curves.
QGIS is a completely different codebase, in a different language, makes no sense to try and run a direct comparison.
GeoTools is not “based on GDAL”, it has an unsupported data store that can use GDAL, but then it has to go back to its own
model. QGIS is way more tightly bound to what GDAL does.
That said, see my first comment, if you are interested in proposing a code change to GeoTools, it can be done.
See: https://github.com/geotools/geotools/blob/master/CONTRIBUTING.md
Cheers
Andrea
···
Regards, Andrea Aime
== 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 di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.
I’m sorry I’m kinda new on user lists.
If I may insist more, I noticed the following things:
- running ogrinfo -so on my .gdb source returns Multi Polygon data types (apparently no curves?)
- running ogrinfo -al, I see no errors in the geometries output, that are displayed correctly, ie:
OGRFeature(base_fl):383
MULTIPOLYGON (((56205.9802 -64640.7187,56205.6882 -64640.5586,56188.7763 -64632.6055,56187.1943 -64629.2344,56180.0459 -64622.5234,56171.3499 -64616.7031,56172.6499 -64612.6191,56178.7945 -64614.9648,56186.9061 -64597.0039,56193.8951 -64581.6406,56198.4292 -64583.8015,56188.4863 -64606.5386,56208.4215 -64615.4729,56228.4556 -64624.5969,56238.3654 -64601.8599,56250.1581 -64607.1328,56239.9771 -64629.9102,56240.175 -64634.9219,56239.824 -64635.793,56239.935 -64643.9062,56239.286 -64645.4609,56236.51 -64654.3945,56235.365 -64656.9219,56205.9802 -64640.7187)))
Marco
Il giorno lun 1 feb 2021 alle ore 17:49 Andrea Aime <andrea.aime@anonymised.com> ha scritto:
Please keep replies on list (as per user guidelines, they are linked at the bottom of each message).
GeoServer cannot switch between the reader classes, but the store in Geotools could be made to use the one that understands curves.
QGIS is a completely different codebase, in a different language, makes no sense to try and run a direct comparison.
GeoTools is not “based on GDAL”, it has an unsupported data store that can use GDAL, but then it has to go back to its own
model. QGIS is way more tightly bound to what GDAL does.
That said, see my first comment, if you are interested in proposing a code change to GeoTools, it can be done.
See: https://github.com/geotools/geotools/blob/master/CONTRIBUTING.md
Cheers
Andrea
On Mon, Feb 1, 2021 at 5:43 PM Marco Casalboni <casalbonim@anonymised.com> wrote:
Hi thanks for the quick reply
Indeed, I did a little research, I found out WKBReader.java (jns) is not capable of reading other formats than the classic 2D geometries.
What I found is that in geotools there is a similar WKBReader with extended support and I wondering if in some way geoserver can switch between the WKBReader classes.
I’m also wondering why QGIS is fine with reading that specific datastore. Isn’t QGIS built on the same GDAL driver?
Marco
Il giorno lun 1 feb 2021 alle ore 16:30 Andrea Aime <andrea.aime@anonymised.com> ha scritto:
What Ian said, just a further note: the store can likely be modified to support curved geometries,
based on the work available in the PostGIS stores. It’s a matter of making it use
a different WKB reader (assuming OGR produces extended WKB the same way PostGIS does,
if there are differences, then more code would need to be written).
Cheers
Andrea
On Mon, Feb 1, 2021 at 4:19 PM Ian Turton <ijturton@anonymised.com> wrote:
That datastore doesn’t support curves, you could look at the PostGIS and Oracle stores for examples of stores that do support curves
Ian
On Mon, 1 Feb 2021 at 11:14, Marco Casalboni <casalbonim@anonymised.com> wrote:
Hi all,
I am getting an error while reading a .gdb data source (ogr with OpenFileGDB driver):
org.locationtech.jts.io.ParseException: Unknown WKB type 12
at org.locationtech.jts.io.WKBReader.readGeometry(WKBReader.java:238)
at org.locationtech.jts.io.WKBReader.read(WKBReader.java:159)
at org.locationtech.jts.io.WKBReader.read(WKBReader.java:140)
at org.geotools.data.ogr.GeometryMapper$WKB.parseOgrGeometry(GeometryMapper.java:69)
am I missing something?
My setup is:
thanks in advance
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this list:
If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
Ian Turton
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this list:
If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
Regards, Andrea Aime
== 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 di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.
–
Regards, Andrea Aime
== 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 di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.