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.


Messages - szabo.robert@bimlab.hu

Pages: [1]
1
Python and Java API / Volume report script
« on: July 05, 2019, 10:34:44 PM »
Dear Agisoft Support!

I am looking for a method to calculate all the shapes volumes in a chunk on a DEM model and export them to a volume report.
I would like to do this after with all the chunks in a project.

Similar to Right-click-on-a-drawn-polygon/Measure/Volume/Save

2
Python and Java API / Re: Crop dense cloud by shape
« on: July 05, 2019, 10:16:33 PM »
Hello SamT,

We'll try to implement the missing API call for the dense cloud points selection based on the polygonal shape in the next version update.

My company is looking forward to it as well! :)
We would like to use this API as well in our script.

4
Python and Java API / Re: KML export script
« on: April 02, 2019, 11:31:08 PM »
Hello szabo.robert,

The path argument in exportShapes operation should point to the file (with KML extension in your case), however, it seems to be a path to the folder instead.

Dear Alexey!

How can I script the path name to be an argument, so I can use this script in batch processes?

5
Python and Java API / Re: Batch (XML) to python script
« on: April 02, 2019, 11:09:07 PM »
I would be sooo grateful if someone should help in this as well!

6
Python and Java API / Re: KML export script
« on: April 02, 2019, 10:58:06 PM »
Thank you for the very quick answer!
Now it works:

chunk=Metashape.app.document.chunk
shapepath=Metashape.app.getExistingDirectory()
kmlformat=Metashape.ShapesFormatKML
dxfformat=Metashape.ShapesFormatDXF
kmlprojection=Metashape.CoordinateSystem("EPSG::4326")
dxfprojection=Metashape.CoordinateSystem("EPSG::23700")

chunk.exportShapes(path=shapepath+"\\depo.kml", format=kmlformat, projection=kmlprojection, polygons_as_polylines=True, export_labels=False, export_attributes=True)
chunk.exportShapes(path=shapepath+"\\depo.dxf", format=dxfformat, projection=dxfprojection, polygons_as_polylines=True, export_labels=False, export_attributes=True)

7
Python and Java API / KML export script
« on: April 02, 2019, 09:27:06 PM »
Dear Support!

Could you please help me, what is wrong with my script below?
I get an error message that says: "Can't create file. Access denied. (5): (*path to be exported)"
Attached the error message window.

chunk=Metashape.app.document.chunk
kmlpath=Metashape.app.getExistingDirectory("Export mappa")
kmlformat=Metashape.ShapesFormatKML
kmlprojection=Metashape.CoordinateSystem("EPSG::4326")
chunk.exportShapes(path=kmlpath, format=kmlformat, projection=kmlprojection, polygons_as_polylines=True, export_labels=False, export_attributes=True)

Thanks for your support!

Pages: [1]