old-mil-sym-java icon indicating copy to clipboard operation
old-mil-sym-java copied to clipboard

Air Corridor labels

Open ChristinaKochan opened this issue 9 years ago • 10 comments

My customer is requesting that the labels for Air Corridor be in their proper locations "in their respective lanes." Currently they are both crammed together more towards the top lane of the symbol rather than having T in the top lane and T1 in the bottom lane.

aircorridor aircorridortemplate

ChristinaKochan avatar Jan 31 '17 20:01 ChristinaKochan

The spacing has been changed on the text so the lines are a bit further apart.

mdeutch3 avatar Feb 01 '17 18:02 mdeutch3

Thanks!

ChristinaKochan avatar Feb 01 '17 19:02 ChristinaKochan

fixed in release v0.1.19

michael-spinelli avatar Feb 15 '17 18:02 michael-spinelli

The spacing is a little better but it seems like now the center line of the corridor is much longer than it should be on both ends.

image

ChristinaKochan avatar Feb 17 '17 17:02 ChristinaKochan

Can you provide the data that was passed? I'm not seeing a problem with the center line. There is nothing in the last revision that would have affected that, only the text was affected.

mdeutch3 avatar Feb 17 '17 19:02 mdeutch3

Here are our inputs: [0]: {[ID, 284e46d7-3b05-4c39-ad28-c131a2be3af7]} [1]: {[NAME, name]} [2]: {[DESCRIPTION, GHGPALC----I---]} [3]: {[CONTROLPOINTS, -3.06422950723439,18.3282485501626 4.73449594702721,18.3282485501626]} [4]: {[ALTITUDEMODE, clampToGround]} [5]: {[SCALE, 37209539.0534948]} [6]: {[BBOX, -5.01391087079979,12.4792044594664,6.68417731059261,24.1772926408588]} [7]: {[FORMAT, 2]} [8]: {[SYMSTD, 0]} [9]: {[MODIFIERS, {"H":"test h value","H1":"test h1 value","T":"test t value","T1":"test t1 value","H2":"289384"}]}

And here is what we get in return:

