| | |
| | | import java.sql.Statement; |
| | | import java.util.*; |
| | | |
| | | import com.ximple.eofms.util.FeatureTypeBuilderUtil; |
| | | import org.geotools.data.DataSourceException; |
| | | import org.geotools.data.DataStore; |
| | | import org.geotools.data.SchemaNotFoundException; |
| | |
| | | for (int i = 0; i < descriptors.size(); i++) { |
| | | if (descriptors.get(i) instanceof GeometryDescriptor) { |
| | | // String wktTest = geometryWriter.write((Geometry) attributes.get(i)); |
| | | Geometry geom = (Geometry) attributes.get(i); |
| | | geom.setSRID(FeatureTypeBuilderUtil.getDefaultFeatureSRID()); |
| | | pstmt.setBytes(i + 1, binaryWriter.writeBinary((Geometry) attributes.get(i))); |
| | | } else { |
| | | Class<?> bindingType = ((AttributeType)descriptors.get(i).getType()).getBinding(); |