<div dir="ltr">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:<div><br></div><div>my $proj_26915 = new mapscript::projectionObj('epsg:26915');<br>my $proj_4326 = new mapscript::projectionObj('epsg:4326');<br><div><br></div><div>while (my $shape = $layer->nextShape()) {<br></div></div><div>    my $point = $shape->getCentroid();</div><div>    $point->project($proj_26915, $proj_4326);</div><div>    # do something with $point</div><div>}</div><div><br></div><div>I get the following representative timings with ~250 polygon geometries in the shapefile.</div><div><br></div><div>  MapServer 7.4 + Proj 6.2.1 = 0m0.180s</div><div>  MapServer 7.6 + Proj 6.2.1 = 0m7.000s</div><div>  MapServer 8.0 (main) + Proj 7.2.1 = 0m4.300s</div><div><br></div><div>Huge difference and things kinda become unusable. Things improve a bit with newer versions but the performance hit is substantial. I thought at first that it was the projection initialization that was taking all the time but it's actually the "$point->project($proj_26915, $proj_4326);" statement. </div><div><br></div><div>Perhaps I'm doing something wrong?</div><div><br></div><div>--Steve</div></div>