Importing and Exporting GIS Data in AutoCAD Map 3D

Importing and Exporting GIS Data in AutoCAD Map 3D

A land surveyor I once worked with had a ritual. Whenever a new project began, he would ask the GIS team for “the data,” wait for a zip file, and then spend the first morning trying to get it to show up in the right place in his drawing. He tried everything: moving, rotating, scaling, redrawing. By the third project, I asked him to show me what he was doing. He opened the Shapefile in his CAD software, and I saw immediately that he was importing it without a coordinate system, so that the parcels arrived in their national grid coordinates, six figures away from his project’s origin. “It’s always like that,” he said. “The GIS people give me data that doesn’t fit.” I spent ten minutes showing him the import dialog, the coordinate system option and the data connection. He never “fixed” a drawing by hand again. A year later, he was the one teaching the GIS team what his drawings needed.

AutoCAD Map 3D was built for exactly this crossing: to bring GIS data into a CAD environment and to send CAD data out to GIS, with attributes, coordinate systems and structure intact. Its tools can import data (copying it into the drawing), connect to it (reading it live from its source) and export it (writing drawing objects out as GIS features). Civil 3D includes many of the same capabilities. Knowing which of these to use, and what each does to your data, makes the difference between a smooth handover and a wasted morning.

In this guide I’ll explain the three ways of moving data, how to choose among them, the options that matter in each (coordinate systems, layers, attributes, areas, filters), the formats and sources you can use, how to export to GIS properly, how to prepare data on the GIS side, what to check afterwards, and the mistakes to avoid. It is part of our Autodesk series. For the overview of the products, see Autodesk Software for GIS Professionals: Complete Overview, and for the coordinates behind every step here, Coordinate Systems in AutoCAD Map 3D and Civil 3D Explained.

A note on facts: the exact formats supported, the dialog options and the ribbon locations differ between versions. I describe the concepts and the typical tools. Check the documentation of your version for specific details.

Diagram: Map 3D imports GIS files, databases and services into a drawing and exports back to GIS formats.
Map 3D imports GIS files, databases and services into a drawing and exports back to GIS formats.

Three Ways to Move Data

It’s essential to understand the difference between the following three operations before touching any dialog.

OperationWhat it doesWhere the data lives afterwardsTypical command
ImportCopies GIS data into the drawing, converting it to drawing objects (with options for attributes and layers)In the drawing. The link to the source is brokenMAPIMPORT
Data ConnectReads GIS data live from its source, displaying it through a feature connectionIn the source. The drawing holds only the connection and the stylingMAPCONNECT
ExportWrites drawing objects out as GIS features, with attributesIn a new GIS file or databaseMAPEXPORT

(The command names above are those I know from Map 3D. Menus and ribbon names vary by version.)

When to import

  • You need the data to become part of the drawing: to edit it freely, to use it as drafting base content, to send the drawing to people who don’t have access to the source.
  • The area is small, and the volume of data is modest.
  • You want to snapshot the data at a given date.
  • The data should be converted into drawing objects, with layers and styles.

When to connect

  • The data is large, or changes frequently, and you want to see the current version.
  • You don’t want to duplicate it, or to risk drawings drifting out of date.
  • The authoritative data lives in a database or a GIS managed by someone else.
  • You want to query and style it without copying.
  • You want to save only the part you need into the drawing, as a controlled copy, later.

When to export

  • The drawing’s content (as-built, survey, design) must go into a GIS or a database.
  • Someone else needs the data as GIS features with attributes, not as a drawing.
  • You are updating a GIS from the field or design.

A simple rule

Connect to reference data, import to base data you will modify or deliver, and export what the GIS has to keep. The next sections go through each in detail.


Data Connect: Working With Live GIS Data

What it is

Map 3D uses an open-source technology called FDO (Feature Data Objects) to talk to many kinds of data sources through providers. A data connection links the drawing to a source, and its layers appear in the Display Manager (a panel that controls how data is drawn), where you can style them, query them and, with some sources, edit them.

What you can connect to

The list of providers depends on the version and on what is installed. Typically it includes several of:

  • File-based formats, such as Shapefile, SDF (Autodesk’s own file format) and SQLite-based formats.
  • Databases, such as Oracle Spatial, SQL Server spatial and PostGIS, and others through ODBC or OGR-based providers.
  • Raster data, such as GeoTIFF and other image formats, usually with a world file or embedded georeferencing.
  • Web services: WMS for maps and WFS for features. See Intro to Web GIS APIs and OGC Standards (WMS, WFS, WMTS).
  • Other GIS formats, through a provider that uses the GDAL/OGR libraries, when available.

