Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
When creating the object DbGeometry in Autocad

DbGeometry geometry = DbGeometry.PolygonFromText("POLYGON((29.11 40.11, 29.11 40.0 , 29.30 40.0, 29.30 40.11, 29.11 40.11))", 4326);


I'm getting an exception: Unable to load DLL 'SqlServerSpatial.dll': The specified module can not be found. (Exception from HRESULT: 0x8007007E)

instead, creating an object:
DbGeometry point = DbGeometry.PointFromText("POINT(0 0)", 4326);


I do not get an exception

Please help

What I have tried:

When creating the object DbGeometry in Autocad
Posted
Updated 30-Jan-18 8:15am
v2
Comments
RedDk 30-Jan-18 14:21pm    
For starters go to MS, download this, and install it:

http://www.microsoft.com/en-us/download/details.aspx?id=26728

But about the AutoCADedness of DbGeometry I can add nothing.
[edit]
The first suggestion is predicated on the assumption that SQL Server is already on your box. The geospatial methods and functions deployed might not necessarily be there ... but since I see "POLYGON" and "4326" I'm thinking you already know that.
[end edit]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900