GenerateCategories and OpenFromQuery

Nov 21, 2015 at 5:11 PM
Hello
I can use GenerateCategories with an ogrlayer created with OpenFromDatabase like this :
ogrIlot.OpenFromDatabase(cnxSpatialite, "geoilot_parcellaire", False)
ogrIlot.GenerateCategories("Exploitant", ctUniqueValues, 10, White, DarkBlue, ctSchemeRandom)
but it doesn't work with OpenFromQuery like this :
ogrIlot.OpenFromQuery(cnxSpatialite, "SELECT * FROM geoilot_parcellaire") 
ogrIlot.GenerateCategories("Exploitant", ctUniqueValues, 10, White, DarkBlue, ctSchemeRandom)
and there is no error...
have you a solution please ?
guen
Coordinator
Jan 21, 2016 at 3:48 PM
I'm not familiar with this workflow. I'll ask the other team members.

Regards,

Paul