This is a migrated thread and some comments may be shown as answers.

Loading shape files very slow

3 Answers 193 Views
Map
This is a migrated thread and some comments may be shown as answers.
Datafyer
Top achievements
Rank 1
Veteran
Datafyer asked on 28 Apr 2011, 11:52 PM
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.

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 03 May 2011, 08:43 AM
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. 

Regards,
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
0
Kevin
Top achievements
Rank 1
answered on 01 May 2014, 07:51 PM
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?  
0
Peshito
Telerik team
answered on 05 May 2014, 08:13 AM
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.

Regards,
Peshito
Telerik
 
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.
 
Tags
Map
Asked by
Datafyer
Top achievements
Rank 1
Veteran
Answers by
Andrey
Telerik team
Kevin
Top achievements
Rank 1
Peshito
Telerik team
Share this question
or