Skip to main content
Question

rotating a raster and vector by the same amount

  • September 2, 2013
  • 2 replies
  • 6 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

fmelizard
Safer
Forum|alt.badge.img+19
  • Safer
  • September 2, 2013
Hi,

 

The bounds extractor will provide you with the min/max coords of a feature.

takashi
Evangelist
  • September 2, 2013
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


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