{
Logger.error("Unexpected geometry type: ", geomType);
continue;
}
GisStop stop = new GisStop();
stop.gisUpload = gisUpload;
stop.agency = gisUpload.agency;
stop.oid = feature.getID();
stop.shape = (Point)JTS.transform((Geometry)feature.getDefaultGeometry(), transform);
stop.shape.setSRID(4326);
if(gisUpload.fieldName != null)
{
FeatureAttributeFormatter attribFormatter = new FeatureAttributeFormatter(gisUpload.fieldName);
stop.stopName = attribFormatter.format(feature);
}
if(gisUpload.fieldId != null)
{
FeatureAttributeFormatter attribFormatter = new FeatureAttributeFormatter(gisUpload.fieldId);
stop.stopId = attribFormatter.format(feature);
}
if(gisUpload.fieldDescription != null)
{
FeatureAttributeFormatter attribFormatter = new FeatureAttributeFormatter(gisUpload.fieldDescription);
stop.description = attribFormatter.format(feature);
}
stop.save();
}
}
}
else
{