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

Some features not drawn using Oracle as data source #25055

Closed
qgib opened this issue Sep 18, 2017 · 12 comments
Closed

Some features not drawn using Oracle as data source #25055

qgib opened this issue Sep 18, 2017 · 12 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Map and Legend Related to map or legend rendering

Comments

@qgib
Copy link
Contributor

qgib commented Sep 18, 2017

Author Name: Casper Børgesen (Casper Børgesen)
Original Redmine Issue: 17156
Affected QGIS version: 2.18.12
Redmine category:map_canvas


I have some coast line features stored in a Oracle database and I'm trying to show them in QGIS. See the attached image for an example.

I then right-click on the Oracle layer and select 'Save as' and save everything to a SHAPE file. I have dropped the SHAPE file below the Oracle layer in the layer panel.

In the example you can see which features QGIS renders from the Oracle layer (green) and the remaining from the SHAPE layer (red).

I would expect QGIS to render all features. What is missing here?


I have tried the same using QGIS 2.14.18 and 2.14.19 and they crashes when adding the Oracle layer. QGIS 2.18.13 does the same as 2.18.12 and so does MASTER (01468d0).


@qgib
Copy link
Contributor Author

qgib commented Sep 18, 2017

Author Name: Giovanni Manghi (@gioman)


Just making some guess here... in layer properties do you have the on the fly simplification enabled? are th geometries valid? https://docs.oracle.com/cd/E17952_01/mysql-5.7-en/spatial-convenience-functions.html#function_st-isvalid


  • priority_id was changed from High to Normal
  • crashes_corrupts_data was changed from 1 to 0

@qgib
Copy link
Contributor Author

qgib commented Sep 19, 2017

Author Name: Casper Børgesen (Casper Børgesen)


Giovanni Manghi wrote:

Just making some guess here... in layer properties do you have the on the fly simplification enabled? are th geometries valid? https://docs.oracle.com/cd/E17952_01/mysql-5.7-en/spatial-convenience-functions.html#function_st-isvalid

According to FME all features are valid (GeometryValidator with all selected).

Simplification has been turned off in settings and thats probably why its also disabled in the layer properties. I have disabled parallel rendering too.

I haven't changed anything and the problem still persists.

@qgib
Copy link
Contributor Author

qgib commented Sep 19, 2017

Author Name: Giovanni Manghi (@gioman)


Casper Børgesen wrote:

Giovanni Manghi wrote:

Just making some guess here... in layer properties do you have the on the fly simplification enabled? are th geometries valid? https://docs.oracle.com/cd/E17952_01/mysql-5.7-en/spatial-convenience-functions.html#function_st-isvalid

According to FME all features are valid (GeometryValidator with all selected).

Simplification has been turned off in settings and thats probably why its also disabled in the layer properties. I have disabled parallel rendering too.

I haven't changed anything and the problem still persists.

What about if you re-import the shapefile into the DB? Any chance to attach here the data (I personally have no chance these days to try setup an Oracle instance)?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Sep 19, 2017

Author Name: Casper Børgesen (Casper Børgesen)


Giovanni Manghi wrote:

Casper Børgesen wrote:

Giovanni Manghi wrote:

Just making some guess here... in layer properties do you have the on the fly simplification enabled? are th geometries valid? https://docs.oracle.com/cd/E17952_01/mysql-5.7-en/spatial-convenience-functions.html#function_st-isvalid

According to FME all features are valid (GeometryValidator with all selected).

Simplification has been turned off in settings and thats probably why its also disabled in the layer properties. I have disabled parallel rendering too.

I haven't changed anything and the problem still persists.

What about if you re-import the shapefile into the DB? Any chance to attach here the data (I personally have no chance these days to try setup an Oracle instance)?

I don't have access to re-import the shapefile into the database.


  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Sep 19, 2017

Author Name: Casper Børgesen (Casper Børgesen)


I zoom to an area containing features that are not rendered. I select (by area) both features which area rendered and features which are not rendered. The features which are rendered are shown as selected. I right click the layer and select "save as" and save only the selected features to as shape file. The shape file contains both the rendered and the not rendered features.

My reason for doing this is to try to eliminate the database if possible. I hope that by selecting a subset of features and saving them, what I actually is saving are the features stored in memory and not acquired directly from the database. I'm not sure though if this is true.

@qgib
Copy link
Contributor Author

qgib commented Sep 19, 2017

Author Name: Giovanni Manghi (@gioman)


Casper Børgesen wrote:

I zoom to an area containing features that are not rendered. I select (by area) both features which area rendered and features which are not rendered. The features which are rendered are shown as selected. I right click the layer and select "save as" and save only the selected features to as shape file. The shape file contains both the rendered and the not rendered features.

My reason for doing this is to try to eliminate the database if possible. I hope that by selecting a subset of features and saving them, what I actually is saving are the features stored in memory and not acquired directly from the database. I'm not sure though if this is true.

can you attach the (part of) shapefile that concerns the problematic features?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Sep 20, 2017

Author Name: Casper Børgesen (Casper Børgesen)


Giovanni Manghi wrote:

can you attach the (part of) shapefile that concerns the problematic features?

I can attach the SHAPE file I created by selecting the not-rendered features. I have also attached an image showing what is included in the SHAPE file and what is not:

  • Blue is from the Oracle database (not included in the SHAPE file).
  • Yellow is the default selection color and highlights the visible features from the Oracle database that I have selected (these are included in the SHAPE file).
  • Brown is the non-rendered Oracle features which are selected (though not visible, since they would then be yellow) and they are included in the SHAPE file.

  • 11434 was configured as qgis_oracle_missing_rendering.prj
  • status_id was changed from Feedback to Open
  • 11437 was configured as qgis_oracle_missing_rendering.shx
  • 11436 was configured as qgis_oracle_missing_rendering.shp
  • 11435 was configured as qgis_oracle_missing_rendering.qpj
  • 11433 was configured as qgis_oracle_missing_rendering.dbf
  • 11432 was configured as overview.jpg

@qgib
Copy link
Contributor Author

qgib commented Sep 21, 2017

Author Name: Giovanni Manghi (@gioman)


The vector imported in PostGIS shows just fine.

@qgib
Copy link
Contributor Author

qgib commented Sep 22, 2017

Author Name: Casper Børgesen (Casper Børgesen)


Giovanni Manghi wrote:

The vector imported in PostGIS shows just fine.

Is it possible somehow to make QGIS (master?) provide some information as to why it doesn't want to show them? Maybe it never receives the features or maybe something is wrong with what i does receive?

@qgib
Copy link
Contributor Author

qgib commented Apr 21, 2018

Author Name: Nyall Dawson (@nyalldawson)


Can you attach WKT or the Oracle geoemtry definition for the features which are missing?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Apr 23, 2018

Author Name: Casper Børgesen (Casper Børgesen)


Nyall Dawson wrote:

Can you attach WKT or the Oracle geoemtry definition for the features which are missing?

Hi Nyall.

I tried looking into this again, but I cannot reproduce the issue any more (neither in 2.18.18 or master). So I guess you can close this issue (since I cannot).

Thanks for following up on it!

@qgib
Copy link
Contributor Author

qgib commented Apr 23, 2018

Author Name: Nyall Dawson (@nyalldawson)


  • resolution was changed from to not reproducable
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Apr 23, 2018
@qgib qgib added 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
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! Map and Legend Related to map or legend rendering
Projects
None yet
Development

No branches or pull requests

1 participant