Loading shape files very slow

4 posts, 0 answers
  1. Patrick
    Patrick avatar
    58 posts
    Member since:
    Jun 2008

    Posted 28 Apr 2011 Link to this post

    I have an application which is using RadMap to display Bing data which works very nice. The application also uses a map tool created by ThinkGeo to load and display shape files distributed by them called the World Map Kit. The ThinkGeo tool is fine, however the Telerik one is much better and nicer to work with. As such I attempted to load the shape files into the RadMap tool and was unable to because of the extreme slowdown of the application.

    One shape file which appears to outline all land features took about a minute to load and then an additional minute or so after the ReadCompleted event to finally let the layer display. Another shape file is taking several minutes to load with no signs of stopping. Panning or zooming is also painfully slow.

    ThinkGeo is able to load and display their map with about 30 or so seconds of total loading.

    One key difference I can see is the largest shape file in the RadMap example is world_continents with a size of 185K. The largest ThinkGeo shape file is 384 MB with a DBF size of 285 MB. Can RadMap work with very large shape files?

    Update: I went to check the version I was using which was 2010.3.1314.40. I upgraded to 2011.1.411.40 and now it fails loading any shape file with the error "Width and Height must be non-negative" and attempts to find the source for InformationLayer.ArrangeOverride line 695. In the 2010 version these shape files loaded, but were quite slow.
  2. Andrey
    Andrey avatar
    1681 posts

    Posted 03 May 2011 Link to this post

    Hello Patrick,

    Unfortunately the current version of the RadMap can't process so big shape files (384 MB with a DBF size of 285 MB).

    Could you, please, provide us with shape file which you were able to load in the version 2010.3.1314.40  and can't in the 2011.1.411.40? I hope we will be able to provide you with some suggestions on loading these files. 

    Andrey Murzov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Kevin
    Kevin avatar
    1 posts
    Member since:
    Mar 2014

    Posted 01 May 2014 in reply to Andrey Link to this post

    We are looking to load large shape files as well.  Does AsyncShapeFileReader make this possible now?  I used the demo code that uses AsyncShapeFileReader and tried to load a 200MB shp file with all linears (with 200 MB associated dbf file) and the UI becomes unresponsive despite the demo description stating that it should load the shape file without slowing down the UI.  Is there an example that shows using large shape file loading without bogging down the UI thread?  
  4. Peshito
    Peshito avatar
    524 posts

    Posted 05 May 2014 Link to this post

    Hello Kevin,

    Please take a look at our demo example showing how to read large shape files asynchronously. The demo is for silverlight, however the approach for WPF is the same.

    Hope this helps.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top