Skip to main content
Solved

Is it possible to use the function "intersect" of a FeatureReader with raster data?

  • Oct 26, 2016 9:32 AM UTC
  • 3 replies
  • 134 views

lau
Forum|alt.badge.img+3

Best answer by gio

It will not clip an area out of a raster.

Intersect is a relational query wich will result in reading all rasters crossing initiator boundary.

When selecting a raster by using intersect trough a feature reader, you probably still wil want to reduce it to the BB of your initiator. Wich means clipping. (creating a smaller rectangular object..)

Wich is wastefull; select raster by extracting its rasterextent (RasterExtenCoercer), then intersect wiht your area of interest. Then select raster by attribute (name) and clipp it. Much faster.

Selecting by feature reader is slow (for ecw's at least)

View original
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

lau
Forum|alt.badge.img+3
  • Author
  • Oct 26, 2016 9:34 AM UTC
I have an area of interest (a polygon) and I want to read only the raster data that is present in it. I am trying to use a FeatureReader (Reader=GEODATABASE_FILE_RASTER_DATASET) and set the spatial filter to "INTERSECTS". I know this option works well with vector data. But here it doesn't work and all the raster data is read.

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • Best Answer
  • Oct 26, 2016 3:57 PM UTC

It will not clip an area out of a raster.

Intersect is a relational query wich will result in reading all rasters crossing initiator boundary.

When selecting a raster by using intersect trough a feature reader, you probably still wil want to reduce it to the BB of your initiator. Wich means clipping. (creating a smaller rectangular object..)

Wich is wastefull; select raster by extracting its rasterextent (RasterExtenCoercer), then intersect wiht your area of interest. Then select raster by attribute (name) and clipp it. Much faster.

Selecting by feature reader is slow (for ecw's at least)


lau
Forum|alt.badge.img+3
  • Author
  • Oct 27, 2016 7:53 AM UTC

It will not clip an area out of a raster.

Intersect is a relational query wich will result in reading all rasters crossing initiator boundary.

When selecting a raster by using intersect trough a feature reader, you probably still wil want to reduce it to the BB of your initiator. Wich means clipping. (creating a smaller rectangular object..)

Wich is wastefull; select raster by extracting its rasterextent (RasterExtenCoercer), then intersect wiht your area of interest. Then select raster by attribute (name) and clipp it. Much faster.

Selecting by feature reader is slow (for ecw's at least)

Thanks for you answer!