Always check the Data Connect dialog in your version to see what it offers. Esri file geodatabases, in particular, may need a provider or an alternative route, such as exporting to an open format first. See Shapefile vs. GeoJSON vs. GeoPackage: Which Format to Use?

How to connect, step by step

  1. Open the Data Connect tool (the Map 3D MAPCONNECT command, found on the Home or Map ribbon under the data connection tools).
  2. Choose the provider, such as Shapefile, or a database.
  3. Enter the connection details: a file or folder, or a server, database name and credentials. Test the connection.
  4. Select the feature classes (layers) you want to add. The dialog lists them.
  5. Set the coordinate system if the source has none (many Shapefiles lack a .prj). Override it only when you are sure. See Missing or Unknown Projection: How to Fix It.
  6. Add to the map. The layers appear in the Display Manager.
  7. Style them: colors, line types, labels and themes, by feature property.
  8. Filter them: show only the features you need, with a filter (an expression on attributes), or limit to an area.
  9. Check that they line up with your drawing and with a reference.

Coordinate systems and data connections

For a connection to line up correctly, the drawing and the source must each have a correct coordinate system. If both do, Map 3D transforms on the fly, and the connected data is drawn in the drawing’s system. If the source has no system, or a wrong one, it is drawn wrongly. If the drawing has none, there is nothing to transform to. This is the situation of my surveyor friend. See Coordinate Systems in AutoCAD Map 3D and Civil 3D Explained and Layer Not Aligning? Solving CRS Mismatch Problems.

Working efficiently with large data

  • Use filters and map extents so that only the needed features are read.
  • Keep scale ranges for layers: show detailed layers only when zoomed in.
  • Use indexed data sources (spatial databases and files with indexes).
  • Avoid connecting to whole national datasets when you need a district.
  • Use the network wisely: data on slow networks, or web services, may make the drawing sluggish. See AutoCAD Map 3D and Civil 3D Slow or Crashing.

Editing connected data

Depending on the provider, you may be able to edit the features at their source (a database, an SDF file), with checkout and save-back. Check what your source supports, set up permissions, and do not edit shared data without a clear process. For authoritative databases, editing is typically done in the GIS, and CAD is used for viewing.

Bringing selected features into the drawing

You can query the connected data (by location or attribute) and save the results into the drawing as objects, as a controlled copy. This is the recommended way to take a snapshot of just what you need for design, while the full dataset stays in its source.


Importing: Copying GIS Data Into the Drawing

What it does

The Map Import tool (MAPIMPORT) reads a GIS file and creates drawing objects, with options for how to treat layers, attributes and coordinate systems. It converts, and the resulting objects are independent of the source.

What you can import

Typically Shapefile, MapInfo files, SDF, GML, and several other GIS formats, and raster images. The list varies. Check your version.

The options that matter

The import dialog has several tabs or sections. The ones that matter most:

1. Input files and layers

Choose the files, and the layers or feature classes within them. Import only what you need.

2. Coordinate system

  • Assign the source’s coordinate system if the file lacks one (only when you are certain).
  • Transform to the drawing’s coordinate system, which is the default and usually what you want.
  • Do not import without a coordinate system unless you have a reason. This is the source of the “data in the wrong place” problem.

3. Layer mapping

Decide how the incoming features are assigned to drawing layers.

  • All features on one layer.
  • Layers from a field value, such as “ROAD_CLASS”, which creates a layer for each class, giving you a structured drawing.
  • A layer name pattern.

Think about how designers will use the layers, and name them according to the project’s standard.

4. Data (attributes)

Choose what happens to the attribute table:

Choose the option that matches how you will use the data later. If the drawing will be exported again, object data is the best choice, because it round-trips.

5. Geometry handling

  • Points can become AutoCAD points, or blocks (symbols) inserted at each location.
  • Lines and polygons become polylines, with options for closing polygons.
  • Polygon centroids and labels.
  • Attention to 3D: whether to use elevation fields.

6. Filters and area

  • Import only a window, or only features matching a filter, to avoid bringing in a whole country.
  • Limit by attribute, such as “status = in service”.

7. Clean-up and topology options

Some versions allow creating topology or cleaning during import. See Drawing Cleanup in AutoCAD Map 3D Explained.

Steps

  1. Prepare the data on the GIS side (see below): clip to the area, define the CRS, rename fields and remove what you don’t need.
  2. Open the Map Import tool.
  3. Choose the format and the file.
  4. Select layers.
  5. Set the coordinate system (assign if missing, then transform).
  6. Set the layer mapping, the data options and filters.
  7. Run the import on a small test area first.
  8. Inspect: the position, the layers, the object data, the counts.
  9. Run the full import if all is well.
  10. Save a record: the source, date, options and the coordinate system, in the drawing notes or the project metadata.

Importing rasters

Georeferenced images, such as orthophotos, can be inserted or connected with their coordinate system. They need a world file or embedded georeferencing, and a defined system. See Aerial Imagery and Rasters in AutoCAD Map 3D and Civil 3D.


Exporting: From Drawing to GIS

What it does

The Map Export tool (MAPEXPORT) writes drawing objects as GIS features, with their geometry and attributes, into a GIS file or database.

What you can export to

Typically Shapefile, MapInfo files, SDF, GML and other formats, and some databases. The list varies by version. For anything else, export to an open format first, such as a Shapefile, then convert it with GDAL or a GIS. See Best Free and Open-Source GIS Tools.

The options that matter

1. Which objects

  • Selected objects, or all.
  • By layer, by object type or by object data.
  • A query result.

2. Layer and geometry grouping

GIS formats like Shapefile store one geometry type per file. The exporter therefore creates separate outputs for points, lines and polygons. Decide how drawing layers map to output files. A clean drawing, with one feature type per layer, produces clean files.

3. Attributes (data)

Choose which object data tables, block attributes and object properties become fields, and map their names. This is where data quality is made or lost:

  • Field name length: Shapefile limits names to 10 characters. Design for it, or map names manually. See Shapefile Limitations and Encoding Problems (Field Names, UTF-8).
  • Types: check that numbers, text and dates keep their types.
  • Multiple records per object: decide how to handle them.
  • Include layer name, handle or ID fields, so that features can be traced back.

4. Coordinate system

  • Assign the drawing’s coordinate system to the output (so that the .prj is written).
  • Transform to another system if the receiver needs it. For example, from the project’s UTM zone to the national grid, with the right datum transformation.
  • Confirm the units.

5. Closed polylines and polygons

Decide whether closed polylines become polygons. In GIS terms, that is what you almost always want for boundaries, parcels and buildings. Make sure the drawing has closed, clean shapes.

6. Text and annotation

Text objects don’t map neatly to GIS. Options include exporting them as points with a text attribute, or as annotation. Don’t expect typographic fidelity.

7. Curves

Arcs and curves are converted to segments in many formats. Choose a suitable tolerance.

Steps

  1. Clean the drawing: close polygons, connect lines, remove duplicates and non-feature content. See Drawing Cleanup in AutoCAD Map 3D Explained.
  2. Check the coordinate system and units.
  3. Attach the attributes that you need.
  4. Select the objects to export.
  5. Open the export tool and choose the format and output location.
  6. Map the layers, fields and geometry types.
  7. Assign the coordinate system.
  8. Export a small test, and open it in your GIS to check position, attributes and geometry.
  9. Run the complete export.
  10. Validate with the checklist below.
  11. Deliver with metadata: coordinate system, date, source, accuracy and field descriptions.

Exporting from Civil 3D

Civil 3D includes GIS export and import capabilities derived from Map 3D, together with its own export options (such as LandXML for surfaces, alignments and parcels). For GIS delivery:

  • Convert civil objects to basic geometry or to exportable features where needed. Civil 3D objects (surfaces, alignments, pipes) are custom objects that other software may not understand.
  • Export parcels, alignments and pipe networks to a GIS format with their properties. Look for the GIS export tools in your version.
  • Use LandXML to exchange surfaces and linear designs with other civil software.
  • Document which Civil 3D properties are included.

See Parcels, Alignments and Corridors in Civil 3D: A GIS Perspective, Surfaces and TIN Models in Civil 3D: Slope, Volumes and Watersheds and Civil 3D and GIS in Land Development and Surveying.


Preparing Data on the GIS Side

