Revision 43563
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.newlayer/org.gvsig.newlayer.lib/org.gvsig.newlayer.lib.impl/src/main/java/org/gvsig/newlayer/impl/FeatureTypePanel.java | ||
---|---|---|
1163 | 1163 |
|
1164 | 1164 |
|
1165 | 1165 |
private boolean isInNthElement(int val, List<int[]> arr_list, int index) { |
1166 |
|
|
1166 |
GeometryManager geomManager = GeometryLocator.getGeometryManager(); |
|
1167 | 1167 |
int len = arr_list.size(); |
1168 | 1168 |
int[] item = null; |
1169 | 1169 |
for (int i=0; i<len; i++) { |
1170 | 1170 |
item = arr_list.get(i); |
1171 |
if (item != null && item.length > index && item[index] == val) { |
|
1172 |
return true; |
|
1171 |
if (item != null && item.length > index ) { |
|
1172 |
if( geomManager.isSubtype(item[index], val) ) { |
|
1173 |
return true; |
|
1174 |
} |
|
1173 | 1175 |
} |
1174 | 1176 |
} |
1175 | 1177 |
return false; |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.jts/src/main/java/org/gvsig/fmap/geom/jts/DefaultGeometryManager.java | ||
---|---|---|
846 | 846 |
if( geomTypeParent == geomTypeChild ) { |
847 | 847 |
return true; |
848 | 848 |
} |
849 |
if( geomTypeParent == Geometry.TYPES.GEOMETRY ) { |
|
850 |
return true; |
|
851 |
} |
|
849 | 852 |
switch(geomTypeParent) { |
850 | 853 |
case Geometry.TYPES.MULTICURVE: |
851 | 854 |
return geomTypeChild==Geometry.TYPES.MULTILINE ; |
Also available in: Unified diff