Page 1 of 1

Featurelayer licensed or not?

Posted: Thu Aug 26, 2021 1:07 pm
by DapperDan
Hi,

is there any way to find out wether a featurelayer is included in the currently used license or not? We are testing trafficincidents at the moment on a seperate machine and I want to visualize these on the map. The visualization works, but I like to use my program for the test machine and the production machine and I do not want to activate or deactivate featurelayers on the ui. This should be done in the background by my program itself.

We use xMap 1.28, my interface is written in C#.

Is there a better way than triggering an error with a test tile request? If not, what would be the shortest request I can use?

kind Regards

Re: Featurelayer licensed or not?

Posted: Thu Aug 26, 2021 1:40 pm
by Bernd Welter
Hello DapperDan,

in xServer1 there are no "convenience" API methods you could use as an application to gather such info.
This is possible in xServer2 where you can use xRuntime to check a server's capabilities.

If you want to check the licensed feature layers I recommend to look into the license file manually (through the admin console)
My xserver 1 license grants acces to all installed feature layers due to the wildcard
My xserver 1 license grants acces to all installed feature layers due to the wildcard
Best regards,
Bernd

Re: Featurelayer licensed or not?

Posted: Fri Aug 27, 2021 9:57 am
by DapperDan
Hi Bernd,

OK based on your suggestion I decided to do a simple GET request to "http://xMapServer:port/pages/serverCommand.jsp?readLicense=license.ptv", read all the content and find out the license status that way.

My Ui is now switching automatically between showing traffic and not showing traffic.

kind Regards

Re: Featurelayer licensed or not?

Posted: Fri Aug 27, 2021 10:57 am
by Joost
That works, but keep in mind that it is not an official feature, so in later versions the page might work differently. I don't expect us to make changes in the xServer 1 management console now that we have xServer 2, but it could be.

Re: Featurelayer licensed or not?

Posted: Fri Aug 27, 2021 11:02 am
by Bernd Welter
Cheers - where did you find that?

Be aware of not "knowing too much" ;-)

Bernd

Re: Featurelayer licensed or not?

Posted: Fri Aug 27, 2021 11:11 am
by DapperDan
Browser Dev Console(F12)/Network
There you can see the requests made to the webinterface