gvSIG bugs #2694
Numeric types management of PostGIS tables
Status: | Closed | % Done: | 0% | |
---|---|---|---|---|
Priority: | Normal | Spent time: | - | |
Assignee: | José Badía | |||
Category: | Database | |||
Target version: | 2.2.0-2302 (rev. org.gvsig.desktop-2.0.89) | |||
Severity: | Major | Add-on version: | ||
gvSIG version: | 2.1.0 | Add-on build: | ||
gvSIG build: | 2237 | Add-on resolve version: | ||
Operative System: | Add-on resolve build: | |||
Keywords: | postgis, width, length, precision | Proyecto: | ||
Has patch: | Hito: | |||
Add-on name: | Unknown |
Description
PostGIS Integer values are read (and converted) in gvSIG as Double ones with length 11 and precision 10.
Example: add the spatial_ref_sys PostGIS table and convert it to DBF: the auth_srid field is converted from integer to double (11,10).
Instead, PostGIS Numeric values seem to be converted as Double with length 18 and precision 1.
For instance, this is how GDAL/OGR converts fields without an explicit width:
* Integer fields without an explicit width are treated as width 11. * Real (floating point) fields without an explicit width are treated as width 24 with 15 decimal places of precision. * String fields without an assigned width are treated as 80 characters.
(Source: http://www.gdal.org/drv_shapefile.html)
Related issues
Associated revisions
History
#1 Updated by Antonio Falciano over 9 years ago
Priority: High
Severity: Critical
An example of issue due to the wrong management of PostGIS field types is reported in #2858.
#2 Updated by Álvaro Anguix over 9 years ago
- Related to gvSIG bugs #2858: Fields of type Float have an invalid value in PostGIS layers added
#3 Updated by Antonio Falciano over 9 years ago
This issue is still present in the RC3.
#4 Updated by Álvaro Anguix about 9 years ago
- Target version set to 2.2.0-2311-rc2
- Assignee set to José Badía
#5 Updated by José Badía about 9 years ago
- Status changed from New to Fixed
PostGIS Numeric value fixed as Double (with its same characteristics of precision and width).
#6 Updated by Joaquín del Cerro Murciano about 9 years ago
- Target version changed from 2.2.0-2311-rc2 to 2.2.0-2302 (rev. org.gvsig.desktop-2.0.89)
#7 Updated by Álvaro Anguix about 9 years ago
- Status changed from Fixed to Closed