On Tue, Jun 28, 2011 at 12:42 PM, LSA <[email protected]> wrote:
> Geotools writes Double as Numeric, with parts Width=33 and Decimal=31.
> If one open resulting DBF with notepad, he will be able to see exact
> ASCII characters of stored number. I mean, if we write 33.132 from java
> to dbf, plain text view of dbf will have '33.132' substring among the
> pure binary dbf data.
>
> First of all, if there are any means in Geotools to write Double as
> conventional 8-byte double?

You have to patch ShapefileDataStore.createDbaseHeader.
If you want to contribute the change please add a patch to jira.codehaus.org,
with a unit test proving it works

Cheers
Andrea


-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to