Opened 15 years ago

Closed 15 years ago

#1941 closed bug (fixed)

save as shapefile leads to disordered attributes (PostGIS)

Reported by: hdus Owned by: nobody
Priority: critical: causes crash or data corruption Milestone: Version 1.4.0
Component: Data Provider Version: Trunk
Keywords: Cc: cedric.moeri@…
Must Fix for Release: Yes Platform: All
Platform Version: Awaiting user input: no

Description

  1. load a postgis layer
  2. save the loaded layer as shapefile
  3. open attribute table

=> the resultant attributes doesn't correspond with the original attibutes from postgis layer

Release 1.2.0 and trunk

Change History (4)

comment:1 by cmoe, 15 years ago

Cc: cedric.moeri@… added

comment:2 by jef, 15 years ago

Is it just a different order of attributes or do fieldnames and content get mixed up?

in reply to:  2 ; comment:3 by cmoe, 15 years ago

Replying to jef:

Is it just a different order of attributes or do fieldnames and content get mixed up?

They get mixed up.

It looks like the second column is filled with null-values, and the following columns are wrong by one place and then get mixed up by wrong data types. Chars are all zero, dates get only the year.

The layers that I tested, have the geometry column on second place, maybe there is something wrong with?

in reply to:  3 comment:4 by jef, 15 years ago

Resolution: fixed
Status: newclosed

Replying to cmoe:

The layers that I tested, have the geometry column on second place, maybe there is something wrong with?

Yes. That was it. Should be fixed in r11698.

Sorry for the long delay - svn.osgeo.org was unresponsive ;)

Note: See TracTickets for help on using tickets.