Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Allow searching for null values #75

Closed
JasonSanford opened this issue Jul 8, 2011 · 6 comments
Closed

Allow searching for null values #75

JasonSanford opened this issue Jul 8, 2011 · 6 comments

Comments

@JasonSanford
Copy link

I had a hard time searching for null values in a TileMill project earlier.

I tried

[field is null]

[field=null]

[field='null']

[field='']

without any luck.

@springmeyer
Copy link

@JasonSanford - thanks for reporting. So [field=""] works for me with geojson datasource. What datasource were you testing with and finding no easy solution?

@JasonSanford
Copy link
Author

Oh yeah, I should have added that. I'm using a PostGIS datasource.

@springmeyer
Copy link

Okay, had a chance to look into this. It is due to some unfinished work in the mapnik PostGIS datasource driver. The fix is quite simple and easy, but I'll need to make sure there are no unintended consequences. http://trac.mapnik.org/ticket/794

My understanding from twitter is that you found a workaround for this issue and its not pressing - so I'm going to close as the issue can now be tracked upstream at http://trac.mapnik.org/ticket/794. I doubt anything in carto would affect this.

closing.

@springmeyer
Copy link

re-opening. Realizing I closed this saying I would deal with it on the mapnik side, and never ended up doing so. Needs another look (and a clean, small testcase).

@tmcw
Copy link
Contributor

tmcw commented Jan 3, 2013

[field=null] is now supported. is is not a valid operator.

@tmcw tmcw closed this as completed Jan 3, 2013
@springmeyer
Copy link

also, mapnik/mapnik#1644 is now done for postgres, meaning my comment that triggered re-opening is not fully settled. Things should be (and have been) working fine and tests now conclusively show that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants