Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3852 closed enhancement (invalid)

It should be allowed to filter shapefile vector layers by id

Reported by: strk Owned by:
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: Vectors Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

It is currently impossible to filter shapefiles by id, but the id is what you get when, for example, you check for topological validity, so you have then no way to take a closer look.

Change History (5)

in reply to:  description comment:1 by jef, 13 years ago

Resolution: invalid
Status: newclosed

Replying to strk:

It is currently impossible to filter shapefiles by id

false, you the http://www.gdal.org/ogr/ogr_sql.html#ogr_sql_fid fid field (or $id in search strings)

comment:2 by strk, 13 years ago

Are you saying I can use those fieldnames in the query builder ? What about making it available in the list of fieldnames you can click on then ?

in reply to:  2 comment:3 by jef, 13 years ago

Platform: DebianAll

Replying to strk:

Are you saying I can use those fieldnames in the query builder ? What about making it available in the list of fieldnames you can click on then ?

The query build only lists the "known" fields. OGR doesn't report the fid field.

comment:4 by strk, 13 years ago

Would it then make sense for the OGR provider to report the fid field ?

in reply to:  4 comment:5 by jef, 13 years ago

Replying to strk:

Would it then make sense for the OGR provider to report the fid field ?

the field list is also used when editing. so having the ogr provider report special fields, would open other issues...

Note: See TracTickets for help on using tickets.