The changes to MapScript help dramatically - at least using main. I end up
with code like:
my $proj_26915 = new mapscript::projectionObj('epsg:26915');
my $proj_4326 = new mapscript::projectionObj('epsg:4326');
my $reprojector = new mapscript::reprojectionObj( $proj_26915,
$proj_4329);
while (my
Thanks for the response Even.
Switching to 4329 drops a few milliseconds, no major improvement.
If I still create the projection objects but don't actually project the
point object then the execution time drops back to 0m0.180s or thereabouts.
Creating the projection objects is just running msLoa
Steve,
are you sure you don't still run into the projection initialization, or
actually the cost to get the reprojector object from the (in, out)
projection tuple from the cache maintained by createNormalizedPJ() ?
If the following functions were mapped to SWIG
MS_DLL_EXPORT reprojectionOb
Hi all: I have a Perl script that runs against a shapefile to project a
geometry centroid from UTM to Lat/Lon. Code looks something like this:
my $proj_26915 = new mapscript::projectionObj('epsg:26915');
my $proj_4326 = new mapscript::projectionObj('epsg:4326');
while (my $shape = $layer->nextSha