Hi,
________________________________ Michaël Michaud wrote: > First, to answer Stefan, I was speaking about file name extension, not about > file format. > I think the OpenJUMP mechanism preventing it from reading zip files > containing xml is > based on file name extension only. > My argument to remove (or deactivate) xml file extension is that files in xml > format > like FME GML or GML2 generally use the gml extension (at least I think so). > Note that : > 1 - if deactivating .xml only for zip file is an alternative, it is better > 2 - having confirmation that xml extension is never or rarely used for gml > files is required About point 2, using .xml extension for gml files is not uncommon. For example all the topological data that National Land Survey of Finland delivers in gml format seem to come with .xml extension. In practise reading third party gml data from a zipped archive with OpenJUMP is nowadays very theoretical option which can only work if the gml is stored as FME variant. Other gml files can not be opened without the special OpenJUMP template file and nobody delivers such templates. Therefore deactivating loading xml from zipped file would not do any real harm for users because it would lead to an error in any case. Perhaps some day we can handle GML in a more common way and drop out the support for the OpenJUMP gml2 + template file system. Has anybody really ever used it for something? Keeping xml support in normal File - Open would not be harmful. Most of the times it will also lead to an error but it effects only that one file. Problem with zipped files is that one xml file in the archive prevents opening all the good stuff that exists in the zip file. Michaël wrote: "The modification of FileLayerLoader framework to add options is not a simple task." I suggest deactivating xml file name extension now and consider bigger changes only if we will some day have something new that is not well supported by the FileLayerLoader framework. By the way, I found an old GDAL document considering how to know is some xml file is gml or not http://home.gdal.org/projects/gml/gml_interop.html The way to do it seems to be to use raw power "Scan the file for any occurance of `xmlns:gml="http://www.opengis.net/gml"' and if found assume the file is likely a GML file." -Jukka- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Jump-pilot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
