Select to view content in your preferred language

too many polylines to load

646
3
Jump to solution
06-27-2012 12:59 PM
jamesborris
Occasional Contributor
Maybe some can help me. I have a polyline layer with thousands of records and it takes a very long time to render even in arcmap. I only want this layer to show in my silverlight app when the user is zoomed in a lot. But I feel when they hit that scale its going to take forever to load the layer. What is the best way to handle this? is there a way to only render the features that are within the current extent or view. Please help if you can. and advise would help.
0 Kudos
1 Solution

Accepted Solutions
PreetiMaske
Esri Regular Contributor
To display the features in current extent you would need to add your polyline layer as FeatureLayer with Mode=OnDemand.  This would query/render features that are in the current extent. But again, if you zoom out and extent grows bigger you may run into slower rendering problem. See this sample

http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#FeatureLayerOnDemand

View solution in original post

0 Kudos
3 Replies
PreetiMaske
Esri Regular Contributor
To display the features in current extent you would need to add your polyline layer as FeatureLayer with Mode=OnDemand.  This would query/render features that are in the current extent. But again, if you zoom out and extent grows bigger you may run into slower rendering problem. See this sample

http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#FeatureLayerOnDemand
0 Kudos
ElieRizk
Frequent Contributor
i have the same issue wit electrical lines
the layer is stored in a filegeodatabse, it loads very slow in arcmap (takes around 10 s to show up)
- i tried to recalculate the index nothing changed
- create new index again nothing changed

if i export the layer to shapefile it loads very fast (2 s) and go back to DB i face the same slowness

any solution for the above?
0 Kudos
ElieRizk
Frequent Contributor
why a shapefile become slow when displaying in arcmap after exporting to SDE?
0 Kudos