Skip to main content
Question

Creating GPX files with elevation


I would really appreciate some help with the process I am trying to write.

 

I have a shapefile of routes, I need to create a GPX file for each route. However what I am stuck on is why the 'elevation' tag in the GPX is blank and I need to fix this. I assume I can use PointOnRasterValueExtractor

with the Terrain50Raster which I have in a raster GRID file?

 

The routes will change so I need the process to be repeatable on a regular basis hence why I am trying to do it the 'correct' way.

 

Many thanks

8 replies

danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • January 9, 2021

Hi @safesarahfme​ 

 

This transformer PointOnRasterValueExtractor generate a list of attribute _band{}.value .

Is empty this information?

 

Thanks in Advance,

Danilo


Yes, I have a GPX file with the elevation field blank (because it came from a shapefile with no z values).

I have used a GEOTIFF dataset in the 'PointsOnRasterValueExtractor' as well as the GPX file above.

 

I can get the process to create a new GPX but the elevation data isnt being populated and the attribute_Band{}.value. is empty. Its driving me a bit mad now and I am sure I am missing something simple!!


danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • January 16, 2021

Thanks your feedback.

Can you share the workspace or print?

Thanks,

Danilo​


helpHelp very gratefully received, I have made sure that both the GeoTIFF and the Shapefile that was used to creae the GPX are both in WGS84 (EPSG4326)


danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • January 16, 2021
safesarahfme wrote:

helpHelp very gratefully received, I have made sure that both the GeoTIFF and the Shapefile that was used to creae the GPX are both in WGS84 (EPSG4326)

Thanks your print. Please use the transformer ListExploder after the PointOnRasterValueExtractor for explode the list 0.

 

 


How do I connect that in?

 

 


listexploderplanlistexploder


danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • January 17, 2021
safesarahfme wrote:

listexploderplanlistexploder

Nice. You can rename this attribute using AttributeManager.

Now please insert the transformer 3DForcer.

 


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