Most import problems are solved before the import, in the GIS. A short preparation checklist for data that you will send to CAD users or load in Map 3D:

  1. Check and define the coordinate system. Provide the EPSG code, the units and the vertical datum. If the CAD team works in another system, reproject with the proper transformation. See Map Projections: How to Choose the Right One.
  2. Clip to the area of interest, with a margin. Don’t send a whole country.
  3. Select the layers and fields they need.
  4. Clean the geometry: fix invalid shapes, remove duplicates and slivers. See How to Fix Invalid Geometry Errors.
  5. Simplify attribute tables: drop unused fields, use short and clear names, and design for the target.
  6. Use a format they can read: a Shapefile or GeoPackage for GIS-like imports, DXF for linework. Ask what they prefer.
  7. Separate geometry types into separate layers.
  8. Check the encoding of text. See Shapefile Limitations and Encoding Problems (Field Names, UTF-8).
  9. Provide a README: layers, fields, coordinate system, date and source.
  10. Test the import yourself, on a copy, if you can.

With GDAL, many of these steps are one command:

# Clip a national layer to a project area (a polygon in a GeoPackage), reproject to the project CRS,
# and write a Shapefile with UTF-8 text and a limited set of fields, ready for import into CAD software
ogr2ogr -f "ESRI Shapefile" parcels_project.shp national_parcels.gpkg parcels \
  -clipsrc project_area.gpkg -clipsrclayer area \
  -t_srs EPSG:32631 \
  -select parcel_id,owner,area_m2,land_use \
  -lco ENCODING=UTF-8

(Check the layer names with ogrinfo. Choose the CRS suited to the project.) The shortened field list and UTF-8 encoding avoid several of the problems described in the Shapefile guide.


After the Transfer: What to Check

For imports and connections:

  • Position: do the features line up with the survey control, a reference map and the cadastre, at several places?
  • Scale: are the sizes right? Measure a known distance.
  • Counts: the same number of features as in the source?
  • Attributes: are the fields there, with the right values and types?
  • Layers: are the features on the expected layers?
  • Geometry: polygons closed? Lines connected?
  • Coordinate system and transformation: documented?
  • Performance: is the drawing still manageable?

For exports:

  • Open the output in a GIS (QGIS or ArcGIS) and compare with the drawing.
  • Check position with a basemap and control points.
  • Check the CRS in the file (the .prj).
  • Check the attributes: names, values, types, encoding.
  • Check geometry types and validity.
  • Check counts: objects exported against objects selected.
  • Check topology where it matters. See Fixing Topology Errors and Overlaps.
  • Look for what was lost: text, hatches, curves, blocks, styles.

A short script can automate the comparison of an export:

import geopandas as gpd

gdf = gpd.read_file("export_pipes.shp")

print("CRS:", gdf.crs)
print("Features:", len(gdf))
print("Geometry types:", gdf.geom_type.value_counts().to_dict())
print("Invalid:", (~gdf.is_valid).sum())
print("Empty or null:", (gdf.geometry.is_empty | gdf.geometry.isna()).sum())
print(gdf.isna().sum())                       # missing values per field
print(gdf.describe(include="all").T.head(15))

See GeoPandas and Shapely: Vector Data in Python.


A Worked Example: Parcels Into a Design Drawing, and Design Back to the GIS

Situation: a road improvement project in Civil 3D (UTM zone 31N, meters) needs the municipal parcels as a base. When the design is complete, the proposed right-of-way and the new drainage must be delivered to the municipality’s GIS.

Into the design

  1. Agree on the coordinate system with the municipality: the project’s CRS, as an EPSG code, units in meters, vertical datum stated.
  2. The GIS team prepares the extract: clips the parcels to the project corridor with a 100-meter margin, reprojects them to the project CRS using the official transformation, fixes invalid geometry, keeps four fields (parcel ID, owner, area, land use), writes a GeoPackage or a Shapefile with UTF-8, and sends a README.
  3. The design team connects to the data using Data Connect (or imports it, if they want to edit or send the drawing outside), checking that the coordinate system is recognized.
  4. Check the position against the surveyor’s control points and the road edge. The parcel corners agree within the expected tolerance.
  5. Style the parcels by land use, and label them by ID.
  6. Query the parcels crossed by the proposed right-of-way, and save them into the drawing as a controlled snapshot, so that the design is documented against a fixed version of the cadastre.
  7. Record the source, the date and the extract version.

Out to the GIS

  1. Clean the design objects: closed polylines for the right-of-way, connected lines for drainage, no duplicates, no dimensions.
  2. Attach attributes: for the drainage pipes, diameter, material, invert levels, status “proposed”; for the right-of-way, type and area.
  3. Export with the export tool, to separate files for lines and polygons, with the coordinate system assigned, and the field names mapped to the municipality’s schema.
  4. Validate in the GIS: the pipes connect, the polygons close and don’t overlap, the attributes are complete and the coordinates agree.
  5. Deliver with metadata, marking everything as “design”. When construction is complete, as-built survey replaces it, and the status changes.
  6. Close the loop: the municipality’s feedback on the structure of the data goes into the next project’s delivery specification. See CAD vs. GIS: What Is the Difference and When to Use Each?

