- $shpPath = "d:\Web\PlatformModel\ruoyi-admin\uploads\models\geojson\803381497aa04afe943bb0a04a6ac30c\流域.shp"
- $url = "http://localhost:8448/cesium/geojson/convert"
- $form = @{
- shpFile = Get-Item $shpPath
- }
- try {
- $response = Invoke-RestMethod -Uri $url -Method Post -Form $form -TimeoutSec 30
- Write-Host $response
- } catch {
- Write-Host "Error: $_"
- }
|