yoooger
This commit is contained in:
parent
0f13afcbb5
commit
8adada2f76
@ -7,7 +7,6 @@ import logging
|
|||||||
import uuid
|
import uuid
|
||||||
import os
|
import os
|
||||||
import asyncio
|
import asyncio
|
||||||
from minio import Minio
|
|
||||||
from ai_image import process_images # 你实现的图片处理函数
|
from ai_image import process_images # 你实现的图片处理函数
|
||||||
from queue import Queue
|
from queue import Queue
|
||||||
import gdal2tiles as gdal2tiles
|
import gdal2tiles as gdal2tiles
|
||||||
@ -79,21 +78,6 @@ app.config.update({
|
|||||||
map_tile_blueprint = Blueprint('map', url_prefix='/map/')
|
map_tile_blueprint = Blueprint('map', url_prefix='/map/')
|
||||||
app.blueprint(map_tile_blueprint)
|
app.blueprint(map_tile_blueprint)
|
||||||
|
|
||||||
# # 切割地图API
|
|
||||||
# @map_tile_blueprint.post("/tile")
|
|
||||||
# async def map_tile_api(request):
|
|
||||||
# try:
|
|
||||||
# # 解析必要字段
|
|
||||||
# tile_data = request.json
|
|
||||||
# tif_url = tile_data.get("tif_url")
|
|
||||||
# prj_url = tile_data.get("prj_url")
|
|
||||||
# zoom_levels = tile_data.get("zoom_levels", "1-18")
|
|
||||||
# result = asyncio.run(process_tiling(tif_url, prj_url, zoom_levels))
|
|
||||||
# return json_response(result)
|
|
||||||
# except Exception as e:
|
|
||||||
# logger.error(f"Error occurred while parsing request: {str(e)}", exc_info=True)
|
|
||||||
# return json_response({f"{str(e)}"})
|
|
||||||
|
|
||||||
#语义识别
|
#语义识别
|
||||||
@map_tile_blueprint.post("/uav")
|
@map_tile_blueprint.post("/uav")
|
||||||
async def process_handler(request):
|
async def process_handler(request):
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
sql:
|
|
||||||
host: '47.108.71.9'
|
|
||||||
port: 5432
|
|
||||||
dbname: 'postgres'
|
|
||||||
user: 'postgres'
|
|
||||||
password: 'root'
|
|
@ -1,5 +0,0 @@
|
|||||||
minio:
|
|
||||||
endpoint: "222.212.85.86:9000"
|
|
||||||
access_key: "adminjdskfj"
|
|
||||||
secret_key: "123456ksldjfal@Y"
|
|
||||||
secure: false
|
|
Loading…
x
Reference in New Issue
Block a user