Hexagon Geospatial
MENU

GeoMedia Smart Client

GeoMedia Smart Client community discussion board is where you can create, contribute and share information and knowledge in regards to configuring as well as working with GeoMedia Smart Client. Find your answers, share your knowledge and help build a strong GeoMedia Smart Client community.
Showing results for 
Search instead for 
Do you mean 
Reply
Occasional Contributor
Posts: 6
Registered: ‎02-06-2018

Export to Shapefile in GMSC

Hi Guys,

 

Is it possible to integrate a plugin in GMSC which is able to export Shapefiles? Has anybody realized such a feature? If yes, how? Smiley Happy

 

Any help is much appreciated.

 

Cheers Fabian

Frequent Contributor
Posts: 104
Registered: ‎04-05-2016

Re: Export to Shapefile in GMSC

Hi Fabian,

 

it is definitely possible to do that, but certainly not a trivial task. We have a solution that is utilizing a webservice within the GMSC server context. This webservice produces different export formats based on a spatial filter that is defined by the user on the client side.

 

It is also possible to implement a solution that is pure client side (Java). You could integrate a third party framework like GDAL/OGR to create a Shp dataset.

 

Regards,

Sven

Occasional Contributor
Posts: 6
Registered: ‎02-06-2018

Re: Export to Shapefile in GMSC

Hi Sven,

 

Thanks for your reply!

 

Is it possible to somehow get an Instruction to build such a solution which works on the SmartClient side? Smiley Happy

 

Cheers,

Fabian

Highlighted
Frequent Contributor
Posts: 104
Registered: ‎04-05-2016

Re: Export to Shapefile in GMSC

Hi Fabian,

 

I can not give you detailed instructions how to do it but this would be a rough sketch on the steps:

 

  • Implement a GMSC client plugin
  • Integrate GeoTools framework (http://geotools.org/)
  • Use GMSC library methods to extract WKT expression of selected geometries by clicking a custom action in the client (for example)
  • Build geometries from that WKT expression and write them to a shapefile datastore (build GUI to choose filepath etc..)
  • You also have to care for and migrate things like spatial reference, attributes and values from the GMSC geometrie to the shapefile

If you try to do this and you struggle at certain points I can try my best to help you.

 

Regards,

Sven

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.