Skip to main content
Solved

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


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
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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
  • October 26, 2016
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
  • October 26, 2016

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
  • October 27, 2016
gio wrote:

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!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings