Skip to main content
Solved

KML filename in Zip Output

  • September 17, 2014
  • 1 reply
  • 8 views

Hello,

 

 

I have a very simple workflow which reads ESRI Shape file  and converts it to either KML, MIF, MITAB etc. using generic writer. To create a compressed output file I appended .zip to DestDataset.

 

 

I am facing an unusual behavior in case I try to convert to KML. When I select KML as output format it creates zip file with kml but the file name inside the zip is comping as something _auto_zip_<some numbers>.kml. This is the case only for KML for MITAB, MIF file names are same as source shape file.

 

 

e.g. If source shape file is test.shp and output format is MITAB then it created zip with test.tab, test.id etc but if the output is KML then it create zip with _auto_zip_1256789651236_1234.kml

 

Could anybody explain is this behavior as expected?

 

 

Cheers

 

John

Best answer by takashi

Hi John,

 

 

I would recommend you to request Safe support for the exact answer.

 

The following is my guessing.

 

Feature type of SHAPE, MIF, and MITAB is file-based. That is, a file can contain just one feature type; the file name is the feature type name. So, SHAPE schema can be mapped to MIF and MITAB in file level.

 

But KML is not so. A KML file can contain two or more feature types (layers); the file name is not a feature type name generally. SHAPE schema will be mapped to a layer in a KML file, not to the the file.

 

The behavior you came across might be related to that difference.

 

 

Takashi
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

1 reply

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • Best Answer
  • September 17, 2014
Hi John,

 

 

I would recommend you to request Safe support for the exact answer.

 

The following is my guessing.

 

Feature type of SHAPE, MIF, and MITAB is file-based. That is, a file can contain just one feature type; the file name is the feature type name. So, SHAPE schema can be mapped to MIF and MITAB in file level.

 

But KML is not so. A KML file can contain two or more feature types (layers); the file name is not a feature type name generally. SHAPE schema will be mapped to a layer in a KML file, not to the the file.

 

The behavior you came across might be related to that difference.

 

 

Takashi

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