Agisoft Metashape

Agisoft Metashape => General => Topic started by: Rennie on July 22, 2019, 05:04:45 PM

Title: exporting point cloud - coordinate system
Post by: Rennie on July 22, 2019, 05:04:45 PM
I'm a new user of Agisoft and am having issues with the export of a point cloud and the correct coordinate system.

The point cloud and model (of a building) have processed fine as far as I can see, including adding 4 control points measured using the OSGB coordinate system. The images were taken by drone using the WSG84 coordinate system.

The point cloud needs to be analysed in CAD based on an OSGB coordinate system, however if I export to OSGB the result is a meaningless straight line rather than the building; if i export to the local coordinate system it doesn't tie in to OSGB (I don't have access to the CAD as the model is being analysed by someone else).

Is there anything I should be doing to avoid this?

Thanks in advance
Title: Re: exporting point cloud - coordinate system
Post by: Alexey Pasumansky on July 22, 2019, 06:35:13 PM
Hello Rennie,

Please specify, if you are interested in exporting the data in British National Grid system with ODN height? If so, then you should download OSGM15 geoid model from the following page and put it to teh /geoids/ sub-directory in Metashape Pro installation folder. Then (after re-starting the application) use the corresponding coordinate system for export - with EPSG code =  7405.

According to your description you are selecting Geographic coordinate system with the code 4277 that is using Latitude/Longitude (both in degrees) for X and Y coordinates definition. And it appears that the CAD software that you are using to open the exported results is interpreting all X, Y and Z values as similar units, while they are not.
Title: Re: exporting point cloud - coordinate system
Post by: Rennie on July 22, 2019, 06:47:12 PM
thanks - is the page and if so which version should i download?
https://www.ordnancesurvey.co.uk/business-and-government/help-and-support/navigation-technology/os-net/formats-for-developers.html
Title: Re: exporting point cloud - coordinate system
Post by: Alexey Pasumansky on July 22, 2019, 07:59:54 PM
Hello Rennie,

I have meant this page: https://www.agisoft.com/downloads/geoids/ (sorry for not posting the link before).

Check the OSGM15 geoid model in the bottom-left corner of the page.
Title: Re: exporting point cloud - coordinate system
Post by: Rennie on July 23, 2019, 10:33:25 AM
thanks, got the file and exported

are there settings in the CAD software i can tell my colleagues to use when opening the file which avoid the problem of the results interpreting X, Y, Z values as similar units - or does exporting in code 7405 fix this?

thanks
Title: Re: exporting point cloud - coordinate system
Post by: Alexey Pasumansky on July 23, 2019, 10:54:00 AM
Hello Rennie,

When you use EPSG::7405 system for export (OSGB 1936 / British National Grid + ODN height) the units in every direction are the same, so there should not be the effect that you have observed with degrees, when all the points are laying along Z axis.
Title: Re: exporting point cloud - coordinate system
Post by: Rennie on July 23, 2019, 11:05:54 AM
thanks for the speedy response, will try this
Title: Re: exporting point cloud - coordinate system
Post by: Rennie on July 24, 2019, 12:43:59 PM
Hi Alexey

I'm still having issues with the exported point cloud I'm afraid

The x/y cords are still around a metre out even though control points have been used and the z values are nowhere correct - the exported ground values are approximately -60m, whereas the correct OS z value should be around 30m

any advice appreciated
thanks
Title: Re: exporting point cloud - coordinate system
Post by: Alexey Pasumansky on July 24, 2019, 01:27:40 PM
Hello Rennie,

Are the altitude values that you have for the camera locations related to the height above WGS84 ellipsoid?
Title: Re: exporting point cloud - coordinate system
Post by: Rennie on July 24, 2019, 01:52:31 PM
the camera coordinate system in the settings is WGS84 (EPSG::4326), with the long, lat and altitude imported with the images - the altitude is recorded as 44m although the flight was conducted at 60m above surface
Title: Re: exporting point cloud - coordinate system
Post by: Alexey Pasumansky on July 24, 2019, 04:42:05 PM
Hello Rennie,

If you are using DJI drone, you may need to select WGS84+EGM96 coordinate system instead of WGS84 in the Reference pane settings dialog, if the altitude information is recorded above the mean sea level instead of above ellipsoid expected by default.
In case the altitude values are recorded above the take-off point, all the height information should be corrected according to the take-off point offset above the ellipsoid.
Title: Re: exporting point cloud - coordinate system
Post by: Magda on March 23, 2020, 03:53:28 PM
Hi there, I also have issue with exporting data in OSGB36 + ODN.

My project is in WGS84 ellipsoid (coordinates of images and coordinates of GCP) i would like to export data in OSGB36 + ODN. I already download geoid model but my exported data are clearly in wrong place by giving me Altitude ~ -500m.

I also try to convert coordinates inside Metashape from WGS84 to OSGB36+ODN before exporting but it also giving me wrong coordinates (see attached images).

Any ideas what possibly could be wrong?

Thanks.
Title: Re: exporting point cloud - coordinate system
Post by: Alexey Pasumansky on March 23, 2020, 04:24:50 PM
Hello Magda,

I have converted a few cameras and markers from your list from WGS84 to EPSG::7405 and have got about 101 meter for cameras and about 65 meters for markers. So there might be something wrong with the steps that you are following or with the file/system that you are using.
Title: Re: exporting point cloud - coordinate system
Post by: Magda on March 23, 2020, 04:49:28 PM
That's weird.

So you just open metashape, import images and  GCP in WGS84 and in export dialog choose OSG36+ODN? That is how you get correct heights?
I might try create from scratch a new project one again.

Thank for quick reply!
Title: Re: exporting point cloud - coordinate system
Post by: Alexey Pasumansky on March 23, 2020, 04:55:40 PM
Hello Magda,

I have created the markers, input the coordinates in WGS84 from your screenshots and then used Convert option to transform the coordinates to OSGB1936/British Grid + ODN Height (EPSG::7405). The geoid file used is OSGM15 geoid model downloaded from https://www.agisoft.com/downloads/geoids/

Make sure that you do not have other geoid files related to the same system definition which your affect the data interpretation.
Title: Re: exporting point cloud - coordinate system
Post by: Magda on March 23, 2020, 05:44:39 PM
Hi Alexy, I'm still getting same wrong results, I think i follow your instruction correctly but something is still wrong. When i use convert option my height are - 470m.
I'm attaching screenshot from my workflow.

Title: Re: exporting point cloud - coordinate system
Post by: Alexey Pasumansky on March 23, 2020, 06:32:03 PM
Hello Magda,

Is it the latest Metashape version that you are using?
Title: Re: exporting point cloud - coordinate system
Post by: Magda on March 23, 2020, 06:37:04 PM
Yes, it's 1.6.2
Title: Re: exporting point cloud - coordinate system
Post by: Alexey Pasumansky on March 23, 2020, 06:56:22 PM
Please send the project with only added images to support@agisoft.com. Include two chunks to the project: one with the source WGS84 coordinates and another with transformed coordinates.
Title: Re: exporting point cloud - coordinate system
Post by: Alexey Pasumansky on March 23, 2020, 09:15:32 PM
Hello Magda,

Can you try to use the Custom datum transformation settings where all ToWGS84 parameters are set to zero (do it from the Convert coordinate system dialog)?