Display_map_JMapPane

14 messages Options
Embed this post
Permalink
iceDice

Display_map_JMapPane

Reply Threaded More More options
Print post
Permalink
Hello,

I have streets layer and want to display them on JMapPane. I use SLD which define street outline and fill.
However when i display streets outline edges are not sharp at all, they look like composed from many dashed lines.
I am working on Linux uBuntu.
I tried same data and SLD on uDig (also on Linux) and results are much better and edges are much more sharpen.
I am interested what i am doing wrong or it is more Swing-SWT question?

Thanks.
mbedward

Fwd: Display_map_JMapPane

Reply Threaded More More options
Print post
Permalink
The honest answer is I don't know but you might like to try turning on
anti-aliasing of lines to see if that gives a more pleasing effect
with JMapPane...

       GTRenderer renderer = new StreamingRenderer();

       RenderingHints hints = new RenderingHints(
               RenderingHints.KEY_ANTIALIASING,
               RenderingHints.VALUE_ANTIALIAS_ON);

       renderer.setJava2DHints(hints);
       myMapPane.setRenderer( renderer );

Note that this might slow down rendering quite a bit if you have a lot
of features.

Michael


2009/9/8 iceDice <[hidden email]>:

>
> Hello,
>
> I have streets layer and want to display them on JMapPane. I use SLD which
> define street outline and fill.
> However when i display streets outline edges are not sharp at all, they look
> like composed from many dashed lines.
> I am working on Linux uBuntu.
> I tried same data and SLD on uDig (also on Linux) and results are much
> better and edges are much more sharpen.
> I am interested what i am doing wrong or it is more Swing-SWT question?
>
> Thanks.
> --
> View this message in context: http://n2.nabble.com/Display-map-JMapPane-tp3602321p3602321.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Geotools-gt2-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Stefan Tzeggai

Re: Display_map_JMapPane

Reply Threaded More More options
Print post
Permalink
In reply to this post by iceDice
Am Dienstag 08 September 2009 12:11:44 schrieb iceDice:

> Hello,
>
> I have streets layer and want to display them on JMapPane. I use SLD which
> define street outline and fill.
> However when i display streets outline edges are not sharp at all, they
> look like composed from many dashed lines.
> I am working on Linux uBuntu.
> I tried same data and SLD on uDig (also on Linux) and results are much
> better and edges are much more sharpen.
> I am interested what i am doing wrong or it is more Swing-SWT question?
>
> Thanks.

Please send me a screenshot and the SLD if Michael's tip didn't help.

Greetz
Steve
--
email [hidden email]

reclaim your net - http://tor.eff.org
enforce privacy - http://www.pgpi.org
pgp key id: 51B576FD - http://pgp.mit.edu

Please note that according to the German law on data retention,
information on every electronic information exchange with me is
retained for a period of six months.



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
My last name will change from Krüger to Tzeggai in mid 2010.
iceDice

Re: Display_map_JMapPane

Reply Threaded More More options
Print post
Permalink
Hello,

Thanks to Michael tip i got much better result, lines are now much more sharper.

Best regards.

Stefan Krüger-4 wrote:
Am Dienstag 08 September 2009 12:11:44 schrieb iceDice:
> Hello,
>
> I have streets layer and want to display them on JMapPane. I use SLD which
> define street outline and fill.
> However when i display streets outline edges are not sharp at all, they
> look like composed from many dashed lines.
> I am working on Linux uBuntu.
> I tried same data and SLD on uDig (also on Linux) and results are much
> better and edges are much more sharpen.
> I am interested what i am doing wrong or it is more Swing-SWT question?
>
> Thanks.

Please send me a screenshot and the SLD if Michael's tip didn't help.

Greetz
Steve
--
email krueger@wikisquare.de

reclaim your net - http://tor.eff.org
enforce privacy - http://www.pgpi.org
pgp key id: 51B576FD - http://pgp.mit.edu

Please note that according to the German law on data retention,
information on every electronic information exchange with me is
retained for a period of six months.



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: Display_map_JMapPane

Reply Threaded More More options
Print post
Permalink
Good to hear that :)

