Skip to main content
Question

problem with creation DEM/elevation raster from ASCII XYZ


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

danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • August 18, 2017
Hi @codgik_1, the fmw didnt come.

 

Thanks,

 

Danilo

trentatsafe
Safer
Forum|alt.badge.img+6
  • Safer
  • August 18, 2017
Hello @codgik_1

 

 

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

  • Author
  • August 21, 2017

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


redgeographics
Celebrity
Forum|alt.badge.img+50

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.


takashi
Evangelist
  • August 21, 2017
codgik_1 wrote:

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.

  • Author
  • August 22, 2017

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"


redgeographics
Celebrity
Forum|alt.badge.img+50
codgik_1 wrote:

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?

 


takashi
Evangelist
  • August 22, 2017
codgik_1 wrote:

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.

 


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