You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.
This looks like what we want (pixel to map units).
The problem is that the MapTransform is not supposed to be used that way (just to convert a value from pixel to map units), it is supposed to be used for rendering (which we do not care about here...)
So we'll have to go around this until this is properly refactored outside of the MapTransform:
// create a MapTransformMapTransformm = newMapTransform();
// set a dummy image (of the right size)m.setImage(newBufferedImage(x, y, ...));
// tell it to adjust the extend (take CRS into account)m.setAdjustExtent(true);
// set the input extend of the mapm.setExtent(theEnvelope);
// the above will recalculate the AffineTransform that we need// then use itPoint2Dpt = m.toMapPoint(x,y);
// now we have a point to query with.// convert the point into a degenerated envelopeEnvelopeev = ... // from pt// query the indexint[] rows = dsf.getIndexManager().queryIndex("thelayer",
newDefaultSpatialndexQuery("the_geom", ev));
// get the DataSourceDataSourceds = dsf.getDataSource("thelayer");
ds.open();
// access the rowsds.close();
// repeat the above for each layer
@tonyMartin: don't take this at face value, but it looks like the way to go.
Add support for GetFeatureInfo with some interesting result type, like geoJson or at least a simple HTML view.
/cc @tonyMartin
The text was updated successfully, but these errors were encountered: