2

I've downloaded *.txt files from this site: https://ide.cat/geonetwork/srv/eng/catalog.search#/metadata/model-digital-terreny-5x5-v1r0

I used Copy Raster tool to import one of the files with Esri Grid Format option. The DEM seems to be created fine but I can't seem to reproject it properly.

On the Catalan version of the metadata page: https://ide.cat/geonetwork/srv/cat/catalog.search#/metadata/model-digital-terreny-5x5-v1r0

I noticed they specify the coordinate system: enter image description here

So I selected ETRS89 from Geographic Coordinate System.

enter image description here enter image description here

But the projection placed the raster in the same place as before (middle of the sea):

enter image description here enter image description here

What am I doing wrong here?

1
  • The first entry in the list in your screenshot tells you the CRS is 25831 i.e ETRS89 / UTM zone 31N.
    – user2856
    Commented May 21, 2023 at 1:12

1 Answer 1

3

Following the links you provided I downloaded the data. Opening the text file its clear that even though it ends with a txt file name extension the contents conforms to an ASCII grid interchange file with float 32 values.

ASCII File

If you open the xml (metadata file) that accompanies it you will discover the coordinate system is UTM 31N

Metadata

Knowing these two pieces of information you simply use the Copy raster and at the same time set the environment setting.

Tool

Tool environment settings

The result is the correctly located raster in ESRI grid format.

Results

2
  • Thank you so much for this. May I ask you few more questions? How did you get the XML file? (couldn't find it) And second - can I use the same process for a folder of files?
    – Moseleyi
    Commented May 22, 2023 at 7:38
  • The xml was in one of the zip files I accessed, you will need to view it from file explorer. Yes a very simple model with an iterator could automate all this.
    – Hornbydd
    Commented May 22, 2023 at 8:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.