WebGIS Discussions

Need a push in the right direction when configuring WebMap, Portal or SDI services? Looking for hints and tips, or just looking for Ideas and information? The WebGIS discussion board is where you start those discussions, connect and share information.
Showing results for 
Search instead for 
Do you mean 
Reply
Contributor
Posts: 27
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: 1,420
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: 51
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.