#292 closed defect (fixed)
Can not order by geography
Reported by: | robe | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 1.5.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
Not sure to consider this a bug or not, except that I can order by a geometry column and I can't by geography.
get error ERROR: could not identify an ordering operator for type geography.
Change History (5)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Create a test table
create table g as select lon * 100 + lat as gid, geography(st_setsrid(st_buffer(st_makepoint(lon, lat),1.0),4326)) as the_geog from ( select lon, generate_series(-80,80, 5) as lat from ( select generate_series(-175, 175, 5) as lon) as sq1) as sq2; alter table g add primary key ( gid ); create index g_geomidx on g using gist ( the_geog );
comment:3 by , 15 years ago
Any thoughts on the meaning of the >, < and = operators? I've committed a stub implementation that works against the geocentric box centers for now (r4779)
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I've committed a simple version that uses box centers. If we ever create a hhkey generator or something like that, we can do something more elegant.
Note:
See TracTickets
for help on using tickets.
For completeness these are the situations where this shows its ugly head