Excellent. Thanks for letting us know Erkin. Michael
On 13 July 2011 22:14, Erkin Chomoev <[email protected]> wrote: > Hi Michael > > Thank you. it works;-) > > Erkin > > -----Ursprüngliche Nachricht----- > Von: Michael Bedward [mailto:[email protected]] > Gesendet: Mittwoch, 13. Juli 2011 12:14 > An: Erkin Chomoev > Cc: [email protected] > Betreff: Re: [Geotools-gt2-users] Problem method JMapFrame.showMap > > Hello Erkin, > > Yes, sorry about this. Quite a few changes are happening in the render > and swing modules at the moment and things are a bit flakey. > > If you can, please switch over to using version 8-SNAPSHOT where the > problems should be fixed. Instructions for using the snapshot version > with Maven are here: > > http://docs.geotools.org/stable/userguide/quickstart.html#what-is-a-geotools-snapshot-version-and-how-do-i-use-it > > Let us know if this helps. > > Michael > > On 13 July 2011 17:08, Erkin Chomoev <[email protected]> wrote: >> Hi, >> >> >> >> i have a question. I'm following the example Quickstart (Geotools 8.0) and i >> have following problem: in the method JMapFrame.showMap(map), i get error: >> The method showMap(MapContext) in the type JMapFrame is not applicable for >> the arguments (MapContent) >> >> >> >> package org.geotools.tutorial.quickstart; >> >> >> >> import java.io.File; >> >> >> >> import org.geotools.data.FileDataStore; >> >> import org.geotools.data.FileDataStoreFinder; >> >> import org.geotools.data.simple.SimpleFeatureSource; >> >> import org.geotools.map.DefaultMapContext; >> >> import org.geotools.map.MapContext; >> >> import org.geotools.swing.JMapFrame; >> >> import org.geotools.swing.data.JFileDataStoreChooser; >> >> >> >> /** >> >> * Prompts the user for a shapefile and displays the contents on the screen >> in a map frame. >> >> * <p> >> >> * This is the GeoTools Quickstart application used in documentationa and >> tutorials. * >> >> */ >> >> public class Quickstart { >> >> >> >> /** >> >> * GeoTools Quickstart demo application. Prompts the user for a >> shapefile and displays its >> >> * contents on the screen in a map frame >> >> */ >> >> public static void main(String[] args) throws Exception { >> >> // display a data store file chooser dialog for shapefiles >> >> File file = JFileDataStoreChooser.showOpenFile("shp", null); >> >> if (file == null) { >> >> return; >> >> } >> >> >> >> FileDataStore store = FileDataStoreFinder.getDataStore(file); >> >> SimpleFeatureSource featureSource = store.getFeatureSource(); >> >> >> >> // Create a map context and add our shapefile to it >> >> MapContext map = new DefaultMapContext(); >> >> map.setTitle("Quickstart"); >> >> map.addLayer(featureSource, null); >> >> >> >> // Now display the map >> >> JMapFrame.showMap(map); >> >> } >> >> >> >> } >> >> >> >> >> >> Have you any idea on way this happens? Thank you for your help >> >> >> >> Erkin >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> AppSumo Presents a FREE Video for the SourceForge Community by Eric >> Ries, the creator of the Lean Startup Methodology on "Lean Startup >> Secrets Revealed." This video shows you how to validate your ideas, >> optimize your ideas and identify your business strategy. >> http://p.sf.net/sfu/appsumosfdev2dev >> _______________________________________________ >> Geotools-gt2-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> >> > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
