Revision 47 org.gvsig.lrs/trunk/org.gvsig.lrs/org.gvsig.lrs.swing/org.gvsig.lrs.swing.impl/src/main/java/org/gvsig/lrs/swing/impl/JLrsUtils.java
JLrsUtils.java | ||
---|---|---|
111 | 111 |
/** |
112 | 112 |
* Tries to find the correct layers: |
113 | 113 |
* - At least 2 layers |
114 |
* - At least 1 curve layer with at least 1 non-geometrical field |
|
114 |
* - At least 1 curve layer with M coordinates and at least 1 non-geometrical field
|
|
115 | 115 |
* - At least 1 point layer with at least 1 non-geometrical field and 1 numeric field |
116 | 116 |
* @param LayerCollection layers |
117 | 117 |
* @return true if finds the correct layers |
118 | 118 |
*/ |
119 |
public static boolean validatedCurveAndPointLayer(LayerCollection layers){ |
|
119 |
public static boolean validatedMCurveAndPointLayer(LayerCollection layers){
|
|
120 | 120 |
boolean correctCurveLayerFound = false; |
121 | 121 |
boolean correctPointLayerFound = false; |
122 | 122 |
boolean layersFound=false; |
... | ... | |
128 | 128 |
try { |
129 | 129 |
if (!correctCurveLayerFound) { |
130 | 130 |
logger.debug( |
131 |
"Finding a curve layer with at least one non-geometrical field"); |
|
132 |
correctCurveLayerFound = |
|
133 |
CurveLayerFoundWithOneNonGeomField(lyrVect); |
|
131 |
"Finding a M curve layer with at least one non-geometrical field"); |
|
132 |
if (lyrVect.getGeometryType().isSubTypeOf(Geometry.SUBTYPES.GEOM2DM) |
|
133 |
|| lyrVect.getGeometryType().isSubTypeOf(Geometry.SUBTYPES.GEOM3DM)) { |
|
134 |
|
|
135 |
correctCurveLayerFound = CurveLayerFoundWithOneNonGeomField(lyrVect); |
|
136 |
} |
|
134 | 137 |
} |
135 | 138 |
if (!correctPointLayerFound) { |
136 | 139 |
logger.debug( |
Also available in: Unified diff