Closed palmerj closed 10 years ago
@palmerj thanks for the info. Looks like a projection issue. What search did you do to get the search results causing this error? Is QGIS in a certain projection?
I have one layer added in EPSG:3857 without OTF re-projection enabled. I did a mapcanvas extents query.
@palmerj I was able to reproduce this issue. The problem looks like the LINZ CSW is returning swapped coordinates mismatched against the crs it declares:
<ows:BoundingBox crs="urn:ogc:def:crs:EPSG:6.6:4326">
<ows:LowerCorner>-156.8374237 -78.3520774</ows:LowerCorner>
<ows:UpperCorner>158.6967171 -7.3167891</ows:UpperCorner>
</ows:BoundingBox>
The crs
attribute axis order should be y x.
Furthermore, some records from the LINZ CSW return invalid crs
attributes:
<ows:BoundingBox crs="urn:ogc:def:crs:::urn:ogc:def:crs:EPSG::2193">
<ows:LowerCorner>177.992964135 -45.5189597448</ows:LowerCorner>
<ows:UpperCorner>168.914923752 -34.7674506956</ows:UpperCorner>
</ows:BoundingBox>
Hi Tom,
Do you have the URLs that produce those invalid bounding boxes?
Thanks Jeremy
Thanks Tom. I will get the CSW feed fixed.
I get the following error when selecting at searched dataset in Search Tab
Traceback (most recent call last): File "/usr/share/qgis/python/plugins/MetaSearch/dialogs/maindialog.py", line 548, in record_clicked geom.transform(ctr) Exception: unknown
I was using the LINZ Data Service service.