The well-known Binary (WKB) not available when preview report
-
Saturday, November 05, 2011 5:37 AM
Hi,
I have programmatically created my shapefiles. These shapefiles are to be import to my map report as a map layer. In design mode, I can see the map layers which I have cdreated. However, when i switch to preview mode, 'The well-known binary (WKB) is not valid message was displayed. May I know what could have gone wrong with my shapefiles?
Thank you.
Mai
All Replies
-
Tuesday, November 08, 2011 9:43 AMModerator
Hi Mai,
I will involve someone more familiar with this topic for a further look at this issue. Thanks for your understanding.
Best Regards,
Stephanie Lv
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
Monday, November 28, 2011 9:53 PM
Hello Mai,
You can try the solution suggested in the following thread:
When you specify a shape file as a spatial data source and it is located on your local computer, the spatial data is automatically embedded in the report. To use spatial data from an ESRI file dynamically, you must do the following:
Upload both the .shp file and the .dbf file to the same folder on a report server, and then link to the .shp file as the spatial data source.For more information about the topic, please see the following article,
Maps (Report Builder 3.0 and SSRS): http://msdn.microsoft.com/en-us/library/ee240845(SQL.105).aspxFYI - SQL lets you store & retrieve any combination of points to make any geometry you like. But if you do create some convoluted shape which twists & turns over itself, it is often impossible to determine what you've described. So most of the methods will fail. A polygon that crosses over itself is really a multipolygon containing polygons which just touch each other. A Line which draws over itself is really a multilinestring i.e., A Shape is valid where it does NOT cross over itself. Be diligent, when you create shapes, ensure that you are forming them correctly, especially geography shapes which do not have a MakeValid Method. You can only perform calculations on Valid Shapes.
Regards,
Swetha
Microsoft Online Community Support
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Swetha- Edited by Swetha Ga - MSFT Monday, November 28, 2011 9:53 PM
- Proposed As Answer by Swetha Ga - MSFT Monday, December 05, 2011 7:50 PM
-
Tuesday, November 29, 2011 10:27 AMAnswerer
Swetha - just to correct you on a few points:
It's perfectly valid to have a LineString geometry that crosses over itself. Take, for example:
DECLARE @l geometry = 'LINESTRING(0 2, 10 2, 10 0, 8 4, 6 0, 4 4, 2 0, 0 4, 0 2)'; SELECT @l, @l.STIsValid(); -- 1
In SQL Server 2008/R2 the MakeValid() method only exists for the geometry datatype. As of SQL Server 2012, this method can be applied to the geography datatype as well. See http://msdn.microsoft.com/en-us/library/ff929337%28v=SQL.110%29.aspx
twitter: @alastaira blog: http://alastaira.wordpress.com/

