MapShape from ESRI Shapefile Byte Array

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    2 posts
    Member since:
    Jun 2011

    Posted 22 Aug 2011 Link to this post

    Hello, I have data in the form of what can be considered part of of an esri shape file, I have just the byte arrays for the shapes themselves and not the other parts of the shape file such as the file header. I believe the methods to decode the byte array into a MapShape exist internally within the telerik dll, but is there a good way to access them directly?

    Thanks
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 25 Aug 2011 Link to this post

    Hello Andrew,

    Unfortunately the current API does not allow to read parts of a shape-file. I would recommend to generate the shape-file standard header. You can use the MemoryStream class to build a stream with the standard shape-file (header and shape) and then you can use public ShapeFileReader.Read(Stream) method to read shapes.

    Regards,
    Andrey Murzov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top