Skip to main content
Question

.jpg .jgw with different coordinate system to Geotiff

  • April 12, 2024
  • 4 replies
  • 257 views

chaitanyamalla
Contributor
Forum|alt.badge.img+1

Hallo FME community, I am new to this FME software and got a task. 
 

I have 100 city folders with single .jpg and .jgw file inside each folders. .jgw has x and y coordinates of a reference system. Can anyone tell me workflow with necessary transformers to select each jpg with their .jgw and create their own destination folder and save the Geotiffs in individual folders. 

4 replies

jkr_wrk
Influencer
Forum|alt.badge.img+36
  • April 16, 2024

I think you want to:

 

Creator → FeatureReader(Directory and Filepath) → FeatureReader(.jpg) → FeatureWriter(.tif)

The first featureReader reads all the files in all the (sub)folders. You then send all the jpg files (path_windows) to the second FeatureReader to read all the jpg files. I think FME recognizes the jpw (world file) and puts them in the right coordinate. Then you use a FeatureWriter to write Geotiff. Here you can do all sorts of things like writing to c:\project\@Value(path_rootname)\@Value(path_filename) to write to subfolders.


chaitanyamalla
Contributor
Forum|alt.badge.img+1

unfortunately jpgs were not put correctly in coordinates by reading jgws by FME.

I have read JPGs and JGWs seperately and took the x and y values from JGW and assigned coordinate system to new raster from JPG according to X Y values manually. 


jkr_wrk
Influencer
Forum|alt.badge.img+36
  • June 20, 2024

If you set a coordinatesystem in the FeatureReader? Or use the coordinatesystemsetter transformer?


chaitanyamalla
Contributor
Forum|alt.badge.img+1

If you set a coordinatesystem in the FeatureReader? Or use the coordinatesystemsetter transformer?

I have added CRS with the coordinatesystemsetter.