Revision 1310 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.lib/org.gvsig.geoprocess.lib.sextante/src/main/java/org/gvsig/geoprocess/lib/sextante/AbstractSextanteGeoProcess.java

View differences:

AbstractSextanteGeoProcess.java
149 149
//            types = new Class[featureType.size()];
150 150
//        }
151 151
        List<Class> types = new ArrayList();
152
        List<Integer> sizes = new ArrayList();
152 153
        List<String> theAttrNames = new ArrayList();
153 154

  
154 155
        List<FeatureAttributeDescriptor> emulateds = new ArrayList();
......
163 164
                if (attribute.getDataType().getType() != DataTypes.GEOMETRY) {
164 165
                    theAttrNames.add(attrName);
165 166
                    types.add(attribute.getObjectClass());
167
                    sizes.add(attribute.getSize());
166 168
                }
167 169
            }
168 170
        }
169 171

  
170 172
        try {
173
            int[] arraySizes = sizes.stream().mapToInt(i->i).toArray();
171 174
            FlyrVectIVectorLayer output
172 175
                    = (FlyrVectIVectorLayer) getNewVectorLayer(
173 176
                            sextanteLayerLabel,
174 177
                            sextanteLayerName,
175 178
                            shapeType,
176 179
                            types.toArray(new Class[types.size()]),
177
                            theAttrNames.toArray(new String[theAttrNames.size()])
180
                            theAttrNames.toArray(new String[theAttrNames.size()]),
181
                            arraySizes
178 182
                    );
179 183
            if (output != null) {
180 184
                FeatureStore store = output.getFeatureStore();

Also available in: Unified diff