Solved

kml to shapefile

  • 7 March 2019
  • 2 replies
  • 104 views

Badge

I have got a kmz file and I want to convert it to a shapefile. I also want to change the data from being a 3 coordinate system to a 2 coordinate system or I could keep the 3 coordinate system and ensure all the z coordinates are 0. There is not much help on how to transform kmz files to esri shapefiles in fme. Can someone give me some tips? I have attached the file here.

icon

Best answer by danilo_fme 7 March 2019, 13:32

View original

2 replies

Userlevel 5
Badge +25

What you can do is use the Generate option to create a workspace from KML to Shape and use a 2DForcer before writing out the data to force it to 2D and an AttributeManager to map KML attributes to Shape attributes (which you'll need to add to the output feature types too).

ogckml2esrishape.fmw

Userlevel 4
Badge +30

Hi @pelwinderpal

 

I suggest you to do using the option Generate Workspace - Reader KML and Writer Shapefile.

 

After use the transformer 2DForcer to eliminate the Z values.

 

 

Attached the Workspace template.

ogckml2esrishape.fmwt

 

Thanks,

Danilo

Reply