jdeolive / geodb

Spatial database bindings for Java.
MIT License
67 stars 25 forks source link

Order of geometry_columns is wrong in AddGeometryColumn #12

Closed mjonathan closed 12 years ago

mjonathan commented 12 years ago

In InitGeoDB, the geometry_columns table is created with the following column order: f_table_name, f_geometry_column, coord_dimension, srid, type

However, in AddGeometryColumn, new entries are inserted with the srid and coord_dimension columns switched, so that the SRID ends up in the dimension column, and vice-versa.