MapWinGIS:Shapefile Caching of extents

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

Table of contents

Contents


Methods and Properties

CacheExtents

If this property is set to true then extents of separate shapes and the whole shapefile won???t be recalculated before each redraw of the map but their cached values will be used. It???s beneficial in terms of performance. But if the editing of shapefile occurred then the shape extents should be refreshed manually using RefreshExtents and RefreshShapeExtents methods. Otherwise the information in the cached extents may be incorrect.

Syntax

return


RefreshExtents

Recalculates the cached extents of the shapefile. Should be used when Shapefile.CacheExtents option is set and the editing of the shapefile took place.

Syntax

Returns

True if the extents were refreshed and false otherwise. Actually true will be returned on every occasion.

return


RefreshShapeExtents

Recalculates the cached extents of given shapefile. Should be used when Shapefile.CacheExtents option is set and the editing of the given shape took place.

Syntax

Parameters

Returns

True if the extents were refreshed nad false otherwise. In the later case inappropriate shape index was specified.

return

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:Shapefile_Caching_of_extents"

This page has been accessed 248 times. This page was last modified on 11 February 2010, at 14:58.


C# : public virtual bool CacheExtents { set; get; }
VB6: Property CacheExtents As Boolean
C# : public virtual bool RefreshExtents()
VB6: Function RefreshExtents() As Boolean
C# : public virtual bool RefreshShapeExtents(int ShapeId)
VB6: Function RefreshShapeExtents(ShapeId As Long) As Boolean
ShapeId The index of the shape shich extents are to be refreshed.