Arreglos ObjectID exportacion shp
parent
0f9a21eddc
commit
c7f8bb403a
|
|
@ -31,7 +31,6 @@ namespace OliviaAddInPro.Helper
|
||||||
{
|
{
|
||||||
public static class HelperGdb
|
public static class HelperGdb
|
||||||
{
|
{
|
||||||
private static string ObjectId = "OBJECTID";
|
|
||||||
private static string out_str = string.Empty;
|
private static string out_str = string.Empty;
|
||||||
public static string OutStr
|
public static string OutStr
|
||||||
{
|
{
|
||||||
|
|
@ -877,7 +876,7 @@ namespace OliviaAddInPro.Helper
|
||||||
for (i = 0; i < camps.Length; i++)
|
for (i = 0; i < camps.Length; i++)
|
||||||
{
|
{
|
||||||
//if (!fields.Any(f=>f.ToUpper().Trim().Contains(camps[i].Substring (0,Math.Min(camps[i].Length, ComunDef.MaxCaracteresBBDD)).ToUpper().Trim())))
|
//if (!fields.Any(f=>f.ToUpper().Trim().Contains(camps[i].Substring (0,Math.Min(camps[i].Length, ComunDef.MaxCaracteresBBDD)).ToUpper().Trim())))
|
||||||
if (!fields.Any(f=>f.ToUpper().Trim().Contains(camps[i].ToUpper().Trim())))
|
if (!fields.Any(f=>f.ToUpper().Trim().Equals(camps[i].ToUpper().Trim())))
|
||||||
{
|
{
|
||||||
OutStr = OutStr + camps[i] + " ";
|
OutStr = OutStr + camps[i] + " ";
|
||||||
mal++;
|
mal++;
|
||||||
|
|
@ -1452,7 +1451,7 @@ namespace OliviaAddInPro.Helper
|
||||||
}
|
}
|
||||||
//convierte la lista de ids a string para la clause de la forma
|
//convierte la lista de ids a string para la clause de la forma
|
||||||
//(id1, id2, id3..)
|
//(id1, id2, id3..)
|
||||||
string whereClause = GetWhereClauseFromIds(ids);
|
string whereClause = GetWhereClauseFromIds(ids, fc.GetDefinition().GetObjectIDField());
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
///Exporta
|
///Exporta
|
||||||
|
|
@ -1771,7 +1770,7 @@ namespace OliviaAddInPro.Helper
|
||||||
* Dada una lista de ids de elemento, crea una consulta en la que se llama a todos esos elementos
|
* Dada una lista de ids de elemento, crea una consulta en la que se llama a todos esos elementos
|
||||||
* campo IN (id1, id2, id3..)
|
* campo IN (id1, id2, id3..)
|
||||||
*/
|
*/
|
||||||
public static string GetWhereClauseFromIds(List<long> ids)
|
public static string GetWhereClauseFromIds(List<long> ids, string ObjectId = "OBJECTID")
|
||||||
{
|
{
|
||||||
if (ids.Count <= 0)
|
if (ids.Count <= 0)
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
|
|
|
||||||
|
|
@ -223,6 +223,8 @@ namespace OliviaAddInPro
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LimpiezaDef.forma_filtros();
|
||||||
|
|
||||||
amb_tra_gdb = limpServ.BuscAmbGdb(capa);
|
amb_tra_gdb = limpServ.BuscAmbGdb(capa);
|
||||||
bool hay_alguno = false;
|
bool hay_alguno = false;
|
||||||
foreach (bool b in amb_tra_gdb)
|
foreach (bool b in amb_tra_gdb)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue