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

Generating map shapes in WKB (Well known binary) format

2 Answers 290 Views
Map
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
dilsah
Top achievements
Rank 1
dilsah asked on 07 Jun 2012, 12:42 PM
I'm trying to generate map shapes in WKB format as shown in the  example "WktReader". The only difference i made is to change the geospatial property string Geometry to byte array in order to store the wkb data which comes from database. When i run the program nothing shows up in the map. What else should i do in order to make it work, am i missing something??

2 Answers, 1 is accepted

Sort by
0
dilsah
Top achievements
Rank 1
answered on 12 Jun 2012, 07:03 AM
Any ideas??
0
Andrey
Telerik team
answered on 12 Jun 2012, 08:15 AM
Hello Dilsah,

It is very complicated and it is hard to reproduce the problem without your solution or code. Probably the problem is in a conversion data to WKB format.
When the SqlGeospatialDataReader.GeospatialPropertyName property specifies a property which represents Geospatial data in a the binary type (byte[]), then it will be read as Wkb. I have attached a sample solution which uses Geospatial data in the WKB format.
Note, that the 'StateCountiesWKB' view which is used in the database model uses the Geometry.STAsBinary() function of MSSQL to get the Geometry field in WKB format.
I hope it helps.

Greetings,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

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