After a good start many months ago of getting into GIS through QGIS, I had to drop what I was doing and did not touch it for quite some time. I am now able to get back into it and have a need to load GML vector maps. It strikes me that they have the same properties as ESRI Shapefiles, but there must be a difference. Can someone please give a simple explanation of the difference and the advantages either way? I see that one can be converted into the other, so if there must be a reason to do so.
|
|
You can't really choose either because as a GIS Professional data will come at you in a million different formats and you need to handle everything. This is why GDAL/OGR has so many translation algorithms. More importantly, neither format is a 'beautiful' way of managing and storing GIS data. For real GIS data management you want to use one of the spatially enabled database formats. Shapefiles and GML are now really formats of convenience and should both be treated as such. A few more random thoughts:
I could ramble on with other pros and cons but really my first paragraph says it all. I would treat both formats as a means of sharing data rather than part of a GI-data archive management system. |
||||
|
|
Shapefiles have the restriction of 8 characters in field names, and only ASCII characters for them as well. I would prefer GML to avoid this. |
|||
|
|
|
What you're dealing with is two different formats of vector data - ESRI Shapefiles are the native vector format for ArcGIS which is a GIS package with a very long heritage (so thats why you're probably finding quite a lot of GIS data available out there in this format). GML is a Geographic Markup Language, extension of HTML. QGIS can handle both formats (and many more) - as has been suggested above, it would be really helpful to know what your trying to do with the files. |
|||
|
There is an existing comparison of vector formats that includes these two in Wikipedia. If you uncover any clear Pros and Cons here, I recommend you update that, and/or add a link there which comes to here. |
|||

