Skip to main content
I have a lot of files with different coordinate systems. However, coordinate extractor only works to get a coordinate system of a file. Is there a way to get a list of coordinate system names of multiple files in different formats (shp, tab, kmz..)

Hi @toarches​ 

 

You can use the transformer CoordinateSystemExtractor to get the name of files.

 

Thanks in Advance,

Danilo


Thanks Danilo. I tried it and it worked with single file. I mentioned it in my question. I want to get coordinate systems of a lof of files as a list.


I think you can achieve this with a Directory & File Pathnames Reader and a FeatureReader. The Directory Reader can be set up to read in all the files you want to check. And then run that into the FeatureReader setup with Format: Generic (Any Format) and Dataset: path_windows attribute from the Directory Reader. Then run the Generic port into the CoordinateSystemExtractor. Keep in mind you will have to clean up the result, especially for multi-file formats like shapefiles. This method reads in all the files individually (.dbf, .shp, .shx, .prj, etc.) of which only the .prj file will have a coordinate system assigned to it.


Thanks drc43. It works after adding a test filter.


Reply