kopia lustrzana https://github.com/OpenDroneMap/WebODM
Merge branch 'master' of https://github.com/OpenDroneMap/WebODM into mapapi
commit
9af1ee018b
|
@ -51,14 +51,13 @@ def export_raster(input, output, **opts):
|
||||||
output_raster = output
|
output_raster = output
|
||||||
jpg_background = 255 # white
|
jpg_background = 255 # white
|
||||||
|
|
||||||
# KMZ is special, we just export it as PNG with EPSG:4326
|
# KMZ is special, we just export it as GeoTIFF
|
||||||
# and then call GDAL to tile/package it
|
# and then call GDAL to tile/package it
|
||||||
kmz = export_format == "kmz"
|
kmz = export_format == "kmz"
|
||||||
if kmz:
|
if kmz:
|
||||||
export_format = "png"
|
export_format = "gtiff-rgb"
|
||||||
epsg = 4326
|
|
||||||
path_base, _ = os.path.splitext(output)
|
path_base, _ = os.path.splitext(output)
|
||||||
output_raster = path_base + ".png"
|
output_raster = path_base + ".kmz.tif"
|
||||||
|
|
||||||
if export_format == "jpg":
|
if export_format == "jpg":
|
||||||
driver = "JPEG"
|
driver = "JPEG"
|
||||||
|
@ -282,4 +281,4 @@ def export_raster(input, output, **opts):
|
||||||
if kmz:
|
if kmz:
|
||||||
subprocess.check_output(["gdal_translate", "-of", "KMLSUPEROVERLAY",
|
subprocess.check_output(["gdal_translate", "-of", "KMLSUPEROVERLAY",
|
||||||
"-co", "Name={}".format(name),
|
"-co", "Name={}".format(name),
|
||||||
"-co", "FORMAT=PNG", output_raster, output])
|
"-co", "FORMAT=AUTO", output_raster, output])
|
||||||
|
|
|
@ -219,7 +219,7 @@ class ProjectListItem extends React.Component {
|
||||||
|
|
||||||
try{
|
try{
|
||||||
if (file.status === "error"){
|
if (file.status === "error"){
|
||||||
if ((file.size / 1024) > this.dz.options.maxFilesize) {
|
if ((file.size / 1024 / 1024) > this.dz.options.maxFilesize) {
|
||||||
// Delete from upload queue
|
// Delete from upload queue
|
||||||
this.setUploadState({
|
this.setUploadState({
|
||||||
totalCount: this.state.upload.totalCount - 1,
|
totalCount: this.state.upload.totalCount - 1,
|
||||||
|
|
Ładowanie…
Reference in New Issue