comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » image cut by a shapefile
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
image cut by a shapefile [message #56196] Tue, 16 October 2007 03:26 Go to next message
krastoboy is currently offline  krastoboy
Messages: 8
Registered: October 2007
Junior Member
Dear all,
I'm a novice in IDL, not sure if my questions are totally improper.
1_I got a shape file made by some points.
2_I would like to cut an image (geotiff) in smoller (ex: 1000X1000
pixeles) parts.
3_Each point of the shape file should be the center the new images.

I don't know how figure it out.
Consider that I wuold like to find an automatic way: I have to work on
a set of different geotiff images, each one related to a different
shape file.

Thank you in advance,
Lorenzo
Re: image cut by a shapefile [message #56362 is a reply to message #56196] Thu, 18 October 2007 02:47 Go to previous message
krastoboy is currently offline  krastoboy
Messages: 8
Registered: October 2007
Junior Member
On 17 Ott, 18:22, Jean H <jghas...@DELTHIS.ucalgary.ANDTHIS.ca> wrote:
> krasto...@gmail.com wrote:
>> Thanks Jean.
>> I've tried and it works...but I've got a problem with the new images i
>> made: they seem to be negative (check:www.gurumeditation.it/smallimage.tiff).
>> The problems is reading the tiff: to check this idea I wrote two lines
>
>> Result = READ_TIFF( 'D:\RSI\IDL56\WORKING\image.tif',
>> GEOTIFF=variable)
>> tv, result
>
>> and it gives me the same error.
>> There's something wrong that i don't understand?
>
>> Before I opened the geotiff with envi_open_data_file, got it in a
>> variabile with ENVI_GET_DATA and wrote it with write_tiff using the
>> geotiff keyword.
>
>> lo
>
> I am not sure of what your image **should** look like... it is a byte
> one... Are you sure you are writing it properly (good data type, color
> lookup table etc)?
>
> Jean

I was writing a byte image...btu I was looking for a integer one!
The keyword, /SHORT in the WRITE_TIFF procedure solved eveything!

Thanx Jean
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: making polygon on top of image in IDL
Next Topic: Geotiff coor

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 03:38:23 PDT 2025

Total time taken to generate the page: 0.96270 seconds