Hi,
use the getFieldLength() method of this utility class: http://svn.geotools.org/geotools/trunk/gt/plugin/mif/src/org/geotools/ feature/AttributeTypes.java Sig On 22 Sep 2005 at 13:46, [EMAIL PROTECTED] wrote: > 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/ -- Luca Sigfrido Percich ([EMAIL PROTECTED]) Agenzia Milanese Mobilità e Ambiente s.r.l. (http://www.ama-mi.it) Direzione Sistemi Informativi e Modellistica Via Beccaria, 19 - 20122 Milano - tel. +39 02 884.67.262 ------------------------------------------------------- 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
