Generating map shapes in WKB (Well known binary) format

3 posts, 0 answers
  1. dilsah
    dilsah avatar
    8 posts
    Member since:
    Dec 2010

    Posted 07 Jun 2012 Link to this post

    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. dilsah
    dilsah avatar
    8 posts
    Member since:
    Dec 2010

    Posted 12 Jun 2012 Link to this post

    Any ideas??
  3. DevCraft banner
  4. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 12 Jun 2012 Link to this post

    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 >>

Back to Top