public Point2d ConvertLatLonToDrawing(double lat, double lon, string targetCsCode)
If you need a or help with specific errors (like coordinate transformation or AeccPoint creation), let me know.
: Use a free online tool like MyGeodata Cloud or reaConverter to transform your file into a .shp format.
return geometries;
Integrating Geospatial Data: A Technical Guide to Importing KML/KMZ Data into AutoCAD Civil 3D 2018
Prior to import, the destination drawing must be georeferenced.
Allow users to import geographic data from a KML file (points, lines, polygons) into Civil 3D 2018 as native objects:
var sourceCs = "LL84"; // EPSG:4326 alias in Civil 3D var transform = CoordinateSystemService.CreateTransform(sourceCs, targetCsCode); double x, y; transform.TransformPoint(lon, lat, out x, out y); // note: lon → X, lat → Y return new Point2d(x, y);
For , there is no native built-in command to directly import KML/KMZ files . Unlike later versions (2019+), which include the MAPIMPORT "Google KML" option, users of the 2018 release must use workarounds like format conversion or third-party add-ons. Option 1: Convert to Shapefile (Recommended)
