Skip to main content
Question

How to convert zmap grid to ESRI grid?

  • July 22, 2019
  • 4 replies
  • 233 views

aguan
Supporter
Forum|alt.badge.img+11
  • Supporter
  • 140 replies

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?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+47

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
Supporter
Forum|alt.badge.img+11
  • Author
  • Supporter
  • 140 replies
  • July 22, 2019

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+47

@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
Supporter
Forum|alt.badge.img+11
  • Author
  • Supporter
  • 140 replies
  • July 23, 2019

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