Code Monkey home page Code Monkey logo

sharpmap.deltashell's People

Contributors

fobermaier avatar

Watchers

 avatar  avatar

Forkers

bubdm

sharpmap.deltashell's Issues

Slow layer rendering

This is extracted from SharpMap/SharpMap#58:

@ekoswr wrote:
Dear Felix and Sharpmap Gurus

Thank you so much for the great code you made and maintain so far.
I have the same problem with aviabunin, when i try to load arond 10,000 points or more on the map. we have feature on our map applications to show the vehicle's GPS coordinate history along the road and when we reach to around 10,000 points, the map form is become very slow and sometime not responding when we do the zoom or pan. Other than the point we also have polygon, circle and line layer but not as much as the GPS points layer. we taken the data from MSSQL.

11000 Records

the code listing to load the GPS layer is below.

public static void AddGPSHistoryLayerFromFeature(SharpMap.Map aMapParent, SharpMap.Data.FeatureDataTable aFeature, bool aVisible)
        {
            MineDispatch.Helper.MapControls.RemoveLayer(aMapParent, "GPSHistory");

            if (aFeature != null)
            {
                try
                {
                    SharpMap.Layers.VectorLayer vlHistory = new SharpMap.Layers.VectorLayer("GPSHistory");
                    vlHistory.DataSource = new SharpMap.Data.Providers.DataTableFeatureProvider(aFeature);
                    vlHistory.Visible = aVisible;
                    vlHistory.SRID = mapSrid;
                    vlHistory.Theme = new SharpMap.Rendering.Thematics.CustomTheme(
                        new SharpMap.Rendering.Thematics.CustomTheme.GetStyleMethod(GetGPSPointCustomStyle));
                    vlHistory.ShowInLegend = false;
                    aMapParent.Layers.Add(vlHistory);
                }
                catch (Exception ex)
                {
                    string exMsg = ex.Message;
                    if (ex.InnerException != null)
                    {
                        exMsg += "\r\nInner Exception:\r\n" +
                            ex.InnerException
                            + "\r\n"
                            + ex.InnerException.StackTrace;
                    }

                    MineDispatch.Helper.ErrorLog.WriteToLog("AppException", "[MapControls.AddGPSHistoryLayerFromFeature] " + exMsg);
                }
            }
        }

I desperately need this problem to be solve, please let me know what i need to provide in order for you and Sharpmap gurus to help me.
Many Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.