You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Itinero.IO.Shape.Reader.ShapefileReaderExtensions:
Bug AddToAttributeCollection(this ShapefileDataReader reader, IAttributeCollection collection) at line 49:
public static void AddToAttributeCollection(this ShapefileDataReader reader, IAttributeCollection collection)
{
var valueString = string.Empty;
for (var i = 1; i < reader.FieldCount; i++)
{
var name = reader.GetName(i);
// 5.12.23, Tom, bug
//var value = reader.GetValue(i - 1);
var value = reader.GetValue(i);
valueString = string.Empty;
if (value != null)
{
valueString = value.ToInvariantString();
}
collection.AddOrReplace(name, valueString);
}
}
The text was updated successfully, but these errors were encountered:
Itinero.IO.Shape.Reader.ShapefileReaderExtensions:
Bug AddToAttributeCollection(this ShapefileDataReader reader, IAttributeCollection collection) at line 49:
The text was updated successfully, but these errors were encountered: