cannot get gps latitude, longitude

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
jlrjlr
Member
Member
Posts: 41
Joined: 2005 Oct 03, 16:02

cannot get gps latitude, longitude

Post by jlrjlr »

hello

I have just installed v5.4 and want to test the search on floating point values such as gps:latitude.

In file property/detail GPS I see the 2 lines "latitude" and "longitude"
but when I try to add these 2 columns I do not find "latitude" nor "longitude"
I am using windows 10 famille (in french) v 22H2

Thanks for any advice to solve this problem.
User avatar
nikos
Site Admin
Site Admin
Posts: 15791
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: cannot get gps latitude, longitude

Post by nikos »

to add these as columns you need the ultimate version that allows system properties, e.g. System.GPS.LatitudeDecimal
for more information see www.zabkat.com/blog/ultimate-vs-professional.htm
jlrjlr
Member
Member
Posts: 41
Joined: 2005 Oct 03, 16:02

Re: cannot get gps latitude, longitude

Post by jlrjlr »

thanks for your answer.

I have the ultimate version and now I know how to add system properties : perfect.

It brings 2 new questions
-Are those system properties available in the "X2DETAILS.HTM" ?
-How can I define a search rule with decimal value in min/max . The "." or "," are not allowed in the value entry box.

Tanks again for your answers and this brilliant tool
User avatar
nikos
Site Admin
Site Admin
Posts: 15791
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: cannot get gps latitude, longitude

Post by nikos »

for the details pane, try the fmtid/pid funny number of the property, I havent tried it. See here for the GPS property
https://learn.microsoft.com/en-us/windo ... udedecimal
you need that big number 0F55CDE2-4F49-450D-92C1-DCD16301B1B7
see this article for more information: www.zabkat.com/blog/customize-details-pane.htm

as for searching for decimals, I haven't added it yet, but you can search to the nearest integer value
if you need more precision, have a look at deskrule map search
jlrjlr
Member
Member
Posts: 41
Joined: 2005 Oct 03, 16:02

Re: cannot get gps latitude, longitude

Post by jlrjlr »

Thanks for your advice.

On details pane I did some test with the "funny numbers"

Code: Select all

<div class="pane_free">
<!-- System.Author -->
   <b id="e_{F29F85E0-4FF9-1068-AB91-08002B27B3D9}:4">Author</b>: <span>val</span> 
<!-- System.GPS.LatitudeRef -->   
<p><b id="e_{029C0252-5B86-46C7-ACA0-2769FFC8E3D4}:4">LatRef</b>: <span>val</span>
<!-- System.GPS.LatitudeDecimal --> 
<p><b id="e_{0F55CDE2-4F49-450D-92C1-DCD16301B1B7}:4">LatDec</b>: <span>val</span>
</div>
And the result

Code: Select all

Auteurs: JLR 
LatRef: val 
LatDec: val
The "Author" is ok, and translated into french !
but no luck with GPS values

A question : what is the meaning of the :4 after the "funny number" ?

On doing search on nearest integers
The problem is that they are 111km apart (40000/360). Might not be such a big deal if you are in fast plane but for hikers it is quite of difference. To be accurate to the meter you need 6 decimals. I will wait.
User avatar
nikos
Site Admin
Site Admin
Posts: 15791
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: cannot get gps latitude, longitude

Post by nikos »

the :4 bit is also important, there is a small number that goes with the funny number (propID)
if you check that link for LatitudeDecimal you need the PID 100 (not 4)

as for searching, you can use the programmable column to define a rule like:

Code: Select all

${GPS.LatitudeDecimal} > 45.51 &  ${GPS.LatitudeDecimal} < 45.65
then do a search using the programmable column, where you need it to be 1 (=TRUE)

but if you are into pic searching, deskrule is much more fluent, showing you the map as well
jlrjlr
Member
Member
Posts: 41
Joined: 2005 Oct 03, 16:02

Re: cannot get gps latitude, longitude

Post by jlrjlr »

Sorry for late answer.

On Detail pane:
The advice on PID did the trick : works perfect.

On search
It seems that the comparison in programmable column does not treat the decimal

{GPS.LatitudeDecimal} is 45.03666

{GPS.LatitudeDecimal} > 45 gives 1
{GPS.LatitudeDecimal} > 45.99 gives 1
{GPS.LatitudeDecimal} > 46 gives 0

thanks for your advice I will make a try of deskrule
User avatar
nikos
Site Admin
Site Admin
Posts: 15791
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: cannot get gps latitude, longitude

Post by nikos »

floating point works fine for me, are you sure you have v5.4 installed?
jlrjlr
Member
Member
Posts: 41
Joined: 2005 Oct 03, 16:02

Re: cannot get gps latitude, longitude

Post by jlrjlr »

Yes I have 5.4 but I am french and decimal separator is ","

When GPS.LatitudeDecimal is displayed in column, or in the "test" button of "programmable", the decimal separator is ","
(but in the detail pane it is ".")

Entering "," as decimal separator in definition view of "programmable" produces the message "unexpected sign"
User avatar
nikos
Site Admin
Site Admin
Posts: 15791
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: cannot get gps latitude, longitude

Post by nikos »

right, so there is a French bug there! :)
I'll see if I can fix it
have you tried deskrule, does it work or it has the same bug? Especially the map import feature?
jlrjlr
Member
Member
Posts: 41
Joined: 2005 Oct 03, 16:02

Re: cannot get gps latitude, longitude

Post by jlrjlr »

Yes a French bug ! In the so complex french selling rules, bug (exception) is the rule :wink:

I have just tried "desk-rule". A nice compact and efficient interface, and fast search.
No problem with the search on GPS coordinate. Desk-rule is in English (is there a french translation?) the decimal separator is always "."

on x2 i set the interface in "English" but the decimal separator in the "programmable" view stayed ","
On my previous post I mentioned that
"When GPS.LatitudeDecimal is displayed in column decimal separator is ",""

This is wrong (too much wine ! ) in fact decimal separator is "."
The only place where it is "," is in the "programmable" view

I keep testing "desk-rule"
question : documentation tells about an "import button" for GPS coordinate
is it, what is called now, "Geotag search" ?
jlrjlr
Member
Member
Posts: 41
Joined: 2005 Oct 03, 16:02

Re: cannot get gps latitude, longitude

Post by jlrjlr »

oops "selling" should be "spelling"
User avatar
nikos
Site Admin
Site Admin
Posts: 15791
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: cannot get gps latitude, longitude

Post by nikos »

I am trying to sort out both xplorer2 and deskrule to respect the regional number format.
can I send you a debug version to see whether I'm going in the right direction?

as for deskrule, the GPS import procedure is explained in this demo video
jlrjlr
Member
Member
Posts: 41
Joined: 2005 Oct 03, 16:02

Re: cannot get gps latitude, longitude

Post by jlrjlr »

I will be pleased to help improving X2
how will you send me the debug version ?
User avatar
nikos
Site Admin
Site Admin
Posts: 15791
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: cannot get gps latitude, longitude

Post by nikos »

I sent you a PM (message)
Post Reply