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

MapShape from ESRI Shapefile Byte Array

1 Answer 62 Views
Map
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 22 Aug 2011, 05:20 PM
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

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 25 Aug 2011, 11:18 AM
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 >>

Tags
Map
Asked by
Andrew
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or