<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hello.<br><br><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b">Excuse me my English, it's not my native language.</span></span><br><br>I need to convert the names (string) of classes, in some fields of a Shapefile, to the respective numerical values of the database.<br><br>In some cases, the fields have up to 3 different classes, for different rows.<br><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><br>CLASS A = 1</span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">CLASS B = 2</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">CLASS B = 3<br><br>The destination table, this already exists, and contains many other fields, this using ogr2ogr.exe, from Windows CMD.<br><br>How to indicate to ogr2ogr.exe, which performs a query first, to obtain the numerical value of the '

CLASS B', from PostGIS.<br><br>In this way insert the value 2 in the table.<br><br><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b">Thank you</span></span><br></div></div>