Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Corensia

Pages: [1]
1
Hello Everyone,

I'm working on a network processing script to create orthomosaic tiles in zip format (RasterFormatXYZ) but for some reason zoom levels are not being applied. When exporting using the code below, the index.html file shows zoom level of 0, with folders from 0 to 6 instead of 12 to 23.

What could be causing this problem? Any assistance would be greatly appreciated!

Code: [Select]
import Metashape, sys

SERVER_IP = "192.168.0.101"

root = "//192.168.0.137/shared"
Metashape.app.settings.network_path = "//192.168.0.137/shared"
project_path = "/projects/test.psx"
output_folder = root + "/output"

doc = Metashape.Document()
doc.open(root + project_path)
chunk = doc.chunk

tasks = []
task = Metashape.Tasks.ExportRaster()
task.path = output_folder + '/orthomosaic_tile.zip'
task.source_data = Metashape.OrthomosaicData
task.format = Metashape.RasterFormat.RasterFormatXYZ
task.raster_transform = Metashape.RasterTransformType.RasterTransformNone
task.min_zoom_level = 12
task.max_zoom_level = 23
tasks.append(task)

network_tasks = []
for task in tasks:
if task.target == Metashape.Tasks.DocumentTarget:
network_tasks.append(task.toNetworkTask(doc))
else:
network_tasks.append(task.toNetworkTask(chunk))

client = Metashape.NetworkClient()
client.connect(SERVER_IP)
batch_id = client.createBatch(doc.path, network_tasks)
client.setBatchPaused(batch_id, paused=False)

2
Python and Java API / Export profile of shapes using script
« on: November 30, 2022, 08:35:39 AM »
Hi,

Using the GUI, it's possible to select a line shape, right click and 'Measure', and finally click the 'Profile' tab to see the profile of the line. Additionally, you can save the profile as a shapefile.
Is this task possible using python scripting? Im having trouble finding it in the python API guide.

Any help/tips would be appreciated. Thank you!

David

3
General / Thermal Image Alignment using RGB Images
« on: November 24, 2022, 10:39:05 AM »
Hello everyone,

I'm trying to process drone thermal images taken inside of a tunnel  :-[
 
Most of the images fail to align which is understandable as there is no location data and there are very few key points (<10,000 per image).
The RGB images taken simultaneously (using the M300 with H20T) all align without any problems.

So I'm wondering if there is any way to align the RGB images, transfer the orientation of the RGB images to the corresponding Thermal images, and use those orientation parameters to help with alignment.
Would this be possible? Would this even help with Thermal alignment?

Thank you for your consideration!

David

4
General / Setting to make shapes not show when behind model?
« on: August 22, 2022, 11:46:53 AM »
Dear Agisoft,

When a shape layer is loaded with a 3D model, the shape layer is always visible even when it is behind part of the model and should be blocked from view.

There are advantages to this setting but when taking screenshots of cadastral shape layers on top of 3D city models at an oblique angle, it looks like the shape layer is 'floating' above the model because it is always visible through the model. Being able to control whether the shape is always visible or not would be very helpful!

So I'm wondering, is there a setting, tweak, or script that will make the shape not visible when it is behind part of the model?

Thank you for your time and consideration.

David

5
General / RPM Install file?
« on: August 05, 2021, 05:44:29 AM »
Is there an RPM install file for Metashape? I'm having trouble getting the tar.gz installation working.

6
General / Mesh texture not visible on laptop?
« on: April 29, 2021, 08:42:13 AM »
Dear Agisoft,

There's an odd occurrence that we noticed where textures processed on two of our laptops both show up as solid black textures (shaded models show up perfectly colored). I've attached the processing parameters for the laptop and also the exact same settings for our desktop where the texture appears just fine.

This started recently (within 1-2 weeks) and happens for every project on those laptops. FYI, the same project opened on the desktop loads the textures without a problem. For GPUs, one laptop is using RTX 2060 Max-Q and the other is an GeForce 940MX. Both are using latest NVIDIA graphic drivers and latest version of Metashape.

Any idea what might be causing this?

7
Bug Reports / CL_INVALID_KERNEL_ARGS at line 442
« on: July 30, 2020, 04:27:49 AM »
This message appeared and I'm not sure what to do about it. Please advise.

8
Feature Requests / Polygon Shape Label Positioning
« on: February 03, 2020, 05:02:03 AM »
Dear Agisoft,

Currently all labels for shapes are positioned on the center of a line. This works great for lines and single polygon shapes. However for tight-fitted polygons in a cadastral map, it doesn't work too well. As can be seen in the attached image it is difficult to discern which polygon is being labeled.

Could a feature be added to position the labels of polygons somewhere inside the area of the polygon?

Thank you for your time and consideration!


Warm regards,

David

9
Feature Requests / Is there a way to change the Basemap displayed?
« on: February 03, 2020, 04:47:47 AM »
Dear Agisoft,

I'm really loving the new basemap feature that was added so first of all props. However I was thinking that it would be nice if we could change the basemap source to use the map that best fits our needs. Is there anyway for us to change the basemap used (maybe via a python script) if we had the WMS/tiled web map information?

Warm regards,

David

10
General / Increasing Distributed Processing Speed
« on: July 09, 2019, 03:51:41 AM »
Dear Alexey,

We've recently been looking into integrating distributed local network processing for faster processing times and as a result we did some tests in a computer lab using up to 17 computers connected in a LAN. However the results were somewhat unexpected and I'll share the summary below.

Project: 1400 images
Align Photo: Highest
Dense Cloud: High, Aggressive
DEM, Ortho: default

All PC Specs
CPU: I7-7700
GPU: 1050
RAM: 16 GB

17 PCs LAN: Total time - 9hr 21min
8 PCs LAN: Total time - 9hr 41min
5 PCs LAN (**PC where project file is saved also added as a node**): Total time - 5hr 53min (???)
1 PC: Total time - 16hr 47min

We also compared this to our office's processing PC (i9-9900K, P4000, 64GB): Total time - 11hr 41min

From the results above it seems clear that using the PC where the project was saved as a node made the most difference and adding 17 PCs but not using the PC where the project was saved didn't even halve the processing time of using just 1 PC. It seems like there is a bottleneck occurring with the processing due to data transfer speed limits across the network. Do you have any tips on how we could get better results using 10+ computers?

Thank you in advance,
David

11
General / Error importing Shapefile
« on: March 18, 2019, 08:29:15 AM »
Dear Agisoft,

I'm getting a reproducible error when trying to import the attached shapefile. The error message is, "Warning! Can't load shape attributes". However the attributes needs to be loaded for what I'm trying to do. Could you please look into what might be causing this?

Thank you

12
General / Adding Labels to Polygons Imported from Shapefile (SHP)
« on: January 03, 2019, 08:42:08 AM »
I have successfully overlaid my orthomosaic image over a geotagged shapefile made up of cadastral polygons thanks to your advice from "http://www.agisoft.com/forum/index.php?topic=6880.0" and it looks great.

Now I am now trying to get Metashape to display the values of one of my shapefile attributes as the label for each polygon without having to manually type in every value. While being time-consuming, manually inputting the label names also puts them over a vertex of the polygon as opposed to being in the center of the polygon (like in QGIS for example). This makes it hard to figure out which polygon the label is attached to since the polygons are all adjacent to each other.

So my questions are:
1) Is there anyway to set the values of a shapefile attribute as the label of every polygon in that shapefile?
2) Is it possible to move the label of the polygon so that it is located at the center of the polygon?

Thank you in advance!

Pages: [1]