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
Staff
Posts: 1,036
Registered: ‎10-18-2015

GMSC WF Create modify geometry based on FormFields

Hello,

I have a WF to create and modify feature attributes. ONLINE and OFFLINE.

What I need is that the user is updating some fields containing coordinates but dont use the IG.captureGeometry and IG.captureOfflineGeometry to create or modify the geometry. The geometry is created or updated regarding the WF Fields.

This should work online and offline.

Any solution is appreciated!

Thank you.

Yohann.

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Staff
Posts: 1,036
Registered: ‎10-18-2015

Re: GMSC WF Create modify geometry based on FormFields

please refer to @yly

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Highlighted
Staff
Posts: 27
Registered: ‎12-22-2016

Re: GMSC WF Create modify geometry based on FormFields

Hi Stefano,

 

For online you can use workflowflow action trigger and in this trigger you have to pass the form data as json string and in DLL you need to manupilate the string for creating an insert/update statement of that feature.

 

string sGeometry = string.Format("MDSYS.SDO_GEOMETRY(3001,32644,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1,4,1,0),MDSYS.SDO_ORDINATE_ARRAY({0},{1},0,1,0,0))", pointToTransform.STX, pointToTransform.STY);

 

For offline you can use scripting object and you have to pass the form data as json string and in scripting object  implementation you need to manupilate the string for creating an insert/update statement of that feature.

 

GPoint pt = new GPoint(new GAction(UUID.randomUUID().toString()), GFeatureTypeStyleManager.getInstance().getStyle(EditSettings.DEFAULT_STYLE),transformCoordinate(data.getKey().getKey()) );					
pt.setCustomValues(map);					
databaseConnector.add(ApplicationContext.getBrowser().getActiveFeatureID().toString(), pt);
				

It need lot of customization we hade done for insertion of point geometry for one of the client.

 

Thanks,

Jai Ram Gaur

 

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