un-highlighting all the selected, and should do so without the user
needing to continue to hold the shift of command key. that said,
let's continue...
Let's not continue; lets make a bug report -
http://jira.codehaus.org/browse/UDIG-1394 (remember this is the easiest
way to contribute; next up we need a patch).
if i have multiple records selected/highlighted, and right-click to
invoke the contextual menu over-top the records/rows, and if i select
Operations > Selection to Layer, what will happen is that udig will
indeed create a new layer, and will name it the exact same name as is
named the source layer where the records were initially selected from.
if i click on that new layer in the Layers or Projects pane, and
then select the bottom Table pane, it will display the number of
Features Selected, but it will NOT load any of them, but rather it
will sit on the text 'Loading Features...' and essentially remain
there until i click something else.
Wow - okay I have verified. This is another show stopper for uDig 1.1.0;
given how late it is in the release cycle chances are this selection to
layer functionality will just be dropped. Can you make a bug report for
this and we will talk about it in this weeks IRC.
in other words, i cannot see the records/rows of the items i
highlighted and right-click selected from the source layer, of which i
used the Operations > Selection to Layer contextual menu item
selection, that indeed yeilded a new layer of the same name of the
source, and it seems to know it has the correct number of records, but
it is simply unable to display them in the table pane view. the
geo-elements are visible in the map view, and are highlighted by
default, but they are the ones on the source layer. if i turn off
that source layer, the target/result layer shows nothing.
so let's try File > Export > Layer to Shapefile > Next >
Finish(meaning leaving file name at the default). this throws an
error., indicating:
Failed to export layer file:/Volumes/BACKUP1/BACKUP/Vector/ILDEFONSO
GREEN/ILDEFONSO_GREEN_PROPERTIES.shp#ILDEFONSO_GREEN_PROPERTIES
after this error, if i change directory location, or change the file
name, it will not let me Finish, meaning, the 'Finish' button remains
gray. even if i push Back, and then Next again, the button is still
gray. so, let's cancel out and try against from File > Export > Layer
to Shapefile > Finish. nope, it errors again, even though i have
tried to change dir and file name. however, after checking in Finder
the directory in which i had asked to save the file, there is indeed a
set of 5 files(shp, fix, prj, dbf, shx). however, after adding these
to my map, i see they do not contain the records that they should
based on my earlier steps. when viewing the table attributes, i see
that the shapefile set has all the correct 'FIELDS' but has none of
the actual data/records in it's rows.
Correct; we have found a bug :-) Here is the stack trace...
java.lang.ClassCastException: org.geotools.filter.Filter$1 cannot be
cast to org.geotools.filter.AbstractFilter
at
org.geotools.index.rtree.FilterConsumer.visit(FilterConsumer.java:157)
at
org.geotools.filter.LogicFilterImpl.accept(LogicFilterImpl.java:338)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getAttributesReader(IndexedShapefileDataStore.java:469)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getFeatureReader(IndexedShapefileDataStore.java:404)
at
org.geotools.data.AbstractDataStore.getFeatureReader(AbstractDataStore.java:366)
at
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:147)
at
org.geotools.data.DefaultFeatureResults.getCount(DefaultFeatureResults.java:240)
at
org.geotools.data.store.DataFeatureCollection.size(DataFeatureCollection.java:257)
at
net.refractions.udig.tool.select.AdaptableFeatureCollection.size(Unknown
Source)
at
net.refractions.udig.ui.FeatureTableContentProvider$ContentLoader.setEnabled(Unknown
Source)
at
net.refractions.udig.ui.FeatureTableContentProvider$ContentLoader.run(Unknown
Source)
at net.refractions.udig.ui.PlatformGIS$Runner.run(Unknown Source)
at net.refractions.udig.ui.PlatformGIS$Runner.run(Unknown Source)
!ENTRY net.refractions.udig.ui 1 0 2008-06-17 13:57:50.484
!MESSAGE Error loading features
!STACK 0
java.lang.ClassCastException: org.geotools.filter.Filter$1 cannot be
cast to org.geotools.filter.AbstractFilter
at
org.geotools.index.rtree.FilterConsumer.visit(FilterConsumer.java:157)
at
org.geotools.filter.LogicFilterImpl.accept(LogicFilterImpl.java:338)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getAttributesReader(IndexedShapefileDataStore.java:469)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getFeatureReader(IndexedShapefileDataStore.java:404)
at
org.geotools.data.AbstractDataStore.getFeatureReader(AbstractDataStore.java:366)
at
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:147)
at
org.geotools.data.DefaultFeatureResults.getCount(DefaultFeatureResults.java:240)
at
org.geotools.data.store.DataFeatureCollection.size(DataFeatureCollection.java:257)
at
net.refractions.udig.tool.select.AdaptableFeatureCollection.size(Unknown
Source)
at
net.refractions.udig.ui.FeatureTableContentProvider$ContentLoader.setEnabled(Unknown
Source)
at
net.refractions.udig.ui.FeatureTableContentProvider$ContentLoader.run(Unknown
Source)
at net.refractions.udig.ui.PlatformGIS$Runner.run(Unknown Source)
at net.refractions.udig.ui.PlatformGIS$Runner.run(Unknown Source)
I have run into this bug on trunk and fixed it there; I ran into it in a
different manner ... can you confirm you are getting a similar stack
trace and create the bug report. I have more then used my time answering
email today; thanks for the entertaining conversation.
Jody
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel