Quantcast
Channel: OpenFlows | Water Infrastructure
Viewing all articles
Browse latest Browse all 39611

Forum Post: RE: Export Shapefile of Network using WaterObjects

$
0
0
Thanks very much for finding this prior post on creating a shapefile. The bits of code in the description were tremendously helpful and I think I know now what needs to be done. Here's the first part of my code. Dim dbFields(3) As DBFFieldInfo dbFields(0) = New DBFFieldInfo("MonYr", DBFFieldType.String) dbFields(0) = New DBFFieldInfo("Id", DBFFieldType.String) dbFields(1) = New DBFFieldInfo("conc", DBFFieldType.Double) dbFields(2) = New DBFFieldInfo("StrtNd", DBFFieldType.String) dbFields(3) = New DBFFieldInfo("EndNd", DBFFieldType.String) Dim shpWriter As ShapefileDataSourceWriter = New ShapefileDataSourceWriter() shpWriter.CreateDataFile(pathShpFle, dbFields, True, ShapeType.Polyline) When I reach the CreateDataFile step in debug mode, it throws a DllNotFoundException with the message "Unable to load DLL 'c4dll.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)". I see from a note in the WaterObjects.Net Samples Guide, that c4dll.dll is a file that comes with WaterGEMS. Since I am using WaterCAD, I don't have this file. Is there any way around this? Can I get the c4dll.dll file withoug purchasing a WaterGEMS license?

Viewing all articles
Browse latest Browse all 39611

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>