Community
ReCap SDK Forum
Welcome to Autodesk’s ReCap SDK Forum. Share your knowledge, ask questions, get support and explore popular ReCap SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to get scan coordinate system

7 REPLIES 7
Reply
Message 1 of 8
amuravievQ565R
459 Views, 7 Replies

Unable to get scan coordinate system

Hello,

 

There is a problem with reading coordinate system information from RCP, RCS using SDK. An empty string is always returned, although ReCap itself displays the coordinate system.

 

I am talking about these two methods:

/// \brief Get the original coordinate system that is embedded in the RCS file
Autodesk::RealityComputing::Foundation::RCString Autodesk::RealityComputing::Data::RCScan::getOriginalCoordinateSystem() const

/// \brief Get the coordinate system of the project.
///        Scans in one project have the same target coordinate system as the project target coordinate system.
/// \param coordinateSystem The coordinate system of the project
/// \return True if getting coordinate system correctly. False otherwise.
bool Autodesk::RealityComputing::Data::RCProject::getCoordinateSystem(Autodesk::RealityComputing::Foundation::RCString &  coordinateSystem)

 

Best regards,

Aleksei Muravev 

Labels (1)
7 REPLIES 7
Message 2 of 8

Hi @amuravievQ565R,

 

As Autodesk::RealityComputing::Data::RCProject::getCoordinateSystem returns bool value, what is the returned value when this API is called?

 

For "although ReCap itself displays the coordinate system", do you mean the coordinate system displayed in the Preferences dialog?

zhaoyang_ma_0-1723778577740.png

 

Message 3 of 8

Hi @amuravievQ565R,

 

I have given a try to the two APIs and they are working as expected.

Message 4 of 8

Let me give you my example - https://drive.google.com/file/d/1JhAuCUa0LSKeiCNe1USD67kareGV_HbD/view?usp=drive_link

 

This project was obtained by importing a LAS file, which contained coordinate system information, into ReCap.

 

1723800947.png

 

Next to RCP and RCP files you can find files with the json extension which contain information about the contents of the files that was obtained using ReCapSDK_v24.0.2. The information about the coordinate system is empty there.

 

I would appreciate it if you could test the API on this project.

 

Maybe in the latest version of SDK everything works as it should. I'll try to check it.

 

 

Message 5 of 8

Hi @amuravievQ565R,

 

I do not have access to the link you mentioned.

But I have tried ReCap SDK 24.0.2 for the second API with our own test data. It works successfully.

To help us diagnose, can you help answer the following questions?

  • Does the issue only occur for a specific ReCap project?
  • When the issue occurs, does the above API return false?
  • Which version of ReCap Pro are you using to create the ReCap project?

 

Message 6 of 8

Hi @zhaoyang_ma,

> I do not have access to the link you mentioned.

Please try again, I have changed the access.

https://drive.google.com/file/d/1JhAuCUa0LSKeiCNe1USD67kareGV_HbD/view?usp=sharing

If there is a problem with downloading the project again, I could upload it to a place where it will be convenient for you to download it from. The archive size is about 160 MB.

> Does the issue only occur for a specific ReCap project?

I only had this project with a coordinate system.

> When the issue occurs, does the above API return false?

Yes, the methods return false.

> Which version of ReCap Pro are you using to create the ReCap project?

25.0.0.204

Anyway, if everything works for you, then the problem is either in this particular project or in my code. Could you give me a test project where everything works for you, so I can check my code?
Message 7 of 8

Hi @amuravievQ565R,

 

I tried and the coordinate system can be read out successfully.

Message 8 of 8

Thanks! So I'm reading this information incorrectly somehow. I'll try to figure it out.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report