|
From: Steffen G. <ste...@in...> - 2004-07-16 13:10:19
|
Hello,
I just downloaded all required sources for the Legend and build up the
package structure in my project. Implementing it to my own application
(with Legend test = new Legend(map,"test"); - whre map is my
mapcontext) leads to the following error. What is going wrong? Does
anybody knows what the error is like?
Thanks,
Steffen.
Exception in thread "main" java.util.NoSuchElementException
at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(Unknown Source)
at java.util.LinkedHashMap$KeyIterator.next(Unknown Source)
at
org.geotools.feature.DefaultFeatureCollection$1.next(DefaultFeatureCollection.java:262)
at org.geotools.feature.FeatureIterator.next(FeatureIterator.java:56)
at
org.geotools.renderer.LegendIconMaker.reallyMakeLegendIcon(LegendIconMaker.java:282)
at
org.geotools.renderer.LegendIconMaker.makeLegendIcon(LegendIconMaker.java:167)
at
org.geotools.renderer.LegendIconMaker.makeLegendIcon(LegendIconMaker.java:157)
at
org.geotools.renderer.LegendIconMaker.makeLegendIcon(LegendIconMaker.java:147)
at
org.geotools.renderer.LegendIconMaker.makeLegendIcon(LegendIconMaker.java:152)
at org.geotools.gui.swing.Legend.constructRuleNote(Legend.java:244)
at org.geotools.gui.swing.Legend.contructLayer(Legend.java:219)
at
org.geotools.gui.swing.Legend.contructTreeModelAndLayerList(Legend.java:173)
at org.geotools.gui.swing.Legend.contextChanged(Legend.java:371)
at org.geotools.gui.swing.Legend.setMapContext(Legend.java:312)
at org.geotools.gui.swing.Legend.<init>(Legend.java:127)
at net.marengis.layout.LegendLayout.createLegend(LegendLayout.java:35)
at net.marengis.layout.MainLayout.getGui(MainLayout.java:60)
at net.marengis.layout.MainLayout.main(MainLayout.java:79)
Andrea Aime wrote:
>Alle 09:23, martedì 13 luglio 2004, Steffen Gebhardt ha scritto:
>
>
>>Hi to all,
>>
>>I am a new geotools user, which I want to be the basis for my phd
>>application of an internet based gis for visualising and anlysing ocean
>>remote sensing data. As my very first steps I created an user interface
>>including several jpanels. one for map display an other for legend, etc.
>>I visualised a basic country shp by esri which is in geographic
>>coordinates but do not know how to modify the units for the mapscalebar.
>>How to do that?
>>Another thing is to create a legend. In the api I found information
>>about a legend package which is not included in the files I downloaded,
>>which was the recent on (gt2rco and also gt2b5). what was going wrong?
>>
>>
>
>The legend package is my fault ;-) I started working on an existing
>implementation provided by a user and after much rework... I abandoned it
>since I was going nowhere and no-one was using it. It's buggy but functional
>and you can find it in the ext/legend module if you check out the svn
>sources.
>
>Best regards
>Andrea Aime
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by Black Hat Briefings & Training.
>Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
>digital self defense, top technical experts, no vendor pitches,
>unmatched networking opportunities. Visit www.blackhat.com
>_______________________________________________
>Geotools-gt2-users mailing list
>Geo...@li...
>https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
>
>
--
---------------------
Steffen Gebhardt
Informus GmbH
Gustav-Meyer-Allee 25
13355 Berlin
---------------------
|