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

Strange (Geopackage?) behaviour #25762

Closed
qgib opened this issue Jan 16, 2018 · 5 comments
Closed

Strange (Geopackage?) behaviour #25762

qgib opened this issue Jan 16, 2018 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Map and Legend Related to map or legend rendering

Comments

@qgib
Copy link
Contributor

qgib commented Jan 16, 2018

Author Name: Richard Duivenvoorde (@rduivenvoorde)
Original Redmine Issue: 17867
Affected QGIS version: master
Redmine category:map_canvas


See https://gis.stackexchange.com/questions/267642/missing-a-feature-after-digitalization-of-a-geopackage-vector-in-qgis

Attached Geopackage has 3 features, epsg:3006

When you zoom out you see the third (newly digitized) one in the Mapcanvas
But zooming in it vanishes.

In attribute table you can always see it, can even copy paste it from there:

wkt_geom	fid	Id	river	reach
LineString (540748.95155992545187473 6445081.75009414739906788, 540770.64956660254392773 6445291.18302816152572632, 540754.61190949333831668 6445435.52194214425981045, 540731.02711962687317282 6445495.89900420233607292, 540680.0839735153131187 6445643.06809296924620867, 540654.65020835073664784 6445727.73851544689387083)	3	3	Stangan	upstream

If you instruct QGIS to copy/paste geojson:

{ "type": "FeatureCollection",
    "features":[
{
   "type":"Feature",
   "id":3,
   "bbox":[15.690706, 58.145171, 15.6926, 58.150981],
   "geometry":
   {"type": "LineString", "coordinates": [ [15.692195, 58.145171], [15.6926, 58.14705], [15.692353, 58.148348], [15.691963, 58.148892], [15.691123, 58.150219], [15.690706, 58.150981]]},
   "properties":{
      "fid":3,
      "Id":3,
      "river":"Stangan",
      "reach":"upstream"
   }
}
]}

And then it is a valid geometry to, for example paste it to http://geojson.io to view it.

Coordinates seem fine.

But you cannot select it in QGIS either???


@qgib
Copy link
Contributor Author

qgib commented Jan 16, 2018

Author Name: Richard Duivenvoorde (@rduivenvoorde)


Other observation: if you save the gpkg as an Esri Shapefile, and load it in QGIS it behaves perfectly normal...

@qgib
Copy link
Contributor Author

qgib commented Jan 17, 2018

Author Name: Jérôme Guélat (Jérôme Guélat)


Everything seems to be OK if you save the GeoPackage as a new GeoPackage... Maybe there's a problem with the spatial index (see #24066)

@qgib
Copy link
Contributor Author

qgib commented Jun 18, 2018

Author Name: Johannes Kroeger (Johannes Kroeger)


I dropped the index from the file via SQLite and afterwards it displayed fine in QGIS. So another vote that this is a bad spatial index in the file and not a QGIS bug.

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2019

Author Name: Giovanni Manghi (@gioman)


Please check if this issue is still valid on QGIS 3.4.5 or 3.6.


  • status_id was changed from Open to Feedback

@qgib qgib added Feedback Waiting on the submitter for answers Bug Either a bug report, or a bug fix. Let's hope for the latter! Map and Legend Related to map or legend rendering labels May 25, 2019
@gioman
Copy link
Contributor

gioman commented Aug 25, 2019

Closing for lack of feedback, please reopen if necessary.

@gioman gioman closed this as completed Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Map and Legend Related to map or legend rendering
Projects
None yet
Development

No branches or pull requests

2 participants