1
Vote

SqlServer raise WKB is not valid format.

description

Hi
When i tried to create a new sqlserver DbGeometry from multipolygon IFeature WKB, i'v got error like 'WKB is not valid format', but WKT works with no error for the same IFeature.
 
//feature type is polygon and geometry type is multipolygon.
var geom = DbGeometry.FromBinary(ifeature.BasicGeometry.toBinary(), srid); //raises error
var geom = DbGeometry.FromText(ifeature.BasicGeometry.toString(), srid); //works

comments

mudnug wrote Jun 12, 2012 at 4:23 PM

Would you like to provide the WKT for this feature?