Alternatives and Complements

You are not limited to Map 3D’s tools. Other routes can be faster, more flexible or the only option.


Troubleshooting

ProblemLikely causeWhat to do
Imported data appears far from the drawing, or tinyNo coordinate system on one side, or a mismatchAssign the right system, and transform. See Missing or Unknown Projection: How to Fix It
Data is shifted by a constant amountDatum difference, or grid versus groundCheck the transformation. See Layer Not Aligning? Solving CRS Mismatch Problems
Features are 1,000 or 3.28 times the right sizeUnitsCheck the drawing and coordinate system units
Attributes missing after importThe data option was set to ignoreRe-import with object data enabled
Attributes missing after exportFields not mapped, or the data is in text onlyMap object data to fields. Create attributes first
Field names are cut or renamedShapefile 10-character limitDesign short names, or use a different format
Text is garbledEncoding mismatchSet UTF-8, or the right code page
The drawing is slow after connectingToo much data, no filter, slow networkFilter, limit by area, use scale ranges
Connection failsProvider not available, credentials, networkCheck the provider list, test the connection, ask the administrator
Export creates many filesOne geometry type per fileExpected. Plan the layer mapping
Polygons export as linesPolylines aren’t closed, or the option wasn’t setClose polylines, set the polygon option
Civil 3D objects don’t exportCustom objectsConvert to basic geometry, or use the GIS export tools, or LandXML
Edits to connected data don’t saveThe provider is read-only, or permissionsCheck the provider and permissions

See also DWG Import Errors in QGIS and ArcGIS (Blocks, 3D Faces, Encoding) and AutoCAD Map 3D and Civil 3D Slow or Crashing.


Best Practices

  • Agree on the coordinate system, units and vertical datum in writing before any transfer.
  • Use Data Connect for reference data, and import snapshots of what you need.
  • Always test on a small area first.
  • Prepare the data on the GIS side: clip, reproject, clean and trim the fields.
  • Provide a README and metadata with every transfer.
  • Keep unique IDs on features so that updates can be matched.
  • Decide where the authoritative data lives, and don’t edit it in two places.
  • Record the source, the date and the options you used.
  • Export open formats for exchange and archive.
  • Validate after every transfer.
  • Standardize layer names and field schemas across projects.
  • Write delivery specifications for contractors and consultants.
  • Automate repetitive transfers with scripts or integration tools.

Common Mistakes

  • Importing without a coordinate system, then moving and rotating by hand.
  • Confusing import and connect, and ending up with stale copies in many drawings.
  • Importing whole datasets when only a small area is needed.
  • Ignoring attributes during import, and having no data to export later.
  • Exporting dirty drawings, with open polygons, duplicate lines and drafting content.
  • Assuming that object data travels in a DXF.
  • Using the 10-character Shapefile limit without checking field names.
  • Mixing design and as-built data in the same outputs.
  • Skipping verification in the GIS.
  • Not documenting the transformation and settings.
  • Sending huge, unfiltered data to designers.
  • Editing connected, shared data without a process.
  • Forgetting the encoding of text.
  • Doing by hand what a script or an integration tool could repeat.

Final Thoughts

My surveyor friend’s morning ritual wasn’t a failure of skill. It was a failure of communication across a boundary, in which neither side knew what the other needed. The tools in Map 3D for importing, connecting and exporting are mature and capable. But they can’t decide for you which coordinate system is right, which fields matter or where the authoritative data should live. Those decisions belong to people, and they are best made together, at the start.

Try this on your next project. Before any data moves, hold a ten-minute conversation between the designers and the GIS team, and write down five things: the coordinate system, the units, the layers, the fields and who owns the master copy. Then use the tools. You will spend your mornings on the work, not on the rescue.

Where to go next: prepare drawings for export with Drawing Cleanup in AutoCAD Map 3D Explained, and go deeper into the program itself with AutoCAD Map 3D Beginner’s Guide.

Rachid Khouri

Rachid Khouri

Rachid Khouri is a CAD, BIM and GIS professional, Autodesk Authorized Developer, trainer and technical author with more than 30 years of experience, working with AutoCAD since 1992. He founded GISauthority.com to share practical guidance on GIS and spatial technologies.