blender-mapping-tools/import_geotiff_panel.py

26 lines
1.1 KiB
Python

import bpy
from bpy.props import StringProperty
from .create_mesh_from_geotiff import OBJECT_OT_create_mesh_from_geotiff
from .select_geotiff_file import OBJECT_OT_select_geotiff_file
class OBJECT_PT_import_geotiff(bpy.types.Panel):
"""Import GeoTIFF"""
bl_idname="IMPORT_GEOTIFF_PT_layout"
bl_label = "Import GeoTIFF"
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = "Mapping"
def draw(self, context):
column = self.layout.column()
geotiff_filename_row = column.row()
geotiff_filename_row.prop(context.scene, "mapping_extension_geotiff_filename")
geotiff_filename_row.operator(OBJECT_OT_select_geotiff_file.bl_idname,
icon='FILEBROWSER',
text='')
#column.prop(context.scene, "mapping_extension_map_origin")
column.prop(context.scene, "mapping_extension_map_scale")
column.prop(context.scene, "mapping_extension_vertical_exaggeration")
column.operator(OBJECT_OT_create_mesh_from_geotiff.bl_idname)