Hi Paul,
you are using a very old geotools version, that is depending on an old
version of PostGIS.
Try upgrading to a newer version.

Mauro

Il giorno mar 5 mar 2019 alle ore 16:10 <paul.m...@lfv.se> ha scritto:

> Hi,
>
> I’ve tried to use the code from
> http://freeopengis.blogspot.com/2016/02/importing-esri-shapefiles-into-dbs.html
>  (shapeToPostgis example)
>
>
>
> But I can’t get it to work getting the following message :
>
> INFO: ALTER TABLE "public"."ED_ENR_5_4_Saarland_en_2018-10-11" ADD
> CONSTRAINT enforce_dims_the_geom CHECK (ndims("the_geom") = 2);
>
> *ERROR:java.io.IOException*: ERROR: function ndims(geometry) does not
> exist
>
>   Hint: No function matches the given name and argument types. You might
> need to add explicit type casts.
>
>
>
> When The program executes this command:
>
> dataStore.createSchema(newSchema);
>
> I’ve tried to read about and understand the exposed hint but I can’t.
>
> Can anyone please help?
>
>
>
> Using geoTools 2.7 – jar files
>
> Kind regards,
>
> Paul
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>


-- 

Regards,

Mauro Bartolomeoli

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

Dott. Mauro Bartolomeoli
@mauro_bart
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy

mobile: +39 393 904 1756
phone: +39 0584 962313
fax:      +39 0584 1660272

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.
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to