Well, my problem was solved perfectly.
Thank you very much!
On Wed, Feb 15, 2012 at 5:17 PM, Ben Caradoc-Davies
<[email protected]> wrote:
> On 15/02/12 17:08, Zheng Xudong wrote:
>
>> Thanks for your answer, I think it's a good solution.
>> But, I still have two problems:
>> 1. I found GeometryFactory could be constructed with a PrecisionModel.
>> However, in my situation, the geometry is read from a shape file which is
>> attach with a default PrecisionModel (FLOATING). I want to know how could I
>> change the PrecisionModel of them? And I also transform the geometry, how
>> to ensure the PrecisionModel of the transformed geometry is the same?
>>
>
> I have not tried it, but I think you should use
> GeometryFactory.**createGeometry(Geometry)
> to create a new Geometry with the gridded PrecisionModel from the original
> floating PrecisionModel.
>
>
> 2. Dose this solution means the lose of the computation precision?
>>
>
> Yes, you will lose some precision by converting to a grid. But only
> convert to gridded *after* computation to minimise loss of precision.
>
>
> Kind regards,
>
>
> --
> Ben Caradoc-Davies <[email protected]>
> Software Engineer
> CSIRO Earth Science and Resource Engineering
> Australian Resources Research Centre
>
--
Zheng Xudong
State Key Laboratory of Software Development Environment
School of Computer Science and Engineer, BeiHang University
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users