Issue Type: Bug Bug
Affects Versions: 8.1
Assignee: Unassigned
Components: geometry
Created: 17/Sep/12 7:09 PM
Description:

This program:

"""
import org.geotools.geometry.DirectPosition2D;
import org.geotools.geometry.GeneralEnvelope;

public class TestMain {
public static void main(String[] args) { GeneralEnvelope vtxextnt = new GeneralEnvelope(2); vtxextnt.add(new DirectPosition2D(100.0, 200.0)); System.out.println(vtxextnt.toString()); }
}
"""

produces the result:

GeneralEnvelope[(0.0, 0.0), (100.0, 200.0)]

It should not. The problem is that "new GeneralEnvelope(2)" is initializing the envelope to 0,0 to 0,0 without any way of keeping track that nothing has actually been initialized yet.

Project: GeoTools
Priority: Minor Minor
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