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

After create a postgis layer and filldata, Qgis dont display attributes #10193

Closed
qgib opened this issue Jun 4, 2006 · 6 comments
Closed

After create a postgis layer and filldata, Qgis dont display attributes #10193

qgib opened this issue Jun 4, 2006 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers

Comments

@qgib
Copy link
Contributor

qgib commented Jun 4, 2006

Author Name: Redmine Admin (Redmine Admin)
Original Redmine Issue: 134

Redmine category:data_provider
Assignee: Brendan Morley -


Dear sirs,

We are beginning to use QGis, however we have some problems that could be errors on your software.

We have the Windows version (0.7.3) and when connect to Postgis, we select the layer (previous created with SQL statement) and edit some points.

After stop editing and save, we leave Qgis and if we enter again on Qgis and ask for that postgis layer, Qgis recognize the database records but it can’t display the information stored on those records, leaving fields blank on attribute table.

Can you help us?

Best regards,
Abílio Magalhães

**************************************** POSTGIS LAYER:::
CREATE TABLE cli_abm
(
numregisto int8 NOT NULL,
geom geometry,
nome_cliente varchar(255),
CONSTRAINT pri_cli_abm PRIMARY KEY (numregisto),
CONSTRAINT enforce_dims_geom CHECK (ndims(geom) = 2),
CONSTRAINT enforce_geotype_geom CHECK (geometrytype(geom) = 'POINT'::text OR geom IS NULL),
CONSTRAINT enforce_srid_geom CHECK (srid(geom) = -1)
)
WITHOUT OIDS;
ALTER TABLE cli_abm OWNER TO postgres;


@qgib
Copy link
Contributor Author

qgib commented Jun 28, 2006

Author Name: Gavin Macaulay - (Gavin Macaulay -)


I think that this has been fixed in the latest SVN (#15141) version of Qgis, and is related to ticket #10212. We will hopefully have a preliminary release of 0.8 available soon that incorporates this fix.

@qgib
Copy link
Contributor Author

qgib commented Jul 10, 2006

Author Name: Brendan Morley - (Brendan Morley -)


I am currently doing some work in subversion HEAD version that should fix this if it hasn't already been fixed. It should be committed in the next few days.


  • status_id was changed from Open to In Progress

@qgib
Copy link
Contributor Author

qgib commented Aug 11, 2006

Author Name: Brendan Morley - (Brendan Morley -)


I think I've worked out the "spirit" of this bug, at least with regards to SVN HEAD.

If the attributes are edited via the attributes table, the changes "take" when saved.

If the attributes are edited via the Identify window, the changes do not take.

I will continue to investigate.

@qgib
Copy link
Contributor Author

qgib commented Aug 11, 2006

Author Name: Brendan Morley - (Brendan Morley -)


The second method fails because when it commits, it tries to commit all attributes of a changed feature instead of just the changed attributes of that changed feature (which is what the "attributes table" method already does).

In particular, the second "Identify window" method tries to set a Postgres Date type to _, which Postgres chokes on and aborts the commit.

A side issue is that the Postgres provider then doesn't report the error, which it should.

@qgib
Copy link
Contributor Author

qgib commented Aug 13, 2006

Author Name: Brendan Morley - (Brendan Morley -)


should fix this, I have put a full writeup on the commit message to .


  • status_id was changed from In Progress to Closed
  • resolution was changed from to fixed

@qgib
Copy link
Contributor Author

qgib commented Aug 21, 2009

Author Name: Anónimo (Anónimo)


Milestone Version 0.8 deleted

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers labels May 24, 2019
@qgib qgib closed this as completed May 24, 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! Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

1 participant