Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Nightly builds are back

Congratulations!

Now we're rooting for Geotools and Geotools-FM to catch up...

:-)

--adrian

On Wed, 2006-05-03 at 18:28 -0700, Cory Horner wrote:
FileNotFoundException</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=
=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     <BR>=A0=A0=A0=A0=A0=A0=A0     =
=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" =
size=3D"2">// ELSE     SEARCH ALL MAPS FOR THE CORRECT LAYER</FONT>     =
<BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=
=A0 <FONT face=3D"Arial" size=3D"2">if     (!bFound) {=A0 =A0=A0=A0=A0=A0=A0=
=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =
</FONT><BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=
=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" =
size=3D"2">ResourceSet resources =3D =
project.eResource().getResourceSet();</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0=
     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=
=A0 <FONT face=3D"Arial" size=3D"2">List     elements =3D =
resources.getResources();</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0     =
=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =
<FONT face=3D"Arial" size=3D"2">countk=3Delements.size();</FONT>     =
<BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=
=A0     =A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">for (int   =
  k=3D0;k &lt;countk; k++) {</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0     =
=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =
    =A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">resource     =
=3D(Resource)elements.get(k);</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0     =
=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =
    =A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">list =3D     =
resource.getContents();     </FONT><BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=
=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =
=A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">if (list     !=3D =
null &amp;&amp; list.size() &gt; 0) {</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0=
     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=
=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 <FONT =
face=3D"Arial" =
size=3D"2">System.out.println("mapResourceContents=3D"+(resource.getConten=
ts().get(0)).getClass().getName());=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=
=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=
=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 </FONT></P><P>=A0=A0=A0=A0=A0=A0=A0  =
   =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0=
     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" =
size=3D"2">Object     obj =3D resource.getContents().get(0);</FONT>     =
<BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=
=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=
=A0=A0 <FONT face=3D"Arial" size=3D"2">if (obj     instanceof Map) =
{=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0  =
   =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =
</FONT><BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=
=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =
=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" =
size=3D"2">processMap((Map)obj, sLayer, sPoint);</FONT>     <BR>=A0=A0=A0=A0=
=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =
=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =
<FONT face=3D"Arial" size=3D"2">}</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0   =
  =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0=
     =A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">}</FONT>     =
<BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=
=A0     =A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">}=A0=A0=A0=A0=
=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=
=A0=A0=A0     </FONT><BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =
    =A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">}</FONT>     =
<BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" =
size=3D"2">}</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" =
size=3D"2">}=A0=A0=A0=A0=A0=A0 </FONT></P><P>=A0=A0=A0=A0=A0=A0=A0 <FONT =
face=3D"Arial" size=3D"2">private boolean processMap(Map map, String =
sLayer, String sPoint)     {</FONT> <BR>=A0=A0=A0=A0=A0=A0=A0     =
=A0=A0=A0=A0=A0=A0=A0     <BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=
=A0 <FONT face=3D"Arial" size=3D"2">boolean     bLayerFound =3D =
false;</FONT> <BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 <FONT =
face=3D"Arial" size=3D"2">Layer     layer =3D findLayer(map, =
sLayer);</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =
<FONT face=3D"Arial" size=3D"2">if (layer     !=3D null) {</FONT> =
<BR>=A0=A0=A0=A0=A0=A0=A0=A0<FONT face=3D"Arial" size=3D"2"> =A0=A0=A0=A0=A0=
=A0     =A0=A0=A0=A0=A0=A0=A0 Feature feature =3D     findPoint(layer, =
sPoint);</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0  =
   =A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">bLayerFound =3D =
true;</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =
<FONT face=3D"Arial" size=3D"2">}     </FONT><BR>=A0=A0=A0=A0=A0=A0=A0   =
  =A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">return     =
bLayerFound;</FONT> <BR>=A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" =
size=3D"2">}=A0=A0=A0=A0=A0=A0 </FONT></P><BR><P>=A0=A0=A0=A0=A0=A0=A0 =
<FONT face=3D"Arial" size=3D"2">private Layer findLayer(Map map, String =
sLayer)     {=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =
</FONT><BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 <FONT =
face=3D"Arial" size=3D"2">Layer     layer =3D null;=A0=A0=A0=A0     =
=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =
    </FONT><BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 <FONT =
face=3D"Arial" size=3D"2">if (map     !=3D null ) {</FONT> <BR>=A0=A0=A0=A0=
=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 <FONT =
face=3D"Arial" size=3D"2">List     layers =3D =
map.getLayersInternal();</FONT> <BR><FONT face=3D"Arial" =
size=3D"2">=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=
=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 int count =3D layers.size();</FONT>  =
   <BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0 =A0=A0=A0     =A0=A0=A0=A0=
=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 for (int j=3D 0; j &lt; count; j++)  =
   {</FONT> <BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0 =A0=A0=A0     =
=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =
layer =3D     (Layer)layers.get(j);</FONT> <BR><FONT face=3D"Arial" =
size=3D"2">=A0=A0=A0     =A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=
=A0=A0     =A0=A0=A0=A0=A0=A0=A0 System.out.println("checking     =
layer=3D"+layer.getID());</FONT> <BR><FONT face=3D"Arial" size=3D"2">=A0=A0=
=A0 =A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =
=A0=A0=A0=A0=A0=A0=A0 if     ((layer.getID().toString()).equals(sLayer)) =
{</FONT> <BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=A0     =
=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =
    =A0=A0=A0=A0=A0=A0=A0 nMatchCount++;=A0=A0=A0     </FONT><BR><FONT =
face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =
    =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=
=A0 vtMapMatches.insertElementAt(map,     nMatchCount);=A0=A0=A0=A0=A0=A0 =
=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=
=A0=A0 </FONT></P><P><FONT face=3D"Arial" size=3D"2">=A0=A0=A0 =A0=A0=A0 =
    =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=
=A0     =A0=A0=A0=A0=A0=A0=A0     vtLayerMatches.insertElementAt(layer, =
nMatchCount);</FONT> <BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0 =A0=A0=A0=
     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=
=A0     =A0=A0=A0=A0=A0=A0=A0     =
vtFeatureMatches.insertElementAt("None", nMatchCount);</FONT> <BR><FONT =
face=3D"Arial" size=3D"2">=A0=A0=A0 =A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0  =
   =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0=
 break;</FONT> <BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0 =A0=A0=A0   =
  =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0=
 } else {</FONT> <BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0 =A0=A0=A0 =
    =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=
=A0     =A0=A0=A0=A0=A0=A0=A0 layer =3D null;</FONT> <BR><FONT =
face=3D"Arial" size=3D"2">=A0=A0=A0 =A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0  =
   =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 }</FONT> <BR><FONT =
face=3D"Arial" size=3D"2">=A0=A0=A0 =A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0  =
   =A0=A0=A0=A0=A0=A0=A0 }</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0     =
=A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">}=A0=A0=A0=A0=A0=A0 =
    =A0=A0=A0=A0=A0=A0=A0     </FONT><BR>=A0=A0=A0=A0=A0=A0=A0     =
=A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">return     =
layer;</FONT> <BR>=A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" =
size=3D"2">}=A0=A0=A0=A0=A0=A0 </FONT></P><P>=A0=A0=A0=A0=A0=A0=A0 <FONT =
face=3D"Arial" size=3D"2">private Feature findPoint(Layer layer, String =
sPoint) {</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =
<FONT face=3D"Arial" size=3D"2">=A0=A0=A0 =A0=A0=A0 </FONT><BR><FONT =
face=3D"Arial" size=3D"2">=A0=A0=A0 =A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =
Feature feature =3D null;</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0 <FONT =
face=3D"Arial" size=3D"2">=A0=A0=A0 =A0=A0=A0 String sFeatureID =3D =
"";</FONT>     <BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=A0 =
    =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 FeatureIterator =
featurReader =3D     null;</FONT> <BR>=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=
=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">FeatureCollection results =3D =
null;=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0=
     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0     =
</FONT><BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=A0     =
=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 FeatureSource resource =3D=
     null;</FONT> <BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0     =
=A0=A0 </FONT><BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=A0  =
   =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 IProgressMonitor =
monitor =3D new     NullProgressMonitor();</FONT> <BR><FONT face=3D"Arial"=
 size=3D"2">=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=
=A0=A0=A0 try {</FONT> <BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=
=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=
=A0=A0=A0 resource =3D     layer.getResource(FeatureSource.class, =
monitor);</FONT> <BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0     =A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 if (resource     !=3D =
null) {</FONT> <BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0     =A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =
results =3D     resource.getFeatures();</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0=
     =A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0 =
=A0=A0     =A0=A0=A0=A0=A0=A0=A0 featurReader =3D     =
results.features();</FONT> <BR>=A0=A0=A0=A0=A0=A0=A0     <FONT =
face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0 =
=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0=A0 while     =
(featurReader.hasNext())     {=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
     =A0=A0=A0=A0=A0=A0     </FONT><BR>=A0=A0=A0=A0=A0=A0=A0 <FONT =
face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0     =A0 =
=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =
feature=3DfeaturReader.next();</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0 =
<FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 sFeatureID =3D   =
  (String)feature.getAttribute(1);</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0 =
<FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 if =
(sFeatureID.equals(sPoint))     {</FONT> <BR>=A0=A0=A0=A0=A0=A0=A0 <FONT =
face=3D"Arial" size=3D"2">=A0=A0=A0 =A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0  =
   =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0=
     vtFeatureMatches.removeElementAt(nMatchCount);</FONT>     =
<BR>=A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=
=A0     =A0=A0=A0=A0=A0=A0=A0     =
vtFeatureMatches.insertElementAt(feature, nMatchCount);</FONT>     =
<BR>=A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=
=A0     =A0=A0=A0=A0=A0=A0=A0 break;</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0 =
<FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 }</FONT>     =
<BR>=A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0     =A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=
=A0 }</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" =
size=3D"2">=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0 =A0=A0=A0=A0=A0=
=A0=A0     featurReader.close();=A0=A0 =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=
=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0     =A0=A0=A0 =A0=A0=A0=A0=
=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0 =
</FONT><BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
     =A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 }</FONT>     <BR><FONT face=3D"Arial"=
 size=3D"2">=A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0=A0 } catch =
(IOException e)     {}</FONT> <BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0=
=A0=A0=A0=A0 </FONT><BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=A0=
=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 =
monitor.done();</FONT> <BR><FONT face=3D"Arial" size=3D"2">=A0=A0=A0=A0=A0=
=A0=A0     =A0=A0=A0=A0=A0=A0=A0     =A0=A0=A0=A0=A0=A0=A0 return =
feature;</FONT>     <BR>=A0=A0=A0=A0=A0=A0=A0 <FONT face=3D"Arial" =
size=3D"2">}</FONT> </P><P><FONT face=3D"Arial">Can anyone see why =
obtaining the map, layer and feature     references this way would mean =
that when I update the feature the Project     Explorer View lists the =
project again (shows it twice)?</FONT></P></BLOCKQUOTE>  <DIV><BR =
class=3D"khtml-block-placeholder"></DIV>I'm curious why you have to do   =
all the stuff with getResource() and so on?=A0 When you have a project =
you   should be able to call getProjectElement( IMap.class ).=A0 Which =
should   give you the list of all the maps in the project.=A0 I wouldn't =
be   surprised if you were causing the system to think that it has =
another   project.=A0=A0  <BLOCKQUOTE type=3D"cite"></BLOCKQUOTE></DIV>  =
<DIV><FONT face=3D"Arial" color=3D"#0000ff" size=3D"2"></FONT><BR =
class=3D"khtml-block-placeholder"></DIV>  =
<DIV>Jesse</DIV><BR></BLOCKQUOTE><DIV style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; =
">_______________________________________________</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ">User-friendly Desktop Internet GIS (uDig)</DIV><DIV =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><A =
href=3D"http://udig.refractions.net";>http://udig.refractions.net</A></DIV>=
<DIV style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><A =
href=3D"http://lists.refractions.net/mailman/listinfo/udig-devel";>http://l=
ists.refractions.net/mailman/listinfo/udig-devel</A></DIV> =
</BLOCKQUOTE></DIV><BR></BODY></HTML>=

--Apple-Mail-3-1034708323--


Back to the top