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 - SamT

Pages: [1] 2 3
1
General / Re: Constant vertical datum offset WKT
« on: May 31, 2021, 01:32:19 AM »
Thanks for the help Paulo. I think I'll need to do as you suggested.

2
General / Re: Constant vertical datum offset WKT
« on: May 28, 2021, 03:39:39 AM »
Thanks Paul that does get me closer.

I was hoping the below would work but no luck.

Code: [Select]
COMPD_CS["GDA94 / Custom Transverse Mercator",
PROJCS["GDA94 / Custom Transverse Mercator",
GEOGCS["GDA94",DATUM["Geocentric Datum of Australia 1994",
SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],
TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6283"]],
PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],
UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9102"]],AUTHORITY["EPSG","4283"]],
PROJECTION["Transverse_Mercator",AUTHORITY["EPSG","9807"]],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",120.95],
PARAMETER["scale_factor",0.999879],
PARAMETER["false_easting",446901.042],
PARAMETER["false_northing",2879773.273],
UNIT["metre",1,AUTHORITY["EPSG","9001"]]],
VERT_CS["Fixed offset",
VERT_DATUM["Fixed offset",2005],
PARAMETER["Vertical_Shift",3.155],
PARAMETER["Direction",1.0],
UNIT["metre",1,AUTHORITY["EPSG","9001"]]]]

I really need to be able to specify the offset in the WKT file.

3
General / Constant vertical datum offset WKT
« on: May 27, 2021, 07:18:19 AM »
Hi,

From the release notes for version 1.4.0
"Added support for constant vertical datum offsets."

Could someone please provide me with a simple example of a PRJ / WKT that contains this?

I would like to add a constant shift to this.
Code: [Select]
PROJCS["TEST",
GEOGCS["GCS_GDA_1994",
DATUM["D_GDA_1994",
SPHEROID["GRS_1980",6378137.0,298.257222101],
TOWGS84[0,0,0,0,0,0,0]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator"],
PARAMETER["False_Easting",446901.042],
PARAMETER["False_Northing",2879773.273],
PARAMETER["Central_Meridian",120.95],
PARAMETER["Scale_Factor",0.999879],
PARAMETER["Latitude_Of_Origin",0.0],
UNIT["Meter",1.0]]

Thanks,

Sam

4
General / Re: 1.7.3 Parallel Scheduling
« on: May 27, 2021, 01:03:31 AM »
Great!

Command line option for anyone interested.

Code: [Select]
--scheduling {parallel,sequential}    batch scheduling mode

5
General / Re: 1.7.3 Parallel Scheduling
« on: May 25, 2021, 12:57:57 AM »
That sounds like a great feature. How do I enable it?

6
General / 1.7.3 Parallel Scheduling
« on: May 24, 2021, 01:55:02 AM »
Hi!

Does anyone know what parallel scheduling does in 1.7.3? Can't find any info on it.

7
Bug Reports / Re: Export Model Clip
« on: August 11, 2020, 03:13:03 AM »
That is excellent thanks Alexey.

I was re-projecting the vertices to the shape CRS which was very time consuming.

8
Bug Reports / Re: Export Model Clip
« on: August 10, 2020, 01:21:23 AM »
Thanks Alexey,

Do you have an example script for cropping to a polygon with python? I have some code that does it but it is very slow.

9
Bug Reports / Export Model Clip
« on: July 28, 2020, 04:26:40 AM »
Export model with clip to boundary shapes seems to use the convex hull of the shape rather than the shape itself. Is this expected behavior?

10
This would be a handy feature!

11
Python and Java API / Export Report User Settings
« on: June 15, 2020, 01:02:34 AM »
Hi Everyone!

Having some trouble adding user settings to exportReport().

User manual specifies "list of (string, string) tuples" for the user_settings parameter.

Code: [Select]
import os

import Metashape

doc = Metashape.app.document
chunk = doc.chunk

user_settings = [('Test 1', 'Value 1'), ('Test 2', 'Value 2')]

output_file = os.path.join(os.path.join(os.environ['USERPROFILE']), 'Desktop/test.pdf')
chunk.exportReport(path=output_file, user_settings=user_settings)

Error: ValueError: Invalid argument value: user_settings

Metashape version 1.6.2

12
Python and Java API / Re: Network Task RunScript NumPy
« on: May 11, 2020, 12:58:10 AM »
Hi Alexey,

Did you manage to replicate this behavior or do you think it is just my system?

I have attached a minimum example.


13
Python and Java API / Re: Network Task RunScript NumPy
« on: April 29, 2020, 04:25:49 AM »
I should also mention that this runs:
Code: [Select]
import requests

print('RunScript complete')

However it throws this Exception.
Code: [Select]
2020-04-29 11:23:43 Exception ignored in: <module 'threading' from 'C:\\Program Files\\Agisoft\\Metashape Pro\\python\\lib\\threading.py'>
2020-04-29 11:23:43 Traceback (most recent call last):
2020-04-29 11:23:43   File "C:\Program Files\Agisoft\Metashape Pro\python\lib\threading.py", line 1283, in _shutdown
2020-04-29 11:23:43     assert tlock.locked()
2020-04-29 11:23:43 AssertionError:


So I know that I can use libs I have installed with pip

14
Python and Java API / Re: Network Task RunScript NumPy
« on: April 29, 2020, 02:14:58 AM »
Hi Alexey,

Issue persists unfortunately.

This runs fine:
Code: [Select]
# import numpy

print('RunScript complete')

This blocks indefinitely:
Code: [Select]
import numpy

print('RunScript complete')

15
Python and Java API / Re: Network Task RunScript NumPy
« on: April 28, 2020, 03:58:11 AM »
Thinking that this it GIL related. See https://lists.gt.net/python/dev/1406603

Unfortunately this is stopping me from using any libraries that depend on numpy like Tensorflow.

Pages: [1] 2 3