Timeline for Latitude labels location on map
Current License: CC BY-SA 4.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 19, 2020 at 7:23 | comment | added | Ian Turton | they are in pixels | |
May 18, 2020 at 17:32 | comment | added | Isidora | Still cannot properly include longitude labels inside the map using startPoint or latitude labels using endPoint. Which are the units in the X and Y displacements in :LabelPlacement hlp = sb.createPointPlacement(.5, .5, 10, 0, 0); LabelPlacement vlp = sb.createPointPlacement(.5, .5, 0, -50, 0);? i.e how can I compute the -50 for my map so I can see the label? | |
May 1, 2020 at 21:14 | comment | added | Isidora | Added missing piece to show all labels in UPDATED CODE: blueStyle.featureTypeStyles().add(featureTypeStyle); Tried to make it bold but I did not succeed. Labeling map works like a charm in JFrame as used in docs.geotools.org/latest/userguide/tutorial/raster/image.html code, but missing longitude and latitude labels at the end of lines when rendering MapContent to tiff using GTRenderer. Thank you Ian!! | |
Apr 23, 2020 at 15:22 | comment | added | Ian Turton | The only thing I can suggest is comment out the filter and see it it works then, and then either fix the other bits if it still doesn't work or fix the filter one part at a time if that is the issue. Failing that step through in an debugger to see what is happening | |
Apr 23, 2020 at 15:19 | history | edited | Ian Turton | CC BY-SA 4.0 |
added 27 characters in body
|
Apr 23, 2020 at 15:00 | comment | added | Isidora | Tried Update code, but no labels yet in latitude or longitude. See updated code in question. | |
Apr 22, 2020 at 10:08 | history | edited | Ian Turton | CC BY-SA 4.0 |
added 2275 characters in body
|
Apr 21, 2020 at 15:35 | comment | added | Ian Turton | That line assumes you called you geometry "element" - if it's something else pick that instead | |
Apr 21, 2020 at 15:34 | comment | added | Ian Turton | please edit the question to add your code | |
Apr 21, 2020 at 15:15 | comment | added | Isidora |
That setting, stops adding labels and lines completely. Tried with lat rule and with lat/lon rule.Same result: code for (OrthoLineDef lineDef : lineDefs) { switch (lineDef.getOrientation()) { case HORIZONTAL: String localElement = "element"; Rule rule = blueStyle.featureTypeStyles().get(0).rules().get(0); Function startPoint = ff.function("startPoint", ff.property(localElement)); Function endPoint = ff.function("endPoint", ff.property(localElement)); ....code
|
|
Apr 21, 2020 at 7:50 | comment | added | Ian Turton | String localName = "element"; | |
Apr 20, 2020 at 18:01 | comment | added | Isidora | That did not do it. I think the issue is with "localName" variable used in Functions startPoint and endPoint. What should be that set to exactly? | |
Apr 18, 2020 at 8:47 | comment | added | Ian Turton |
rule.symbolizers().add(text); replaces redStyle.featureTypeStyles().get(0).rules().get(0).symbolizers().add(text);
|
|
Apr 17, 2020 at 22:54 | comment | added | Isidora | no latitude labels appear. After code above I have: redStyle.featureTypeStyles().get(0).rules().get(0).symbolizers().add(text); Layer gridLayer = new FeatureLayer(grid, redStyle); What am I missing? | |
Apr 17, 2020 at 15:42 | history | answered | Ian Turton | CC BY-SA 4.0 |