Extent of Feature #2450
Replies: 2 comments 1 reply
-
There is an IFeature.Extent, but this is based on the geometry, and the width is zero for points. I guess you are referring to the extent of the feature the way it is drawn. Taking into account the symbol, the scale of the symbol, the width of the of the line of a polygon or polyline. Perhaps even line ending. This may not be easy to determine. For practical purposes it does not need to perfectly fit the geometry, it could be bigger (but not smaller). For linewidth of polygons and polylines it is possible to work with a big margin, just to be sure. It won't make a big difference for performance. Guess, the most important use case is for symbols. We could calculate that extent in map coordinates. But a problem with that is that it is different depending on the zoom resolution. Perhaps we just want to know the extent in pixels, and I think relative to the symbol origin, so you need to calculate it only once. What were you thinking about? The default symbol size of 64 is definitely awkward and has always been bothering me. |
Beta Was this translation helpful? Give feedback.
-
I think about symbols. There it should be possible without using the renderer. To be clear: it should work with all features that didn't depend on the map zoom factor. We have two types of features:
Point features are normally symbols, which don't change their size when changing the zoom factor. There we can easily calculate the extent. The other type changes their size with the zoom factor and could be tested like we already do. When I think about this, then I have the behavior of vector maps in mind. They have many symbols (with and without text) on the screen. They have rules when to display and when to not display them or parts of them. Furthermore, they have a hierarchy of importance (more important remove lesser important ones). |
Beta Was this translation helpful? Give feedback.
-
It would be nice to have the extent of a feature. This is helpful in many places.
Is this a good idea? Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions