[Gvsig_english] Problem with ConcreteMemoryDriver

Francisco José Peñarrubia fran.penarrubia at iver.es
Thu Jun 21 10:09:30 CEST 2007


Bonjour Yves.

I think you should use a Rectangle2D.*Double.

*Please, be aware that it seems that you are showing data from 
java.awt.Rectangle, which stores data in int's.

getFullExtent() return Rectangle2D. Try this, and it should be ok.

Bye.

Yves voirin escribió:
> Hi,
>
> I would like to use the ConcreteMemoryDriver class in an extension, but I
> have a problem with the method getFullExtent(). The method does not give
> the right result.
>
> I did a simple test. I load a shapefile with this fullextent
> (java.awt.geom.Rectangle2D$Double[x=-72.0030675,y=45.80793875,w=0.16806750000000648,h=0.08857749999999953])
> and I copy all the geometries in a ConcreteMemoryDriver. The fullextent of
> this ConcreteMemoryDriver is
> java.awt.Rectangle[x=-73,y=45,width=2,height=1].
>
> I do not have any idea about this problem. Do you have any suggestion ?
>
> Yves
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at runas.cap.gva.es
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
>   



More information about the Gvsig_internacional mailing list