ThinkGeo.com    |     Documentation    |     Premium Support

Strange Projection Problem

In my application, I open a shape file and add it to a dynamic layer. All is well (see first screen shot).


 


When I zoom out then back in, my dynamic overlay disappears and I get an error in the upper left hand corner of the map (see below)



In case it's not readable, the error states "The projection is not open, please open it before calling this method."


Note that no server side code of mine is called that generates this error. It appears to happen internal to the latest beta. Is this a known issue or have I done something wrong?


Bob Mc.



FYI, I am also getting periodic occurrences of this error when opening a feature source: 
 System.AccessViolationException was unhandled by user code 
   Message=“Attempted to read or write protected memory. This is often an indication that other memory is corrupt.” 
   Source=“MapSuiteCore” 
   StackTrace: 
        at ThinkGeo.MapSuite.Core.Proj4Projection.pj_init(Int32 argc, String[] args) 
        at ThinkGeo.MapSuite.Core.Proj4Projection.OpenCore()     
        at ThinkGeo.MapSuite.Core.Projection.Open()     
        at ThinkGeo.MapSuite.Core.FeatureSource.Open()     
        <— my method calls snipped --> 
        at MyPage.Page_Load(Object sender, EventArgs e) in C:\Source\SMG\DMOE2\Web Source\DMOE\Mapping\MapView.aspx.vb:line 186     
        at System.Web.UI.Control.OnLoad(EventArgs e)     
        at MyBasePage.OnLoad(EventArgs e) in C:\Source\SMG\DMOE2\Web Source\DMOE\App_Code\BasePage.vb:line 152     
        at System.Web.UI.Control.LoadRecursive()     
        at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
   InnerException:  
  
 Note that this does not happen all the time, but I can make it happen regularly. I’m not sure if it’s associated with a particular shape file yet. 
  
 Also, I’m checking to make sure the feature source is not open before I call the Open method, so I’m not trying to open an already opened feature source. 
  
 Bob Mc.

Bob,


We have a known issue in the current release that the projection module not work right sometime. Here is another post about this. 
 
gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/5007/afv/topic/Default.aspx
 
Still, can you send me your code about how you add that projected shape?  Just wonder how often you open/close the projection, maybe we can solve your issue by reducing the times you open it. We have a sample which uses the projection transformation too but never meets that problem; I’m curious what makes that happen. 
 
Ben