You may wish to create a Jira issue and then approach the module maintainer
(who I think is Justin).
Jody
On 06/07/2010, at 2:42 AM, Jose C. Martinez-Llario wrote:
> Hi GeoTools list,
>
> When I use GeoTools to encode a geometry into a KML I have a problem
> when my geometry has 4 dimensions: GeoTools skips the z coordinate in
> kml. I have modified JTS slightly to handle geometries with 4 dimensions.
>
> I was wondering if it is possible to change the following line in the
> class CoordinatesTypeBinding.java (org.geotools.kml.bindings). The
> change is just to change the == 3 by >= 3.
>
> public String encode(Object object, String value) throws Exception {
> ............
> if ( cs.getDimension() == 3 && !Double.isNaN( c.z ) ) {
> sb.append(",").append( c.z );
> }
> ..............
> }
>
> Result:
> public String encode(Object object, String value) throws Exception {
> ............
> if ( cs.getDimension() >= 3 && !Double.isNaN( c.z ) ) {
> sb.append(",").append( c.z );
> }
> ..............
> }
>
> The code will work exactly the same way than before but it will work
> with 4 dimension coodinates.
> It makes sense to change it in the next release?
>
> Thanks a lot,
> Jose
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users