gvSIG bugs #1531
Intersection and union don't apply the output schema correctly
| Status: | Fixed | % Done: | 100% | |
|---|---|---|---|---|
| Priority: | Normal | |||
| Assignee: | ||||
| Category: | - | |||
| Target version: | - | |||
| Severity: | Add-on name: | Unknown | ||
| gvSIG version: | 1.11.0 | Add-on version: | ||
| gvSIG build: | 1305 | Add-on build: | ||
| Operative System: | Add-on resolve version: | |||
| Keywords: | geoprocesses, intersection, union | Add-on resolve build: | ||
| Has patch: | Yes |
Description
The output schema of resulting layer of Intersection and Union geoprocesses don't match with the fields descriptions (length and precision) of the input layers. This issue is quite similar to #1530, however it involves another method of DefinitionUtils (mergeLayerDefinitions). The patch in attachment solves the problem.
See also this post on devel mailing list in which the issue :
http://joinup.ec.europa.eu/mailman/archives/gvsig-desktop-devel/2013-January/000748.html
Cheers,
Antonio
History
#1
Updated by Antonio Falciano over 13 years ago
- Target version set to 1.13.0
#2
Updated by Francisco Puga over 13 years ago
Thanks for the patch.
I change it a bit, because i think it can be a bit more concise. I rewrite it to use this:
int i = 0;
for (FieldDescription fieldDesc:firstDatasource.getFieldsDescription()) {
fields[i++] = fieldDesc;
}
for (FieldDescription fieldDesc:secondDatasource.getFieldsDescription()) {
fields[i++] = fieldDesc;
}
solution.setFieldsDesc(fields);
#3
Updated by Francisco Puga over 13 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset r39584.
#4
Updated by Francisco Puga over 13 years ago
- Assignee set to Francisco Puga
- gvSIG version changed from 1.12.0 to 1.11.0
- gvSIG build changed from 1417 to 1305
#5
Updated by Álvaro Anguix about 12 years ago
- Project changed from Application: gvSIG desktop to | gvSIG desktop 1
- Category deleted (
Geoprocess) - Target version deleted (
1.13.0)
