Thanks for your clarifications, Richard!

I now understand that GML will not help me any further.
For two shapefiles which I commonly use (soil map of Belgium and map of biological value), I made .qml legends myself now. Since the 2.6 release this is much easier because of the colour picker tool. Nice feature! I sent a message to geopunt whether they can add these .qml legends to their downloads. I don't think they will do this (as this would require them to check these files for consistency with the original). Let's see.

Cheers!
Andreas


On 04/12/2014 13:23, Richard Duivenvoorde wrote:
On 04-12-14 12:47, Andreas Demey wrote:

- Shapefiles come with .lyr of .avl (old format) files - you know that.
As far as I know, I cannot use these with Qgis (.qml or .SLD files needed).
- GML files are an open OGC standard format, and everywhere I find Qgis
should be able to open them.
Well you can off course open the shapefiles, but you will not have the
same styling as is defined in lyr/avl files. You could off course try to
mimic that style and sent qml files to Geopunt :-)

When I try to open .gml files, I get a table, no geometry (nothing is
mapped). I have a windows install of Qgis 2.6. Are there any additional
plugins or libraries needed to make this work?
I found in this link (http://www.gdal.org/ogr_formats.html) that read
support needs Xerces or libexpat. Do these come with Qgis install? How
can I check wether I have these or how I should install these?
Opening a gml file is the same as opening a shp file, no styling
included. So it is the data you are after, you could get the shp files.

That said, GML is a tricky beast because so much different constructs
are possible, but normally QGIS (or actually OGR) is able to handle a
lot of those.

I tried it with this GML:

https://downloadagiv.blob.core.windows.net/overstromingsgebieden-en-oeverzones/2014_01/Overstromingsgebieden_en_oeverzones_2014_01_GML.zip

And indeed only get tables and no geometries...

BUT if I use ogr to open them:

ogrinfo -al Ogoz.gml

OGRFeature(Ogoz):15
   UIDN (Real) = 16
   OIDN (Real) = 16
   CODOGOZ (Integer) = 16
   NAAMOGOZ (String) = OG Puttenbeek
   NUMAC (Real) = 2014035191
   ININMRID (String) = 20001
   ININMR (String) = Provincie Vlaams-Brabant
   OPPERVL (Real) = 17031.46
   LENGTE (Real) = 969.01
   POLYGON ((138955.079 183000.758,138911.506 182970.395,138897.621
   ... truncated ...
   183007.847,138961.648 183005.335,138955.079 183000.758))

So apparently OGR sees the geometries, but QGIS not ??

Dev's? Any idea about this?
Should we open an issue?

Regards,

Richard Duivenvoorde


--
dr. ir. Andreas Demey
Scientific Researcher
Ghent University
Forest & Nature Lab
Geraardsbergsesteenweg 267
9090 Gontrode
Belgium
Tel. ++32(0)9 264 90 46
http://www.ugent.be/bw/forest-water-management/en/research/fornalab

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to