Generally yuo can use the utility method suggested by Sig, it's very
handy!!!

Unfortunately there's a known issue in JDBCDataStore and descendants,
where field length (and other information) are not retrieved:
   http://jira.codehaus.org/browse/GEOT-486 

Bye
Paolo Rizzi


-----Original Message-----
From: [EMAIL PROTECTED]
To: [email protected]
Sent: 22/09/2005 18.37
Subject: [Geotools-gt2-users] AttributeType, attribute field lenght?

Hello,

I need to know what is the maximum alowed field length, especialy when
it is
of string type. I noticed that AttributeType.getFieldLength() was
removed from
geotools code instead of it I used AttributeType.getRestriction(), and
extracted
Expression type fro filter. The probelm is that on shape file the lenght
of
field is correct, but when i do the same thing on postgres DB i get
length=0,
but i know that it is not true. What's wrong? Should i extract field
length
of DB in other way?
--
http://www.freemail.lt/


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your
very
own Sony(tm)PSP.  Click here to play:
http://sourceforge.net/geronimo.php
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
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 riceveste 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; costituisce comportamento contrario ai
principi dettati dal D. Lgs. 196/2003 il trattenere il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse.


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to