missioncommand / mil-sym-java

(RETIRED) MIL-STD-2525 B and C rendering library and web service
Apache License 2.0
67 stars 36 forks source link

Image metadata? #26

Closed ChristinaKochan closed 8 years ago

ChristinaKochan commented 8 years ago

We were previously running the image service inside of Jetty, but our customer is running the service locally directly from the jar files. When I do that, I now don't get any metadata for the png images. Do you know how I can fix this? I am using meta=true for all icon requests, but it just isn't having any effect when running locally without Jetty.

ruckc commented 8 years ago

Which metadata are you using from the endpoint?

On Tue, Aug 16, 2016, 19:33 Christina notifications@github.com wrote:

We were previously running the image service inside of Jetty, but our customer is running the service locally directly from the jar files. When I do that, I now don't get any metadata for the png images. Do you know how I can fix this? I am using meta=true for all icon requests, but it just isn't having any effect when running locally without Jetty.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/missioncommand/mil-sym-java/issues/26, or mute the thread https://github.com/notifications/unsubscribe-auth/ABXD4epNJ8TeAS0JsAjblQEVhkRN7zZWks5qgkjjgaJpZM4Jl9En .

michael-spinelli commented 8 years ago

I'll take a look

ChristinaKochan commented 8 years ago

We're using centerPoint and imageExtent to make sure our image is centered on the correct part of the control point.

michael-spinelli commented 8 years ago

fixed in release v0.1.12

ChristinaKochan commented 8 years ago

It would seem that with version 0.1.12 we are getting an Action Point for all tactical graphics and an empty generic Warfighting symbol for all others. I think it may be because of the switch from sanitizeSymbolID() to reconcileSymbolID() in SinglePointServer.java.

michael-spinelli commented 8 years ago

Sorry about that. 0.1.13 should be good.

ChristinaKochan commented 8 years ago

Well that's fixed, but I am seeing something else now. Metadata is not available when using icon=true. I attached the images I am retrieving as well as a screenshot of the browser to show my URL for each one.

gusppx---------iconfalse gusppx---------iconfalsebrowser

gusppx---------icontrue gusppx---------icontruebrowser

michael-spinelli commented 8 years ago

When icon=true, the assumption is that the symbol is going on a tree node, or preview window and not on a map. Do you have a use case for needing the metadata when icon=true?

ChristinaKochan commented 8 years ago

Hmm, I will have to think about it. I thought there was some reason we were using icon=true with meta=true but I don't recall it now, so perhaps not. I'll get back to you shortly.