Hexagon Geospatial

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 
Posts: 33
Registered: ‎05-30-2016
Accepted Solution

Controlling usage of geometry editing commands based on feature attributes

[ Edited ]

For our current Geospatial Portal project, using Portal SDK, we need to be able to control access to certain standard funtionalities in Geospatial Portal.


Specifically we need to be to intercept the geometry editing commands (insert, edit, continue) and read specific feature attributes, before allowing the controls to be actually used. We currently have implemented a custom feature info, that intercepts the default feature info event and, using predecate, either display regular feature info or custom feature info, based on several attributes and values. 


I can't seem to find any suggestions in the API or examples, that there is such events for insert, edit and continue, in order to intercept even before any geometry drawing or editing. Could you please advice us on how we can achieve this functinality?

Technical Evangelist
Posts: 132
Registered: ‎08-05-2015

Re: Controlling usage of geometry editing commands based on feature attributes

I've created a sample monkey patch for intercepting feature removal. Please let me know whether this is something you are looking for:




Please note that it touches Portal's private API as this functionality is not exposed in the public API.

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