Hi Martin,
Thanks for cleaning it up. Sorry I didn't get around to optmizing it,
getting the transform right was enough for me :).
Any chance you profiled it to see how much of a performance gain we are
getting now?
-Justin
Martin Desruisseaux wrote:
Rueben Schulz a écrit :
When the class inherits from MapProjection, you will no longer need the
a, Eo, No fields, since they are in MapProjection and called semiMajor,
falseEasting and falseNorthing. Also, MapProjection will get these
values from the projection parameters, so you will not want to hard code
in a value for a (though this projection is only used with one set of
parameters). I cannot remember if there is a way to set a default value
for parameters, but there used to be in geotools 2.0.
Also, in keeping with the naming conventions in the projection
subpackage, the class should probably be renamed to the full
NewZealandMapGrid.
Renamed the class as suggested by Rueben, and removed all fields like a,
Eo and No; the projection now inherits the fields from MapProjection
instead.
I also tried to improve performance by avoiding temporary object
creations (the original implementation created a lot of double[2]
objects for every point to transform). Handling of complex numbers moved
to a dedicated class, org.geotools.math.Complex.
Martin.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel