Overlay images - Intergraph Smart Materials - 5.1 - Help - Hexagon

Intergraph Smart Materials MobileScan Help (5.1)

Language
English
Product
Intergraph Smart Materials
Subproduct
MobileScan
Search by Category
Help
Smart Materials Mobile Scan Version
5.1

MobileScan uses Open Street Map to display the location of the materials on a map. MobileScan also provides the users to overlay geo-referenced images/geo tiff images on top of Open Street Map. Geo-referenced images can be captured using Unmanned Air Vehicles (UAV) or drones. These images provide you the real time view of materials on the ground in a warehouse.

This section describes the prerequisites and the procedures that you must follow in order to overlay images on the Open Street Map available on MobileScan.

  • TileMill, Python, and MBUtil are third party, free-to-use softwares. Exercise care when downloading the softwares.

  • TileMill software works with European Petroleum Survey Group (EPSG) codes.

Prerequisites for overlaying images as maps

How do I overlay images on Open Street map?

Overlaying a geo referenced image on to a map involves the following steps:

  1. Convert a geo referenced image to .MBTILES file.

  2. Extract .MBTiles to .png.

  3. Display the image tiles on MobileScan.

Convert a geo referenced image to .MBTiles

  1. Start a new project in TileMill application.

  2. Click on New Project, type a file name, and then click Add.

  3. Select the file name from the list and then click on Layers TileMill - Layers Icon.

  4. Click Add Layers.

  5. Select the .tif file in Datasource.

    The selected file must be a geo referencing image file.

  6. Select Custom from the SRS list.

  7. Type the SRS information that you received from the external vendor.

    To get the SRS value for a location:

    • Go to Spatial Reference website and search the EPSG code.

    • Click the EPSG link.

    • Click the Proj4js format link.

    • Select the Proj4js.defs["<EPSG Code>"] value and paste it in the SRS Custom field.

  8. Click Save & Style.

  9. Click Project Settings TimeMill - Project Settings.

  10. Adjust the bounds and then click Save.

  11. Delete other layers from the Layers list and the related code from the style.mss file.

  12. Save the file.

  13. Click Export and then select MBTiles.

  14. Click Export and then select View exports.

  15. Navigate to the following folder to view the exported file:

    <TileMills folder>\MapBox\Export\<filename.mbtiles>

Extract .MBTiles to .png

  1. Start a command prompt.

  2. Use cd command to navigate to the folder where Python is installed.

  3. Execute the following command:

    <Python folder> > python.exe <mbutil folder path>\mb-util <.mbtiles file location> <output file name with path>

    • The geo referenced image is converted into tiles and stored in the output folder mentioned in Step 3.

    • Ensure that the output folder does not exist before executing the command.

Display image tiles on the MobileScan map

  1. Copy the tiles folder structure of the output file.

  2. Navigate to <MobileScan folder>/Web/rest-api/Tiles and paste the output files folder.