{
   "type":"FeatureCollection",
   "features":[
      {
         "type":"Feature",
         "properties":{
            "label":"",
            "strokeColor":"#FF0000",
            "lineOpacity":1.0,
            "strokeWidth":3,
            "strokeWeight":3
         },
         "geometry":{
            "type":"MultiLineString",
            "coordinates":[
               [
                  [
                     -1.76014462,
                     18.34594282
                  ],
                  [
                     -1.76918014,
                     18.34582002
                  ]
               ],
               [
                  [
                     -3.06857146,
                     19.56627292
                  ],
                  [
                     -0.44987137,
                     19.60153915
                  ]
               ],
               [
                  [
                     -3.05904855,
                     17.09022436
                  ],
                  [
                     -0.47747857,
                     17.12549026
                  ]
               ],
               [
                  [
                     -1.76898292,
                     18.36351437
                  ],
                  [
                     3.43924945,
                     18.36351437
                  ]
               ],
               [
                  [
                     -0.43109238,
                     19.60166533
                  ],
                  [
                     2.18811988,
                     19.60166533
                  ]
               ],
               [
                  [
                     -0.49599154,
                     17.12536341
                  ],
                  [
                     2.08612898,
                     17.12536341
                  ]
               ],
               [
                  [
                     0.83167477,
                     18.38119252
                  ],
                  [
                     6.03712765,
                     18.31057032
                  ]
               ],
               [
                  [
                     2.20687285,
                     19.60153915
                  ],
                  [
                     4.82539808,
                     19.56627326
                  ]
               ],
               [
                  [
                     2.0676408,
                     17.12548958
                  ],
                  [
                     4.64937981,
                     17.09022369
                  ]
               ],
               [
                  [
                     6.03838271,
                     18.32824847
                  ],
                  [
                     5.98191673,
                     18.03193966
                  ],
                  [
                     5.85364123,
                     17.75285086
                  ],
                  [
                     5.6611932,
                     17.50720278
                  ],
                  [
                     5.41575969,
                     17.30927019
                  ],
                  [
                     5.13143061,
                     17.17055741
                  ],
                  [
                     4.82442865,
                     17.09912484
                  ],
                  [
                     4.51222944,
                     17.09912484
                  ],
                  [
                     4.21262659,
                     17.17055741
                  ],
                  [
                     3.94276826,
                     17.30927019
                  ],
                  [
                     3.71821544,
                     17.50720278
                  ],
                  [
                     3.55206687,
                     17.75285086
                  ],
                  [
                     3.45419063,
                     18.03193966
                  ],
                  [
                     3.43060885,
                     18.32824847
                  ],
                  [
                     3.4830794,
                     18.62455762
                  ],
                  [
                     3.60890666,
                     18.90364609
                  ],
                  [
                     3.80101461,
                     19.14929451
                  ],
                  [
                     4.04829527,
                     19.34722675
                  ],
                  [
                     4.33623423,
                     19.48593988
                  ],
                  [
                     4.64778383,
                     19.5573721
                  ],
                  [
                     4.96442556,
                     19.5573721
                  ],
                  [
                     5.26734744,
                     19.48593988
                  ],
                  [
                     5.53864139,
                     19.34722675
                  ],
                  [
                     5.76241595,
                     19.14929451
                  ],
                  [
                     5.92575319,
                     18.90364609
                  ],
                  [
                     6.03838271,
                     18.32824847
                  ]
               ],
               [
                  [
                     -1.76034276,
                     18.32824847
                  ],
                  [
                     -1.80365505,
                     18.03193966
                  ],
                  [
                     -1.91977084,
                     17.75285086
                  ],
                  [
                     -2.10169874,
                     17.50720278
                  ],
                  [
                     -2.3387804,
                     17.30927019
                  ],
                  [
                     -2.61732111,
                     17.17055741
                  ],
                  [
                     -2.92136342,
                     17.09912484
                  ],
                  [
                     -3.23356228,
                     17.09912484
                  ],
                  [
                     -3.53612478,
                     17.17055741
                  ],
                  [
                     -3.81177156,
                     17.30927019
                  ],
                  [
                     -4.04467685,
                     17.50720278
                  ],
                  [
                     -4.22134495,
                     17.75285086
                  ],
                  [
                     -4.33138098,
                     18.03193966
                  ],
                  [
                     -4.36811643,
                     18.32824847
                  ],
                  [
                     -4.32905254,
                     18.62455762
                  ],
                  [
                     -4.21608585,
                     18.90364609
                  ],
                  [
                     -4.03548645,
                     19.14929451
                  ],
                  [
                     -3.79760804,
                     19.34722675
                  ],
                  [
                     -3.51632692,
                     19.48593988
                  ],
                  [
                     -3.2082284,
                     19.5573721
                  ],
                  [
                     -2.89158704,
                     19.5573721
                  ],
                  [
                     -2.58521407,
                     19.48593988
                  ],
                  [
                     -2.30726219,
                     19.34722675
                  ],
                  [
                     -2.07408476,
                     19.14929451
                  ],
                  [
                     -1.89923959,
                     18.90364609
                  ],
                  [
                     -1.76034276,
                     18.32824847
                  ]
               ]
            ]
         }
      },
      {
         "type":"Feature",
         "properties":{
            "label":"test t value",
            "pointRadius":0,
            "fontColor":"#FF0000",
            "fontSize":"12pt",
            "fontFamily":"arial, sans-serif",
            "fontWeight":"bold",
            "labelAlign":"center",
            "labelBaseline":"alphabetic",
            "labelXOffset":0,
            "labelYOffset":0,
            "labelOutlineColor":"#FFFFFF",
            "labelOutlineWidth":4,
            "rotation":0.0,
            "angle":0.0
         },
         "geometry":{
            "type":"Point",
            "coordinates":[
               0.87219987,
               18.87093138
            ]
         }
      },
      {
         "type":"Feature",
         "properties":{
            "label":"test t1 value",
            "pointRadius":0,
            "fontColor":"#FF0000",
            "fontSize":"12pt",
            "fontFamily":"arial, sans-serif",
            "fontWeight":"bold",
            "labelAlign":"center",
            "labelBaseline":"alphabetic",
            "labelXOffset":0,
            "labelYOffset":0,
            "labelOutlineColor":"#FFFFFF",
            "labelOutlineWidth":4,
            "rotation":0.0,
            "angle":0.0
         },
         "geometry":{
            "type":"Point",
            "coordinates":[
               0.80297671,
               16.74838688
            ]
         }
      }
   ],
   "properties":{
      "id":"284e46d7-3b05-4c39-ad28-c131a2be3af7",
      "name":"name",
      "description":"GHGPALC----I---",
      "symbolID":"GHGPALC----I---"
   }
}

ChristinaKochan avatar Feb 20 '17 18:02 ChristinaKochan

I wonder if it happens only with the larger extent/scale size. Seems like if I zoom in more it gets drawn like it should.

ChristinaKochan avatar Feb 20 '17 18:02 ChristinaKochan

I think you're getting stray single points. We may be able to get rid of that on our side by not writing to the json if the count is less than 2. I seem to recall we ran into this in KML and it was not a difficult fix. I'll look into this.

mdeutch3 avatar Feb 21 '17 15:02 mdeutch3

The problem does have to do with scale. It is a logic error in our code. I'm fixing it now.

mdeutch3 avatar Feb 21 '17 18:02 mdeutch3

A fix has been checked into GitHub but it is not released yet.

mdeutch3 avatar Feb 21 '17 19:02 mdeutch3