How to convert a floor plan to IMDF, step by step
Converting a floor plan to IMDF means turning a drawing into georeferenced data: a venue, its buildings and levels, rooms and corridors as polygons, doors as lines, and named places tied to points inside them, using only the categories the standard allows. The result is a set of GeoJSON files plus a manifest, zipped. CAD files (DXF or DWG) convert far more reliably than PDFs, and the step most people underestimate is validation.
What does an IMDF file contain?
IMDF (Indoor Mapping Data Format) is an open standard, published by the OGC as Indoor Mapping Data Format 1.0.0. It is a folder of GeoJSON files, one per feature type, that reference each other by ID. The ones you need for a navigable building are:
| Feature type | What it represents |
|---|---|
| venue | The whole site, with an address and a category |
| building | A building in the venue |
| footprint | The building outline seen from above |
| level | One floor, as a polygon, with an ordinal (0, 1, -1) |
| unit | A room, corridor, stairwell or any enclosed space on a level |
| opening | A door or passage between spaces, as a line |
| anchor | A point inside a unit where routes and labels attach |
| occupant | A shop, office or service, linked to an anchor |
| amenity | Restrooms, ATMs, charging stations and similar |
| fixture, section, address | Fixed objects, zones within a level, and street addresses |
The standard also defines detail, geofence, kiosk and relationship features. For background on why the format exists, see IMDF explained.
Which source file should I start from?
In order of how well they convert: a DXF or DWG with a clean layer of room polygons, then a PDF exported from CAD, then a scan or photo. A PDF converted from CAD often carries thousands of loose line entities that are noise rather than rooms, so it is worth checking whether the architect's CAD file has a dedicated layer for units and room labels before tracing from a PDF. Scans and photos have to be traced by hand.
Step 1: Georeference every level
Floor plans use local coordinates; IMDF needs real-world latitude and longitude (WGS84). The method that holds up:
- Draw or fix the level polygons first. In a GIS such as QGIS, align each level outline to the basemap. These polygons are the ground truth and the script never overwrites them.
- Derive a transform per floor, not one for the whole building. Match the bounding box of that floor's room polygons to the bounding box of its level polygon. A single global transform rarely lines up every floor.
- Clip every unit to its level. Anything that sticks out gets cut at the level boundary.
- Create the walkway from what is left. Corridor space is the level polygon minus the rooms.
Step 2: Build the features and their references
Create the venue, then buildings and footprints, then levels, then units on each level. Every unit points to its level, every occupant points to an anchor, and every anchor points to its unit. Names go in the right language fields. Shop and tenant names should match the name the business uses publicly, so that the map and a search result agree.
Step 3: Use only valid categories
Each feature type has a fixed list of categories taken from the standard, for example room, walkway, stairs, elevator, escalator, restroom, lobby and parking for units, and pedestrian, pedestrian.principal, service and emergencyexit for openings. Two rules cause most rejections:
- Never invent a category. Plausible names such as
shoppingcenter,retailor a baredoorare not in the standard, and the file fails. unspecifiedis not valid everywhere. It is allowed for levels, buildings, amenities and units, but not for occupants, fixtures or sections, which need a real category.
Step 4: Make the geometry routable
A file can be valid and still produce bad routes. What matters:
- Rooms must share an edge with the corridor or walkway they open onto, so the route can reach them.
- Two adjacent rooms should not share vertices. Leave a small gap (more than half a meter) between them, otherwise a route can cut through the wall instead of using the corridor.
- Every anchor must sit inside its unit, ideally near its center, or routes start from the wrong room.
- Place openings at the real door positions, on the edge of the spaces they connect.
- Escalators and elevators need to connect the levels they serve, or multi-floor routes fail.
Step 5: Validate before you submit
Run checks before the file goes anywhere: categories against the standard, every referenced ID resolving, every unit inside its level, address country and region codes in ISO 3166 format, and a valid manifest. The most common failures are a reference left pointing at a deleted feature (removing a level by hand leaves its units and openings orphaned), invented categories, and a missing manifest. Checking each of these in a script is far faster than discovering them in a rejection.
Step 6: Package it
Zip the GeoJSON files together with manifest.json (version, creation date and language). The manifest has to be in the archive. The result is the .imdf file you can load into a viewer, keep as your own data, or submit through a Content Partner to appear on Google Maps.
How long does it take, and can someone do it for me?
A building with a few floors and a clean CAD file takes a few business days; large or messy ones can take up to two weeks. If you would rather not run the pipeline yourself, Hallar does this conversion for a project fee per building, from €700 (see how much an indoor map costs), and also builds the 3D map and QR codes on top of the same file.
Keep reading: how to create an indoor map, IMDF explained and how to choose an indoor mapping provider.
Want your floor plans converted to IMDF?
Send them in any format. We convert, validate and deliver a map you can use. We reply within 24 hours.
Free demo · Reply within 24 hours · Prefer email? [email protected]