Created
August 12, 2015 15:18
-
-
Save benjbaron/3cb7a1490e7a6ce81c9f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OGRLayer::SetSpatialFilterRect( double dfMinX, double dfMinY, | |
double dfMaxX, double dfMaxY ) | |
{ | |
OGRLinearRing oRing; | |
OGRPolygon oPoly; | |
oRing.addPoint( dfMinX, dfMinY ); | |
oRing.addPoint( dfMinX, dfMaxY ); | |
oRing.addPoint( dfMaxX, dfMaxY ); | |
oRing.addPoint( dfMaxX, dfMinY ); | |
oRing.addPoint( dfMinX, dfMinY ); | |
oPoly.addRing( &oRing ); | |
SetSpatialFilter( &oPoly ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment