Hello,

It sounds like you are asking about displaying multiple layers and
applying map styles (e.g. point symbols) - is that right ?

You have already created a FeatureLayer to display your base
shapefile. In the same way you can add further layers to your map
(e.g. points of interest) by creating a FeatureLayer for each and
adding them to the same MapContent instance.

Map styling (e.g. setting a point symbol or line style and labels) can
be done using an external SLD file or programmatically. The SLD file
is probably easiest. The Map Style tutorial explains the basic
concepts:

http://docs.geotools.org/latest/userguide/tutorial/map/style.html

The GeoServer SLD cookbook has lots of good examples of how to set
different feature styles:

http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/index.html

Michael


On 10 December 2012 20:31, Jose Angel Jimenez Perez
<[email protected]> wrote:
>
> Hello,
>
> I´m a newbie programmer and I´m making a Java desktop application as Final 
> Project Degree that implements methods for help decision locating optimist 
> places, such as renewal energies installations, business, etc. I think I´ll 
> use GeoTools.
>
> I´m finishing the app and I have the next problem:
>
> - I have a whole shapefile, with 3 files: *.shp, *.dbf, *.shx. This is a 
> compound layer, make previously with gvSIG 1.2.
>
> -  I need to show a map visor with the *.shp map. I have achieved it using 
> the first example from GeoTools´s web (API 8.4).
>
> - Next, on this map, I have to show some points or objects from *.dbf file 
> like layers, using map markers.
>
> I don´t need anymore, but I´m novice in Java and geo applications. Can you 
> help me about what I need to use in GeoTools API?
>
> Sorry for my English, I´m thank you very much.
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to