Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support gml:boundedBy / Envelope in XML mode #68

Closed
sgrellet opened this issue Apr 17, 2018 · 4 comments
Closed

Support gml:boundedBy / Envelope in XML mode #68

sgrellet opened this issue Apr 17, 2018 · 4 comments
Assignees
Labels
bug Houston, we've a problem!

Comments

@sgrellet
Copy link
Member

split from #56 to differentiate issues in XML and relational mode
ko on v1.2.0-rc6 using the xml attached

Traceback (most recent call last):
File "C:/Users/grellets/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gml_application_schema_toolbox\gui\load_wizard_xml.py", line 58, in validatePage
swap_xy=self.swapXYCheck.isChecked())
File "C:/Users/grellets/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gml_application_schema_toolbox\core\load_gml_as_xml.py", line 59, in load_as_xml_layer
return s.load_complex_gml(xml_uri, is_remote, attributes, geometry_mapping, logger, swap_xy)
File "C:/Users/grellets/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gml_application_schema_toolbox\core\load_gml_as_xml.py", line 327, in load_complex_gml
layer = self._create_layer('none', None, attr_list, src.title, "nogeom")
File "C:/Users/grellets/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gml_application_schema_toolbox\core\load_gml_as_xml.py", line 447, in _create_layer
layer = ds.CreateLayer("meta", geom_type = ogr.wkbNone)
AttributeError: 'NoneType' object has no attribute 'CreateLayer'

Python : 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
QGIS : 3.0.1-Girona Girona, a86bec25ebw
ModelView_Envelope.zip

@sgrellet sgrellet added the bug Houston, we've a problem! label Apr 17, 2018
@mhugo mhugo added Not reproducible bug Houston, we've a problem! and removed bug Houston, we've a problem! Not reproducible labels May 30, 2018
@mhugo
Copy link
Collaborator

mhugo commented May 30, 2018

I've tried to open ModelView_Envelope.xml, but can't see any geometry in it, am I missing something ?
What should we do with an Envelope but not geometries to show ?

@mhugo
Copy link
Collaborator

mhugo commented May 31, 2018

Sorry, I did not read apparently #56 :/ We thus need a polygon to be displayed for the BoundedBy element

@mhugo
Copy link
Collaborator

mhugo commented May 31, 2018

Fixed in 9b95f5b

@mhugo mhugo closed this as completed May 31, 2018
@sgrellet
Copy link
Member Author

sgrellet commented Jun 5, 2018

ok under GMLAS toolbox plugin : v1.2.0-rc7
Version de Python : 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
Version de QGIS : 3.0.1-Girona Girona, a86bec25eb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Houston, we've a problem!
Projects
None yet
Development

No branches or pull requests

2 participants