Ticket #10 (closed bug report: wontfix)
geometry and unique ID columns hardwired into scripts
Reported by: | kyngchaos | Owned by: | anton |
---|---|---|---|
Priority: | major | Milestone: | Version 1.1 |
Component: | pgRouting package | Version: | |
Keywords: | Cc: |
Description
In the pgrouting scripts, the geometry column is hardwired to "the_geom" and the unique feature ID column is hardwired to "fid". These appear to be the defaults created with the shp2psql utility. But other utilities may use other column names - the defaults for GDAL with ogr2ogr are "wkb_geometry" and "ogc_fid".
The geometry column is stored in the "geometry_columns" table, so it should be looked up there.
The feature ID column isn't saved in a table, but it shouldn't be too hard to check for the obvious - "fid", "ogc_fid", and/or the first primary key or unique indexed column that is an integer type.
Change History
Note: See
TracTickets for help on using
tickets.