Michael


2009/9/11 iceDice <[hidden email]>:
>
> Hello,
>
> Thanks to Michael tip i got much better result, lines are now much more
> sharper.
>
> Best regards.
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
iceDice

Re: Display_map_JMapPane

Reply Threaded More More options
Print post
Permalink
Hello Michael,

I tried to embed my map in JMapFrame but got some problems.
I work with JMapPane until now, and succeed to display roads and labels
and style them properly.
However when i use JMapFrame instead, i got completely same map look,
apart that labels are not placed along streets anymore but default (horizontally).
I use same SLD in both cases with:
<LabelPlacement>
  <LinePlacement>
  </LinePlacement>
</LabelPlacement>

I use jars from 2.6-SNAPSHOT to get JMapFrame to work.
Do you have any idea what is problem?

Best regards.


mbedward wrote:
Good to hear that :)

Michael


2009/9/11 iceDice <nmilasinovic@gmail.com>:
>
> Hello,
>
> Thanks to Michael tip i got much better result, lines are now much more
> sharper.
>
> Best regards.
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: Display_map_JMapPane

Reply Threaded More More options
Print post
Permalink
2009/9/11 iceDice wrote:
>
> I use jars from 2.6-SNAPSHOT to get JMapFrame to work.
> Do you have any idea what is problem?

Were you using GeoTools 2.5 when you got the correct results ?

Label placement - in fact, rendering of everything - is the
responsibility of the renderer. JMapPane is just displaying the
results (just a dumb panel in other words :)

What actually happens is that the renderer is asked to draw the
features and labels within the current map area into a BufferedImage
and this is then displayed by the map pane. The same basic method is
used in 2.5 and 2.6 versions.

So I'm guessing that the label differences are caused by changes in
GeoTools rendering code between 2.5 and 2.6.  For this I'll have to
defer to Andrea (copying this message to him) because I don't know
enough about the rendering and styling logic myself. Hopefully he can
suggest an explanation (e.g. changes in treatment of SLD).

Meanwhile, if it's possible to send me a small sample of data and your
SLD that works in 2.5 but not in 2.6 I will try it here and see if I
can spot something.

Michael

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
iceDice

Re: [Geotools-gt2-users] Display_map_JMapPane

Reply Threaded More More options
Print post
Permalink
Hello Michael,

I will send to you my sample code and data but maybe it is better if you can give
me your e-mail address because dataset is little to big to be sent via Nabble.

Best regards.

2009/9/11 mbedward (via Nabble) <[hidden email]>
2009/9/11 iceDice wrote:
>
> I use jars from 2.6-SNAPSHOT to get JMapFrame to work.
> Do you have any idea what is problem?

Were you using GeoTools 2.5 when you got the correct results ?

Label placement - in fact, rendering of everything - is the
responsibility of the renderer. JMapPane is just displaying the
results (just a dumb panel in other words :)

What actually happens is that the renderer is asked to draw the
features and labels within the current map area into a BufferedImage
and this is then displayed by the map pane. The same basic method is
used in 2.5 and 2.6 versions.

So I'm guessing that the label differences are caused by changes in
GeoTools rendering code between 2.5 and 2.6.  For this I'll have to
defer to Andrea (copying this message to him) because I don't know
enough about the rendering and styling logic myself. Hopefully he can
suggest an explanation (e.g. changes in treatment of SLD).

Meanwhile, if it's possible to send me a small sample of data and your
SLD that works in 2.5 but not in 2.6 I will try it here and see if I
can spot something.

Michael

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

iceDice

Re: [Geotools-gt2-users] Display_map_JMapPane

Reply Threaded More More options
Print post
Permalink
Hello Michael,

I solved problem with Label orientation, probably i used some bad packages for styling,
but i am not fairly sure what was problem.
However i now have another issue. I got exception in JMapPane setMapContext(MapContext context):

Exception in thread "main" java.lang.NoSuchMethodError: org.geotools.map.MapLayer.setSelected(Z)V
    at org.geotools.demo.swing.JMapPane.setMapContext(JMapPane.java:381)
    at org.geotools.demo.mapframe.JMapFrame.setMapContext(JMapFrame.java:324)
    at org.geotools.demo.mapframe.JMapFrame.showMap(JMapFrame.java:98)

I use new gt-render-2.6-SNAPSHOT and i don't know what i am doing wrong.

Best regards.

iceDice wrote:
Hello Michael,

I will send to you my sample code and data but maybe it is better if you can
give
me your e-mail address because dataset is little to big to be sent via
Nabble.

Best regards.

2009/9/11 mbedward (via Nabble)
<ml-user+64610-144752307@n2.nabble.com<ml-user%2B64610-144752307@n2.nabble.com>
>

> 2009/9/11 iceDice wrote:
> >
> > I use jars from 2.6-SNAPSHOT to get JMapFrame to work.
> > Do you have any idea what is problem?
>
> Were you using GeoTools 2.5 when you got the correct results ?
>
> Label placement - in fact, rendering of everything - is the
> responsibility of the renderer. JMapPane is just displaying the
> results (just a dumb panel in other words :)
>
> What actually happens is that the renderer is asked to draw the
> features and labels within the current map area into a BufferedImage
> and this is then displayed by the map pane. The same basic method is
> used in 2.5 and 2.6 versions.
>
> So I'm guessing that the label differences are caused by changes in
> GeoTools rendering code between 2.5 and 2.6.  For this I'll have to
> defer to Andrea (copying this message to him) because I don't know
> enough about the rendering and styling logic myself. Hopefully he can
> suggest an explanation (e.g. changes in treatment of SLD).
>
> Meanwhile, if it's possible to send me a small sample of data and your
> SLD that works in 2.5 but not in 2.6 I will try it here and see if I
> can spot something.
>
> Michael
>
> ------------------------------------------------------------------------------
>
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Geotools-gt2-users mailing list
> [hidden email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3625053&i=0>
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
> ------------------------------
>  View message @
> http://n2.nabble.com/Display-map-JMapPane-tp3602321p3625053.html
> To unsubscribe from Re: Display_map_JMapPane, click here< (link removed) >.
>
>
>
mbedward

Re: Display_map_JMapPane

Reply Threaded More More options
Print post
Permalink
In reply to this post by iceDice
Hi IceDice,

I'm taking this discussion back on to the list as it might be useful for others.

The good news is that I got your shapefile to display in JMapFrame
after making a few changes to your code.

The bad news is that I think there are problems with your SLD because
I can't get it to display either with JMapFrame or using uDig.

I'm still not certain why you were seeing the "method not found error"
for MapLayer.setSelected but I think it was probably a spurious
message caused by other problems.  The main problem was the use of the
deprecated DefaultMapContext constructor (it should really be removed
from GeoTools).  The map context needs a CRS to work properly
otherwise when it tries to retrieve bounds it will throw an exception.
 You'll see I've modified your code to load the CRS from the shapefile
and, if there isn't one, to use a default CRS.

I created a simple SLD file to prove that JMapFrame can display your
features :-)  I cheated and used uDig to generate this SLD. The app
loads the SLD file (simple.sld) from the resources folder. If you want
to work with SLD files rather than creating styles programmatically,
it's a lot easier to do it like this rather than have to edit them
into Java Strings.  Hopefully you can use simple.sld as a starting
point to get your desired style working.

I also added use of the new JFileDataStoreChooser to your app to
prompt for the shapefile.

I'll email the modified project to you directly after this. It's set
up as a maven project but you should be able to drop the source file
and the resources folder into your java project directly. Below is a
list of the jars that maven says the app requires.

Please let me know how you go.

Michael

[INFO] [dependency:tree]
[INFO] org.geotools.test:example:jar:1.0-SNAPSHOT
[INFO] +- junit:junit:jar:4.4:test
[INFO] +- org.geotools:gt-main:jar:2.6-SNAPSHOT:compile
[INFO] |  +- org.geotools:gt-api:jar:2.6-SNAPSHOT:compile
[INFO] |  +- com.vividsolutions:jts:jar:1.10:compile
[INFO] |  +- jdom:jdom:jar:1.0:compile
[INFO] |  \- commons-beanutils:commons-beanutils:jar:1.7.0:compile
[INFO] |     \- commons-logging:commons-logging:jar:1.0.3:compile
[INFO] +- org.geotools:gt-render:jar:2.6-SNAPSHOT:compile
[INFO] |  +- org.geotools:gt-coverage:jar:2.6-SNAPSHOT:compile
[INFO] |  +- org.geotools:gt-cql:jar:2.6-SNAPSHOT:compile
[INFO] |  \- org.apache.xmlgraphics:batik-transcoder:jar:1.7:compile
[INFO] |     +- org.apache.xmlgraphics:fop:jar:0.94:compile
[INFO] |     |  +- org.apache.xmlgraphics:xmlgraphics-commons:jar:1.2:compile
[INFO] |     |  \- commons-io:commons-io:jar:1.1:compile
[INFO] |     +- org.apache.xmlgraphics:batik-awt-util:jar:1.7:compile
[INFO] |     +- org.apache.xmlgraphics:batik-bridge:jar:1.7:compile
[INFO] |     |  +- org.apache.xmlgraphics:batik-anim:jar:1.7:compile
[INFO] |     |  +- org.apache.xmlgraphics:batik-css:jar:1.7:compile
[INFO] |     |  +- org.apache.xmlgraphics:batik-ext:jar:1.7:compile
[INFO] |     |  +- org.apache.xmlgraphics:batik-parser:jar:1.7:compile
[INFO] |     |  +- org.apache.xmlgraphics:batik-script:jar:1.7:compile
[INFO] |     |  \- xalan:xalan:jar:2.6.0:compile
[INFO] |     +- org.apache.xmlgraphics:batik-dom:jar:1.7:compile
[INFO] |     +- org.apache.xmlgraphics:batik-gvt:jar:1.7:compile
[INFO] |     +- org.apache.xmlgraphics:batik-svg-dom:jar:1.7:compile
[INFO] |     +- org.apache.xmlgraphics:batik-svggen:jar:1.7:compile
[INFO] |     +- org.apache.xmlgraphics:batik-util:jar:1.7:compile
[INFO] |     +- org.apache.xmlgraphics:batik-xml:jar:1.7:compile
[INFO] |     +- xml-apis:xml-apis:jar:1.3.04:compile
[INFO] |     \- xml-apis:xml-apis-ext:jar:1.3.04:compile
[INFO] +- org.geotools:gt-referencing:jar:2.6-SNAPSHOT:compile
[INFO] |  +- java3d:vecmath:jar:1.3.2:compile
[INFO] |  +- commons-pool:commons-pool:jar:1.3:compile
[INFO] |  \- org.geotools:gt-metadata:jar:2.6-SNAPSHOT:compile
[INFO] |     +- org.opengis:geoapi:jar:2.3-M1:compile
[INFO] |     +- org.opengis:geoapi-pending:jar:2.3-M1:compile
[INFO] |     \- net.java.dev.jsr-275:jsr-275:jar:1.0-beta-2:compile
[INFO] +- org.geotools:gt-epsg-hsql:jar:2.6-SNAPSHOT:compile
[INFO] |  \- hsqldb:hsqldb:jar:1.8.0.7:compile
[INFO] +- org.geotools:gt-shapefile:jar:2.6-SNAPSHOT:compile
[INFO] \- org.geotools:gt-swing:jar:2.6-SNAPSHOT:compile
[INFO]    \- com.miglayout:miglayout:jar:swing:3.7:compile

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
iceDice

Re: Display_map_JMapPane

Reply Threaded More More options
Print post
Permalink
Hi Michael,

First some good news :)
I try out your example and get it to work (there is no more mysterious MethodNotFound exception).
First i manage it to work with your SLD, and also with mine SLD (what you need
to do is to resize JMapFrame and streets will show up when styled with my SLD).

But bad news is that i got all labels aligned horizontally and for some reason SLD
parser ignore LinePlacement, both with your and mine SLD.
Did you get labels aligned properly (along streets)?
If don't, i afraid it is question for some SLD specialist.

Many thanks for all your help!

Best regards.

mbedward wrote:
Hi IceDice,

I'm taking this discussion back on to the list as it might be useful for others.

The good news is that I got your shapefile to display in JMapFrame
after making a few changes to your code.

The bad news is that I think there are problems with your SLD because
I can't get it to display either with JMapFrame or using uDig.

I'm still not certain why you were seeing the "method not found error"
for MapLayer.setSelected but I think it was probably a spurious
message caused by other problems.  The main problem was the use of the
deprecated DefaultMapContext constructor (it should really be removed
from GeoTools).  The map context needs a CRS to work properly
otherwise when it tries to retrieve bounds it will throw an exception.
 You'll see I've modified your code to load the CRS from the shapefile
and, if there isn't one, to use a default CRS.

I created a simple SLD file to prove that JMapFrame can display your
features :-)  I cheated and used uDig to generate this SLD. The app
loads the SLD file (simple.sld) from the resources folder. If you want
to work with SLD files rather than creating styles programmatically,
it's a lot easier to do it like this rather than have to edit them
into Java Strings.  Hopefully you can use simple.sld as a starting
point to get your desired style working.

I also added use of the new JFileDataStoreChooser to your app to
prompt for the shapefile.

I'll email the modified project to you directly after this. It's set
up as a maven project but you should be able to drop the source file
and the resources folder into your java project directly. Below is a
list of the jars that maven says the app requires.

Please let me know how you go.

Michael

[INFO] [dependency:tree]
[INFO] org.geotools.test:example:jar:1.0-SNAPSHOT
[INFO] +- junit:junit:jar:4.4:test
[INFO] +- org.geotools:gt-main:jar:2.6-SNAPSHOT:compile
[INFO] |  +- org.geotools:gt-api:jar:2.6-SNAPSHOT:compile
[INFO] |  +- com.vividsolutions:jts:jar:1.10:compile
[INFO] |  +- jdom:jdom:jar:1.0:compile
[INFO] |  \- commons-beanutils:commons-beanutils:jar:1.7.0:compile
[INFO] |     \- commons-logging:commons-logging:jar:1.0.3:compile
[INFO] +- org.geotools:gt-render:jar:2.6-SNAPSHOT:compile
[INFO] |  +- org.geotools:gt-coverage:jar:2.6-SNAPSHOT:compile
[INFO] |  +- org.geotools:gt-cql:jar:2.6-SNAPSHOT:compile
[INFO] |  \- org.apache.xmlgraphics:batik-transcoder:jar:1.7:compile
[INFO] |     +- org.apache.xmlgraphics:fop:jar:0.94:compile
[INFO] |     |  +- org.apache.xmlgraphics:xmlgraphics-commons:jar:1.2:compile
[INFO] |     |  \- commons-io:commons-io:jar:1.1:compile
[INFO] |     +- org.apache.xmlgraphics:batik-awt-util:jar:1.7:compile
[INFO] |     +- org.apache.xmlgraphics:batik-bridge:jar:1.7:compile
[INFO] |     |  +- org.apache.xmlgraphics:batik-anim:jar:1.7:compile
[INFO] |     |  +- org.apache.xmlgraphics:batik-css:jar:1.7:compile
[INFO] |     |  +- org.apache.xmlgraphics:batik-ext:jar:1.7:compile
[INFO] |     |  +- org.apache.xmlgraphics:batik-parser:jar:1.7:compile
[INFO] |     |  +- org.apache.xmlgraphics:batik-script:jar:1.7:compile
[INFO] |     |  \- xalan:xalan:jar:2.6.0:compile
[INFO] |     +- org.apache.xmlgraphics:batik-dom:jar:1.7:compile
[INFO] |     +- org.apache.xmlgraphics:batik-gvt:jar:1.7:compile
[INFO] |     +- org.apache.xmlgraphics:batik-svg-dom:jar:1.7:compile
[INFO] |     +- org.apache.xmlgraphics:batik-svggen:jar:1.7:compile
[INFO] |     +- org.apache.xmlgraphics:batik-util:jar:1.7:compile
[INFO] |     +- org.apache.xmlgraphics:batik-xml:jar:1.7:compile
[INFO] |     +- xml-apis:xml-apis:jar:1.3.04:compile
[INFO] |     \- xml-apis:xml-apis-ext:jar:1.3.04:compile
[INFO] +- org.geotools:gt-referencing:jar:2.6-SNAPSHOT:compile
[INFO] |  +- java3d:vecmath:jar:1.3.2:compile
[INFO] |  +- commons-pool:commons-pool:jar:1.3:compile
[INFO] |  \- org.geotools:gt-metadata:jar:2.6-SNAPSHOT:compile
[INFO] |     +- org.opengis:geoapi:jar:2.3-M1:compile
[INFO] |     +- org.opengis:geoapi-pending:jar:2.3-M1:compile
[INFO] |     \- net.java.dev.jsr-275:jsr-275:jar:1.0-beta-2:compile
[INFO] +- org.geotools:gt-epsg-hsql:jar:2.6-SNAPSHOT:compile
[INFO] |  \- hsqldb:hsqldb:jar:1.8.0.7:compile
[INFO] +- org.geotools:gt-shapefile:jar:2.6-SNAPSHOT:compile
[INFO] \- org.geotools:gt-swing:jar:2.6-SNAPSHOT:compile
[INFO]    \- com.miglayout:miglayout:jar:swing:3.7:compile

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: Display_map_JMapPane

