Dear GeoTools users,

I am trying to read a shape file using geotools and everything is 
working well.
I couldnt find out how to read the scale from a real field though.

For reading the precision I get the field restricctions and then I 
parsed each element on the list (filter.toString()) looking for the 
string 'length'.
It is working for getting the length which makes me understand the 
precision but I coudlnt find out how to get the scale.

Im sure this is not the right procedure even for getting the lenght.

I can not find out the opposite problem either. I mean how to write a 
shape file and specify the precision and scale for a real shape file field.

So I would like to know:
1) How I can get the precision and scale from an existing shape file field.
2) How I can set up the precision and scale when Im writing a  new shape 
file.

Any help will be very appreciated.

Cheers,
Jose

-- 

------------------------------
José Carlos Martínez Llario

Producción Cartográfica y SIG
Dpto. Ingeniería Cartográfica, Geodesia y Fotogrametría
Universidad Politécnica de Valencia

E-mail: [email protected]
Telf: 963877007 ext. 75599
------------------------------


------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to