var coords = line.Coordinates.Select(c => new Coordinate(c.Latitude, c.Longitude, c.Altitude)).ToArray(); geometries.Add(new KmlGeometry(GeometryType.Polyline, coords));
var pl = new Polyline3d(Poly3dType.SimplePoly, points, false); var bt = tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite) as BlockTableRecord; var plId = bt.AppendEntity(pl); tr.AddNewlyCreatedDBObject(pl, true); return plId; import kml to autocad civil 3d 2018
Use an online tool like the MyGeodata Cloud Converter to turn your KML/KMZ into an ESRI Shapefile (.shp) . var coords = line
var coords = line.Coordinates.Select(c => new Coordinate(c.Latitude, c.Longitude, c.Altitude)).ToArray(); geometries.Add(new KmlGeometry(GeometryType.Polyline, coords));
var pl = new Polyline3d(Poly3dType.SimplePoly, points, false); var bt = tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite) as BlockTableRecord; var plId = bt.AppendEntity(pl); tr.AddNewlyCreatedDBObject(pl, true); return plId;
Use an online tool like the MyGeodata Cloud Converter to turn your KML/KMZ into an ESRI Shapefile (.shp) .
Tel: 0086-519-86683500
Fax: 0086-519-86801276
Add: No.5, Xinya Road, Wujin High-Tech Industry Zone, Changzhou, Jiangsu, China

