Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Contributor
Posts: 28
Registered: ‎04-20-2016
Accepted Solution

Export selected Features into File

[ Edited ]

 Hi,

 

tried the sdk example "Get all selected features from all the layers".

 

This is working, but how can I export the result to a file like c:\temp\selectedFeatures.txt?

 

kind regards

ro

Technical Evangelist
Posts: 927
Registered: ‎09-11-2015

Re: Export selected Features into File

Hi Ro,

 

JavaScript cannot access local computer filesystem due to security reasons. You have to issue the download or create a download button which will return the object content.

 

Examples:

http://stackoverflow.com/questions/19721439/download-json-object-as-a-file-from-browser

http://stackoverflow.com/questions/3665115/create-a-file-in-memory-for-user-to-download-not-through-...

 

Regards,

Jan

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Contributor
Posts: 49
Registered: ‎10-27-2015

Re: Export selected Features into File

Hi Ro,

could you, please, share the solution. I would like to export selected features from PSS but can't get it to work.

Thank you.

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.