GeneratePlyFile - Ply 3D files generation

Generate a 3D Ply file from a DEM and a color image.

Detailed description

Generate a 3D Ply file from a DEM and a color image.


This section describes in details the parameters available for this application. Table [1] presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is GeneratePlyFile .

[1]Table: Parameters table for Ply 3D files generation.
Parameter Key Parameter Name Parameter Type
indem The input DEM Input image
mode Conversion Mode Choices
mode dem Choice DEM
mode 3dgrid Choice 3D grid
map Output Cartographic Map Projection Choices
map utm Choice Universal Trans-Mercator (UTM)
map lambert2 Choice Lambert II Etendu
map lambert93 Choice Lambert93
map wgs Choice WGS 84
map epsg Choice EPSG Code Zone number Int
map.utm.northhem Northern Hemisphere Boolean
map.epsg.code EPSG Code Int
incolor The input color image Input image
out The output Ply file Output File name
inxml Load otb application from xml file XML input parameters file
outxml Save otb application to xml file XML output parameters file

The input DEM: The input DEM.

Conversion Mode Available choices are:

  • DEM: DEM conversion mode.
  • 3D grid: 3D grid conversion mode.

Output Cartographic Map Projection: Parameters of the output map projection to be used. Available choices are:

  • Universal Trans-Mercator (UTM): A system of transverse mercator projections dividing the surface of Earth between 80S and 84N latitude.
  • Zone number: The zone number ranges from 1 to 60 and allows defining the transverse mercator projection (along with the hemisphere).
  • Northern Hemisphere: The transverse mercator projections are defined by their zone number as well as the hemisphere. Activate this parameter if your image is in the northern hemisphere.
  • Lambert II Etendu: This is a Lambert Conformal Conic projection mainly used in France.
  • Lambert93: This is a Lambert 93 projection mainly used in France.
  • WGS 84: This is a Geographical projection.
  • EPSG Code: This code is a generic way of identifying map projections, and allows specifying a large amount of them. See to find which EPSG code is associated to your projection;.
  • EPSG Code: See to find which EPSG code is associated to your projection.

The input color image: The input color image.

The output Ply file: The output Ply file.

Load otb application from xml file: Load otb application from xml file.

Save otb application to xml file: Save otb application to xml file.


To run this example in command-line, use the following:

otbcli_GeneratePlyFile -indem image_dem.tif -out out.ply -incolor image_color.tif

To run this example from Python, use the following code snippet:


# Import the otb applications package
import otbApplication

# The following line creates an instance of the GeneratePlyFile application
GeneratePlyFile = otbApplication.Registry.CreateApplication("GeneratePlyFile")

# The following lines set all the application parameters:
GeneratePlyFile.SetParameterString("indem", "image_dem.tif")

GeneratePlyFile.SetParameterString("out", "out.ply")

GeneratePlyFile.SetParameterString("incolor", "image_color.tif")

# The following line execute the application


This application has been written by OTB-Team.