Package dev.avelar.mapnik
Interface FeatureSource
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Supplies features to a
JavaDatasource when Mapnik asks for them. Mapnik calls it while it
renders, from the thread that called the render, and once per layer per render. Several maps
rendering at once on different threads call it at the same time, so an implementation must be
thread-safe.-
Method Summary
Modifier and TypeMethodDescriptionfeatures(FeatureRequest request) Features that touch the requested area.
-
Method Details
-
features
Features that touch the requested area. Returning extras is fine: Mapnik clips when it draws. Throwing an exception fails the render with aMapnikExceptioncarrying the message.- Throws:
Exception
-