Skip to content

ParthCv/precisely-3D-city-mapping

Repository files navigation

3D City Mapping

Overview

This is a commandline tool and MapInfo Pro add-in that reads files containing 3D models of cities stored inside data models and renders them into a 3D Window. Current program can read only .xml and .city.gml files. For .city.json files, the program first converts the file to a GML file and then renders the file into the window.

Requirements

Installation For Commandline Tool

  1. Download or clone from the repository to your local device
git clone https://github.com/ParthCv/precisely-CityGML-mapping.git
  1. Open the terminal inside the project
  2. Run the following command to run the program
python driver.py data/twobuildings.city.gml --lod 2

Commandline Arguments

  • filepath - This is the path to the file containing the 3D model. The filepath should be the path to a valid file and should be of .gml or .xml extension

  • lod - This the level of detail that needs to be set while reading the file. This is an optional argument and has a default value of 3. lod can range from 0 to 4.

  • force - This is to force the overwriting of .gml a file if it's .json of the same name exist is it already exist while converting the json file. This is an optional argument and default is always false

Installation for Mapinfo Pro Add-in

  1. Download or clone from the repository to your local device
git clone https://github.com/ParthCv/precisely-CityGML-mapping.git
  1. Open MapInfo Pro
  2. Create a blank workspace
  3. Run the program mapinfo_customization_dialogs.py inside mapinfo_customization_dialogs/mapinfo_customization_dialogs_ParthCV
  4. Click on the new button in the home tab called "Open 3d Surface"
  5. Add all the details in the pop-up dialog i.e. file, lod and force.
  6. Click ok and run the program.

About

A command line tool and MapInfo Pro add-in to render GML3 3D city models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published