Hi all,
I have a question concerning the LiteRenderer: On the homepage I only
found tutorials and snippets about how to render manually created
Feature Collections, but not how to render the data i get out of shapefiles.
Currently I'm using the J2D-Renderer, but experience
OutOfMemory-Exceptions (that's why I want to use the LiteRenderer) and I
don't know how to pass the data to the renderer. I'm getting the data
out of the file this way:
--------------
URL roads = (new java.io.File("/path/to/data.shp")).toURL();
ShapefileDataStore roads_store = new ShapefileDataStore(roads);
FeatureSource roads_source = roads_store.getFeatureSource("Grundstücke");
--------------
Then I'm creating a StyledMapPane, a LineSymbolizer and a MapContext
(via new DefaultMapContext). Afer that I add the roads_source and the
roads style to the map via addLayer, set the MapContext of the mapPane
to map and pass everything to the renderer:
mapPane.getRenderer().addLayer(new RenderedMapScale());
I've read that LiteRenderer does not support StyledMapPane, so is it
generally possible to render shapefiles using the LiteRenderer, if yes, how?
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users