Skip to main content
Question

How to convert zmap grid to ESRI grid?


aguan
Contributor
Forum|alt.badge.img+11
  • Contributor

We need to batch convert map zmap grid files (ascii) to ESRI Grid (ascii). FME has zmap grid reader which successfully read my zmap grid file. But just directly connecting ESRI Grid writer to the reader does not work. Does anybody have an example workspace to do this conversion?

4 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+35

Is there an ERROR in your log file? Perhaps you could share it? Does the FME Data Inspector show the original data looking ok when you try and view it?


aguan
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • July 22, 2019
virtualcitymatt wrote:

Is there an ERROR in your log file? Perhaps you could share it? Does the FME Data Inspector show the original data looking ok when you try and view it?

@virtualcitymatt , if I just connect the zmap reader and the ESRI Grid writer, the error message is "

Esri ASCII Grid Plugin: Opening the Esri Ascii Grid writer for file '\\\\americas.ent.bhpbilliton.net\\pfs\\Asset\\GOM\\06 Exploration\\GOM_Central\\03_Geology\\Petroleum_Systems\\Basin_Modelling\\CRS_CCRS_zmap_123-20190718\\MM96\\ESRI_ASCII_GRID'

ESRIASCIIGRID writer: Failed to obtain raster from feature. Only features with raster geometry are expected".

I can view the original zmap file in the data inspector.


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
aguan wrote:

@virtualcitymatt , if I just connect the zmap reader and the ESRI Grid writer, the error message is "

Esri ASCII Grid Plugin: Opening the Esri Ascii Grid writer for file '\\\\americas.ent.bhpbilliton.net\\pfs\\Asset\\GOM\\06 Exploration\\GOM_Central\\03_Geology\\Petroleum_Systems\\Basin_Modelling\\CRS_CCRS_zmap_123-20190718\\MM96\\ESRI_ASCII_GRID'

ESRIASCIIGRID writer: Failed to obtain raster from feature. Only features with raster geometry are expected".

I can view the original zmap file in the data inspector.

Ah ok - in that case it seems like the writer is getting data which is not raster/image data. It seems the zmap reader can read both vector and raster data. To check the geometry types you can look in the data inspector of pass the data through a geometry filter. The writer only supports rasters so it might be failing because either there are no raster data or there are some other data types causing issues.

Use a geometry filter to just direct your raster data to the writer.

If you find you have no raster data, then check the reader parameters - there might be a setting you can change.

As a last option if you only have vector data check out some of the articles here on the knowledge base about converting vector to raster like this one: https://knowledge.safe.com/articles/1099/converting-vector-data-to-raster.html


aguan
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • July 23, 2019
virtualcitymatt wrote:

Ah ok - in that case it seems like the writer is getting data which is not raster/image data. It seems the zmap reader can read both vector and raster data. To check the geometry types you can look in the data inspector of pass the data through a geometry filter. The writer only supports rasters so it might be failing because either there are no raster data or there are some other data types causing issues.

Use a geometry filter to just direct your raster data to the writer.

If you find you have no raster data, then check the reader parameters - there might be a setting you can change.

As a last option if you only have vector data check out some of the articles here on the knowledge base about converting vector to raster like this one: https://knowledge.safe.com/articles/1099/converting-vector-data-to-raster.html

Yes, I used the geometry filter to filter out the raster and the conversion is successful. Thanks a lot for your help. @virtualcitymatt


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