GMSC Discussions

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
Highlighted
New Contributor
Posts: 4
Registered: ‎08-09-2018

Limit digitize feature within a boundary?

Hello,

 

I've been searching through this community, but couldn't find anything similar..

Is there a way to customize the "Save Geometry" button?

I mean to do some other checking before it actually save..

The idea is to do some spartial checking before saving..

If the new feature inserted is within a boundary (existing area), then it allows to save..

Else, it will prompt some message saying that it is not allowed to digitized object outside of boundary..

I think it is possible to do through customize plugins..

But couldnt think of how to do it yet..

If someone can help to point out how, it will be a great help..

 

 

Thank you.

 

With regards,

Azrul.H

Highlighted
Staff
Posts: 38
Registered: ‎12-14-2016

Re: Limit digitize feature within a boundary?

Hi

 

You can implement your own GeometryValidationHandler and use it to check geometries. An example can be found in the .Net API documentation (How to: Writing a custom geometry validation handler).

 

Regards

Highlighted
New Contributor
Posts: 2
Registered: ‎04-13-2018

Re: Limit digitize feature within a boundary?

as of what we understandGeometryValidationHandler only for Online mode, the real interest on how to do it in Offline mode?