Frank Warmerdam created GEOT-4052:
-------------------------------------

             Summary: tutorial / eclipse doc quirk
                 Key: GEOT-4052
                 URL: https://jira.codehaus.org/browse/GEOT-4052
             Project: GeoTools
          Issue Type: Bug
          Components: docs
            Reporter: Frank Warmerdam
            Assignee: Jody Garnett


Hi Osgeo-team,

I recently followed the instructions at geotools.org using the
quickstartlink for eclipse (
http://docs.geotools.org/latest/userguide/tutorial/quickstart/eclipse.html
) . There I noticed a failure in the examplecode (the code does not work
proper):

//-codebeginning
MapContent map = new MapContent();

      Style style = SLD.createSimpleStyle(featureSource.getSchema());
      Layer layer = new FeatureLayer(featureSource, style);
      map.addLayer(layer);

      // Now display the map
      JMapFrame.showMap(map);
//codeend

Eclipse wants to cast map to MapContext. When I enter "geotools tutorial"
in google I get a tutorial on your site with the correct code (using
MapContext). Maybe you could correct the code at geotools at the
quickstart-link. People who want to start with geotools mostlikely start
with it using this quickstartlink . A false code doesn't cause a lot of
Motivation ;) .

Regards Marvin, Vienna AUT
[email protected]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to