[mapguide-internals] PATCH: OGR Provider, slight speedup and override of projections

Traian Stanev traian.stanev at autodesk.com
Wed Oct 3 10:08:43 EDT 2007


I've checked in the patch. Thank you for the improvements, Kenneth.


Traian


> -----Original Message-----
> From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-
> internals-bounces at lists.osgeo.org] On Behalf Of Kenneth, GEOGRAF A/S
> Sent: Wednesday, October 03, 2007 7:13 AM
> To: MapGuide Internals Mail List
> Subject: [mapguide-internals] PATCH: OGR Provider,slight speedup and
> override of projections
> 
> The attached file contains an improvement to the OGR Provider.
> The patch will avoid checking intersection in cases where the query
> type is a EnvelopIntersect.
> The current intersection check was added to ensure that the AJAX
> Viewers select and tooltip operations works.
> However, this check slows down the renderer because it performs an
> actual intersection test, which is not required for rendering.
> 
> Aditionally I have removed all "printf" commands from a non-debug
> build.
> 
> Lastly, I have added an option to supply coordinate system overrides
on
> the provider.
> This is necessary for certain MI_TAB files, which use non standard WKT
> projections.
> It will read in a file named "projections.txt" from the server folder.
> The "projections.txt" file should be constructed like this (wkt is
> supposed to be full):
> 
> #System 34 S
> PROJCS["unnamed" ....... 1.0]]
> PROJCS["DenmarkS34-S" ....... 1.0 ]]
> 
> Any blank line or line starting with # is ignored.
> Every two accepted lines are treated as a pair, where the first line
is
> the WKT translated from, and the second line is the WKT translated to.
> It uses a std::map which will run in O(1) to find the projections.
> 
> --
> Regards, Kenneth, GEOGRAF A/S
> 
> 




More information about the mapguide-internals mailing list