2025-08-23     2025-08-24     2025-08-25

ADM features with geoshape have ADMx correspond to the shape level

number of errors=1
number of warnings=0
Group=chkGrpShp

select geoname.countrycode,featurecode,level,geoname.geonameid,geoshapeid from geoname,geoname_shape where geoname.geonameid=geoname_shape.geonameid and level<>1+ replace(featurecode,'ADM','')::int and featurecode like 'ADM_' and featurecode not in ('ADMD','ADMF') order by 1

countrycode	featurecode	level	geonameid	geoshapeid	
FR	ADM2	-2	3038033	28271