Reply Threaded More More options
Print post
Permalink
> First some good news :)
> I try out your example and get it to work (there is no more mysterious
> MethodNotFound exception).

Woo-hoo ! Progress :-)

> First i manage it to work with your SLD, and also with mine SLD (what you
> need
> to do is to resize JMapFrame and streets will show up when styled with my
> SLD).

Ah of course, I forgot about the min/max scale.

> But bad news is that i got all labels aligned horizontally and for some
> reason SLD parser ignore LinePlacement, both with your and mine SLD.
> Did you get labels aligned properly (along streets)?
> If don't, i afraid it is question for some SLD specialist.

The labels are aligned with the roads when I use your SLD. Here is a
screen capture...

http://imagebin.org/64205

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
iceDice

Re: [Geotools-gt2-users] Display_map_JMapPane

Reply Threaded More More options
Print post
Permalink
Hi Michael,

Everything works for me now except that i still don't get labels aligned properly.
We use the same main class and i don't know what might be problem now - maybe referenced jars.

I used your pom.xml and tried to get all required jars with maven but maven cannot
find geotools-2.6-SNAPSHOT jars in any location.
Can you give me link to the location from where you get geotools-2.6-SNAPSHOT jars or
you managed to get it by maven?

Best regards.

2009/9/17 mbedward (via Nabble) <[hidden email]>
> First some good news :)
> I try out your example and get it to work (there is no more mysterious
> MethodNotFound exception).

Woo-hoo ! Progress :-)

> First i manage it to work with your SLD, and also with mine SLD (what you
> need
> to do is to resize JMapFrame and streets will show up when styled with my
> SLD).

Ah of course, I forgot about the min/max scale.

> But bad news is that i got all labels aligned horizontally and for some
> reason SLD parser ignore LinePlacement, both with your and mine SLD.
> Did you get labels aligned properly (along streets)?
> If don't, i afraid it is question for some SLD specialist.

The labels are aligned with the roads when I use your SLD. Here is a
screen capture...

http://imagebin.org/64205

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf

_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

mbedward

Re: Display_map_JMapPane

Reply Threaded More More options
Print post
Permalink
> I used your pom.xml and tried to get all required jars with maven but maven
> cannot
> find geotools-2.6-SNAPSHOT jars in any location.
> Can you give me link to the location from where you get
> geotools-2.6-SNAPSHOT jars or
> you managed to get it by maven?

If you add this repository to the pom maven should be able to download
the snapshot jars for you.

    <repository>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <id>opengeo</id>
      <name>OpenGeo Maven Repository</name>
      <url>http://repo.opengeo.org</url>
    </repository>

Let me know how you go !

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users