Hi Ede,

The correct place can be derived from the TFW file:

10      pixel size west-east
0       rotation factor
0       rotation factor
-10     pixel size north-south (smaller coordinates to the south)
1005    x of the centre of top-left pixel
995     y of the centre of top-left pixel


For a fast visual check I put two point to OJ vector layer:
POINT (1005 995)
POINT (1000 1000) => the corner or the corner pixel should be at here

The first point is at the origin of the TFW file - middle point of top-left 
pixel
The latter is the top-left corner of top-left pixel
- half a pixel to the west so -5 to x
- half a pixel to the north so +5 to y

Results from colors.tif + colors.tfw and colors_geo.tif

tif+tfw
======
- ReferencedImage       half a pixel shift
- BufferedImage right location, weird colours
- GeoTIFF plus          half a pixel shift

- Sextante              all right

GeoTIFF
======
- ReferencedImage       all right
- BufferedImage corner at coordinates (0,0), weird colours 
- GeoTIFF plus          claims that GeoTIFF is not a GeoTIFF

- Sextante              all right


The GeoTIFF is a valid GeoTIFF as far as I know. It is created with GDAL.

Regards,

-Jukka-

edgar.soldin wrote:
> 
> no rush
> 
> current TIFF readers are
> - ReferencedImage
> - BufferedImage
> - GeoTIFF plus
> and
> - Sextante
> 
> please advise on the shift when you do. whether to substract or add half a 
> pixel.
> how do you actually compare?
> 
> ..ede
> 
> On 25.11.2014 11:37, Rahkonen Jukka (Tike) wrote:
> > Not today, need to rush now. Later, for sure. I will still test both 
> > tif.tfw and
> geotiff where it is supported.
> >
> > -Jukka-
> >
> >> -----Alkuperäinen viesti-----
> >> Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de]
> >> Lähetetty: 25. marraskuuta 2014 12:24
> >> Vastaanottaja: OpenJump develop and use
> >> Aihe: Re: [JPP-Devel] Half a pixel shift in images again
> >>
> >> hmm, let's stick with one format, TIFF or PNG.
> >>
> >> can you please open that then in every reader offered and write down
> >> the result in the form of
> >>
> >> reader name - result
> >>
> >> ?
> >>
> >> thanks.. ede
> >>
> >> On 25.11.2014 11:13, Rahkonen Jukka (Tike) wrote:
> >>> It seems that OpenJUMP is opening once again images so that they are
> >>> half a
> >> pixel shifted from the correct location. I thought that this issue
> >> was fixed when Ede was adding masses of new image readers.
> >>>
> >>> Good news is that OpenJUMP seems to open images always to the same
> >>> place
> >> with different readers and from image+world file or from GeoTIFF.
> >>>
> >>> Attachments:
> >>>
> >>> OJ_TFW_error.png  shows the current and the right location of the
> >>> top-left corner color.png + .pgw test image as png (10 by 10 pixels,
> >>> 10 m pixel size) color.tif + .tfw test image as plain tiff (10 by 10
> >>> pixels, 10 m pixel size) color_geo.tif test image as GeoTIFF
> >>>
> >>> -Jukka Rahkonen-
> >>>
> >>>
> >>>
> >>> --------------------------------------------------------------------
> >>> --
> >>> -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> >>> Server from Actuate! Instantly Supercharge Your Business Reports and
> >>> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> >>> Integration & more Get technology previously reserved for
> >>> billion-dollar corporations, FREE
> >>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.
> >>> clktrk
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Jump-pilot-devel mailing list
> >>> Jump-pilot-devel@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> --------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> >> Server from Actuate! Instantly Supercharge Your Business Reports and
> >> Dashboards with Interactivity, Sharing, Native Excel Exports, App
> >> Integration & more Get technology previously reserved for
> >> billion-dollar corporations, FREE
> >> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg
> >> .clktr
> >> k
> >> _______________________________________________
> >> Jump-pilot-devel mailing list
> >> Jump-pilot-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >
> > ----------------------------------------------------------------------
> > -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
> > Server from Actuate! Instantly Supercharge Your Business Reports and
> > Dashboards with Interactivity, Sharing, Native Excel Exports, App
> > Integration & more Get technology previously reserved for
> > billion-dollar corporations, FREE
> > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.
> > clktrk _______________________________________________
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from
> Actuate! Instantly Supercharge Your Business Reports and Dashboards with
> Interactivity, Sharing, Native Excel Exports, App Integration & more Get
> technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktr
> k
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to