Question

rotating a raster and vector by the same amount

  • 2 September 2013
  • 2 replies
  • 0 views

Hi

 

 

I have a raster and a corresponding shape file polygon I'm using as a mask.  Both are in the same coordinate system and line up as they should.  Now I'm trying to rotate them both, but I'm having trouble keeping them lined up.  

 

 

Basically I guess I need to find the coordinate of the top left corner of the raster and feed that into the shapes Rotator transform,  but short of finding it 'by hand' and typing it it into the transform, I can't find I good way to do that.

 

 

Any tips?

 

 

Dag

2 replies

Userlevel 4
Badge +13
Hi,

 

The bounds extractor will provide you with the min/max coords of a feature.
Userlevel 2
Badge +17
Hi Dag,

 

 

As Itay mentioned, the BoundsExtractor can be used to extract coordinates of the feature extent.

 

Then, you can merge unconditionally the top-left coordinate to every polygon feature using the FeatureMerger.

 

 

Takashi

Reply