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

Snapping do not work for new features after save edits on oracle spatial layer #20796

Closed
qgib opened this issue May 3, 2015 · 14 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Digitizing Related to feature digitizing map tools or functionality

Comments

@qgib
Copy link
Contributor

qgib commented May 3, 2015

Author Name: Jan Lippmann (@j-lippmann)
Original Redmine Issue: 12690
Affected QGIS version: 2.8.1
Redmine category:digitising
Assignee: Jürgen Fischer


Snapping do not work for new features after save edits on oracle spatial

steps:

  1. start editing a oracle spatial polygon layer
  2. enable snapping for this layer (vertex+segment 10 pixel)
  3. create a new polygon (do not save)
  4. check snapping for the new polygon ( if snapmarker appear...) in my case snapping is working
  5. now save the polygon (save edits...)
  6. check snapping for the new polygon after saving ( snapmarker do not appear on segment or vertex) snapping is not working
  7. on other "old" polygons snapping is always working

a small screencast is in the attachement.

actual master and 2.8.1 is affected and i think only oralce spatial layer


@qgib
Copy link
Contributor Author

qgib commented May 3, 2015

Author Name: Jürgen Fischer (@jef-n)


  • assigned_to_id removed Jürgen Fischer

@qgib
Copy link
Contributor Author

qgib commented May 4, 2015

Author Name: Giovanni Manghi (@gioman)


does not happen with postgis layers. Maybe a side effect of some 3rd party plugin? could you disable them and try again? thanks.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented May 4, 2015

Author Name: Jan Lippmann (@j-lippmann)


correct. does not happen with postgis oder mssql layer. but with oracle spatial...all 3rd party plugins are disabled

i think the problem occur since the new feature "indexing data" while the first klick on "add feature" in an edit session?
debugview writes nothing distinctive...

@qgib
Copy link
Contributor Author

qgib commented May 4, 2015

Author Name: Jan Lippmann (@j-lippmann)


The problem there is also at point and line features.
if i restart the qgis project. snapping is working for all features (incl. new features from the previous edit session)

in the attachment is the create script of the tables.

can anybody confirm the problem?

thanks.
jan


  • 8655 was configured as CREATE_GIS_TABLES.sql

@qgib
Copy link
Contributor Author

qgib commented May 6, 2015

Author Name: Giovanni Manghi (@gioman)


was this an issue on previous qgis releases?

@qgib
Copy link
Contributor Author

qgib commented May 7, 2015

Author Name: Jan Lippmann (@j-lippmann)


my tests:
in qgis 2.2 this was no issue
in qgis 2.4 this was no issue
in qgis 2.6 this was no issue

@qgib
Copy link
Contributor Author

qgib commented May 9, 2015

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Feedback to Open
  • priority_id was changed from Normal to Severe/Regression

@qgib
Copy link
Contributor Author

qgib commented May 9, 2015

Author Name: Jürgen Fischer (@jef-n)


  • fixed_version_id was changed from Version 2.8.2 to Future Release - High Priority

@qgib
Copy link
Contributor Author

qgib commented Jun 8, 2015

Author Name: Jürgen Fischer (@jef-n)


Not reproducable in master or 2.8.2


  • priority_id was changed from Severe/Regression to Normal
  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Jun 8, 2015

Author Name: Jürgen Fischer (@jef-n)


  • status_id was changed from Feedback to Closed
  • resolution was changed from to worksforme

@qgib
Copy link
Contributor Author

qgib commented Jun 15, 2015

Author Name: Jan Lippmann (@j-lippmann)


Hello Jürgen, there is still a problem in my environment. what else can I check? have you tested the sample tables " CREATE_GIS_TABLES.sql"?

Thank you


  • assigned_to_id was configured as Jürgen Fischer
  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented Jun 17, 2015

Author Name: Jürgen Fischer (@jef-n)


Jan Lippmann wrote:

have you tested the sample tables " CREATE_GIS_TABLES.sql"?

Sure. Although stripped down a bit:

CREATE TABLE GIS_GRUEN_P(GID NUMBER(8, 0) DEFAULT 0 NOT NULL PRIMARY KEY, GEO_ID NUMBER(8, 0) DEFAULT 0, THE_GEOM MDSYS.SDO_GEOMETRY);
INSERT INTO MDSYS.USER_SDO_GEOM_METADATA (TABLE_NAME,COLUMN_NAME,DIMINFO,SRID) VALUES (
  'GIS_GRUEN_P','THE_GEOM',
  MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X',-2147483648,2147483647,0.00005),MDSYS.SDO_DIM_ELEMENT('Y',-2147483648,2147483647,0.00005)),
  25832
);
CREATE INDEX GIS_GRUEN_P_THE_GEOM_IDX ON GIS_GRUEN_P(THE_GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;

CREATE TABLE GIS_GRUEN_L(GID NUMBER(8, 0) DEFAULT 0 NOT NULL PRIMARY KEY, GEO_ID NUMBER(8, 0) DEFAULT 0, THE_GEOM MDSYS.SDO_GEOMETRY);
INSERT INTO MDSYS.USER_SDO_GEOM_METADATA (TABLE_NAME,COLUMN_NAME,DIMINFO,SRID) VALUES ( 
  'GIS_GRUEN_L', 'THE_GEOM',
  MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X',-2147483648,2147483647,0.00005),MDSYS.SDO_DIM_ELEMENT('Y',-2147483648,2147483647,0.00005)),
  25832
);
CREATE INDEX GIS_GRUEN_L_THE_GEOM_IDX ON GIS_GRUEN_L(THE_GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;

CREATE  TABLE GIS_GRUEN_F(GID NUMBER(8, 0) DEFAULT 0 NOT NULL PRIMARY KEY,GEO_ID NUMBER(8, 0) DEFAULT 0, THE_GEOM MDSYS.SDO_GEOMETRY);
INSERT INTO MDSYS.USER_SDO_GEOM_METADATA (TABLE_NAME,COLUMN_NAME,DIMINFO,SRID) VALUES ( 
  'GIS_GRUEN_F', 'THE_GEOM',
  MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X',-2147483648,2147483647,0.00005),MDSYS.SDO_DIM_ELEMENT('Y',-2147483648,2147483647,0.00005)),
  25832
);
CREATE INDEX GIS_GRUEN_F_THE_GEOM_IDX ON GIS_GRUEN_F(THE_GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;

Not that I left out the unused sequences - I guess you left out the triggers that make use of them. That's probably also the reason why you can save without explicitly assigning unique ids. Maybe that also interfered with the geometries cached for snapping.


  • status_id was changed from Reopened to Feedback

@qgib
Copy link
Contributor Author

qgib commented Jun 17, 2015

Author Name: Jürgen Fischer (@jef-n)


Fixed in changeset "d3df4edaedc9542830dba1a99ce1b20d2bdc5773".


  • status_id was changed from Feedback to Closed

@qgib
Copy link
Contributor Author

qgib commented Jun 21, 2015

Author Name: Jan Lippmann (@j-lippmann)


The problem is solved.

Thank You Jürgen

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Digitizing Related to feature digitizing map tools or functionality labels May 25, 2019
@qgib qgib added this to the Future Release - High Priority milestone May 25, 2019
@qgib qgib closed this as completed 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! Digitizing Related to feature digitizing map tools or functionality
Projects
None yet
Development

No branches or pull requests

1 participant