Question

problem with creation DEM/elevation raster from ASCII XYZ

  • 18 August 2017
  • 8 replies
  • 2 views

I have problem with creation DEM/elevation raster from ASCII XYZ. I've loaded ASCII XYZ using CSV. I've used transformers: VertexCreator, NumericRasterizer. Translation was SUCCESSFUL, but finally elevation doesn't exist. What can be wrong? In attachment I send fmw file.


8 replies

Userlevel 4
Badge +30
Hi @codgik_1, the fmw didnt come.

 

Thanks,

 

Danilo
Badge +6
Hello @codgik_1

 

 

Would you mind re-attaching your workspace? I don't see it included with your above post.

csv22geotiff.fmw

Example data for this FMW you can download here (ASCII XYZ GRID):

http://codgik.gov.pl/index.php/zasob/numeryczne-dane-wysokosciowe.html

Userlevel 5
Badge +25

I tried a completely different approach:

  • PointCloud XYZ reader
  • RasterDEMGenerator
  • output to GeoTiff

It looks like it's working (and it's blisteringly fast) but... on that sample dataset it looks like the variation in z-values is minimal, like centimeters at most.

Also, in your workspace, you've set the output to a different coordinate system, that's fine, but you should refer to it as EPSG:[number], not just the number.

Userlevel 2
Badge +17

csv22geotiff.fmw

Example data for this FMW you can download here (ASCII XYZ GRID):

http://codgik.gov.pl/index.php/zasob/numeryczne-dane-wysokosciowe.html

Hi @codgik_1, why not connect the "Raster" port of the NumericRasterizer to the GeoTIFF writer feature type?

 

And I would recommend you to use the PointCloud XML reader, since it works much faster than the CSV reader + VertexCreator, as @redgeographics mentioned. You can send a feature having a point cloud geometry directly to the NumericRasterizer or the RasterDEMGenerator.

Thanks for answers @takashi @redgeographics

@takashi, In my version on FME (2017.1) I can't find PointCloud XML reader.

Besides I would like to use batch for few files, but my batch didn't work. What can be wrong:

for %%f in (*.XYZ) do "c:\\Program Files\\FME\\fme.exe" e:\\temp\\csv22geotiff.fmw --SourceDataset "%%f" --DestDataset "%%~nf.tif"

Userlevel 5
Badge +25

Thanks for answers @takashi @redgeographics

@takashi, In my version on FME (2017.1) I can't find PointCloud XML reader.

Besides I would like to use batch for few files, but my batch didn't work. What can be wrong:

for %%f in (*.XYZ) do "c:\\Program Files\\FME\\fme.exe" e:\\temp\\csv22geotiff.fmw --SourceDataset "%%f" --DestDataset "%%~nf.tif"

I think @takashi meant to say PointCloud XYZ reader

 

 

As for your batch command, it's been a long time ago since I had to work with those, but are you sure the %%~nf.tif part is correct? Shouldn't that be %%f.tif?

 

Userlevel 2
Badge +17

Thanks for answers @takashi @redgeographics

@takashi, In my version on FME (2017.1) I can't find PointCloud XML reader.

Besides I would like to use batch for few files, but my batch didn't work. What can be wrong:

for %%f in (*.XYZ) do "c:\\Program Files\\FME\\fme.exe" e:\\temp\\csv22geotiff.fmw --SourceDataset "%%f" --DestDataset "%%~nf.tif"

Sorry for the typo. I meant the Point Cloud XYZ reader.

 

Reply