Issue Type: Bug Bug
Affects Versions: 8.1
Assignee: Andrea Aime
Components: referencing
Created: 17/Sep/12 7:01 PM
Description:

This program:

"""
import org.geotools.geometry.DirectPosition2D;
import org.geotools.referencing.operation.builder.MappedPosition;
import org.opengis.referencing.crs.CoordinateReferenceSystem;

import java.util.ArrayList;
import java.util.List;

public class TestMain {
public static void main(String[] args) { List<MappedPosition> gcps = new ArrayList<MappedPosition>(); CoordinateReferenceSystem crs = null; gcps.add(new MappedPosition(new DirectPosition2D(crs, 0.0, 0.0), new DirectPosition2D(crs, 400000.0, 3700000.0)) ); System.out.println(gcps.toString()); }
}
"""

Produces the output:

[Source point: 0.0 0.0
Target point: 400000.0
]

The problem appears to be that MappedPosition.toString() uses table.toString() which does not flush the current cell into the cell list. The solution is something like calling flush on the table() before toString() or modifying TableWriter.toString() to flush out the current cell before formatting the resulting table.

Project: GeoTools
Priority: Trivial Trivial
Reporter: Frank Warmerdam
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to