Degrees and such in species updates.

A historical forum for issues reported in the suggestions and bugs forum that have been subsequently fixed or resolved.
Post Reply
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Degrees and such in species updates.

Post by MatsP »

It seems like the handling of degrees/minutes/seconds for example in type locations is still broken, as the updated version of is still broken in the same way that it was before my update.

--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:13, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Degrees and such in species updates.

Post by Jools »

I think this is now fixed from my test, can you give it a try?

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Degrees and such in species updates.

Post by MatsP »

Ok, I've updated the M. nasatus, let's see what it looks like when you have vetted it.

--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:13, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Degrees and such in species updates.

Post by Jools »

MatsP wrote:Ok, I've updated the M. nasatus, let's see what it looks like when you have vetted it.

--
Mats
Looks good.

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Degrees and such in species updates.

Post by MatsP »

Maybe it's my end, but the page doesn't have the full location specified, it's cut off after the first "degree" notation, there should be stuff after that.
Okano River on rapids 0.5 km south of village of Na, 0°48'35
Should be:
Okano R. on rapits 0.5 km south of village of Na, 0°48'35"N, 11°38'47"E, Woleu-Ntem prov., Gabon.
--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:13, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Degrees and such in species updates.

Post by Jools »

Ah, OK, that's a bug in the submission part I think - leave it with me.

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Degrees and such in species updates.

Post by MatsP »

That'll probably explain why it's not working to fix it in the displaying side :beardy:

--
Mats
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Degrees and such in species updates.

Post by MatsP »

I take it this is not fixed yet, as my update to the Crossoloricaria yesterday seems to still not work.

I've moved this back to "unresolved".

--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:13, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Degrees and such in species updates.

Post by Jools »

MatsP wrote:I take it this is not fixed yet, as my update to the Crossoloricaria yesterday seems to still not work.

I've moved this back to "unresolved".

--
Mats
Yes, it is still broken. :-) It's one of those ones where whe you fix one thing, it breaks another, you fix the second thing and a third breaks, you fix the third and it breaks the first and off we go again. The thing is so complex it really now needs a re-write and in fact might even benefit from being integrated with the forum. Are you still interesting in doing development work for the site, if so, I could break this project down into manageable chunks and get it fixed once and for all.

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Degrees and such in species updates.

Post by MatsP »

I don't seem to have time to work on the cat-elog at the moment, but I guess if I get time, I could have a look at it...

--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:13, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Degrees and such in species updates.

Post by Jools »

MatsP wrote:I don't seem to have time to work on the cat-elog at the moment, but I guess if I get time, I could have a look at it...

--
Mats
OK, let me know when you do, always something to work on!

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Degrees and such in species updates.

Post by MatsP »

I have been manually editing the string to use '' instead of ". I will see if I can add code to do this. Work starts tomorrow!

Edit: That is two single ' instead of a single " character - you can see the difference when writing the post, but when it is posted, the typeface doesn't show (much) of a difference.

--
Mats
User avatar
Shane
Expert
Posts: 4646
Joined: 30 Dec 2002, 22:12
My articles: 69
My images: 162
My catfish: 75
My cats species list: 4 (i:75, k:0)
My aquaria list: 4 (i:4)
Spotted: 99
Location 1: Tysons
Location 2: Virginia
Contact:

Re: Degrees and such in species updates.

Post by Shane »

Great stuff Mats. Holotype locations will only get more and more specific and all modern descriptions, in my opinion, should contain specific geocoords.
-Shane
"My journey is at an end and the tale is told. The reader who has followed so faithfully and so far, they have the right to ask, what do I bring back? It can be summed up in three words. Concentrate upon Uganda."
Winston Churchill, My African Journey
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:13, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Degrees and such in species updates.

Post by Jools »

In the near future browsers will also automatically identify co-ords and a simple click will whizz your browser off to that part of the world. So, as you say, it is good data to have. Almost merits its own data field...

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Degrees and such in species updates.

Post by MatsP »

Jools wrote:Almost merits its own data field...
I've been thinking that for a while now, and we could then [without relying on browser automagics] add a "show map of type location", similar to our BOFW maps.

And we could probably automate a population of this field:
if type location contains degree sign, then strip out the degree values (and adjust sign based on N/S, E/W at the end). Need to understand D°M'S.f'' (including fractions in seconds), D°M.f and D.f° where ".f" means "fractions of this unit. Also needs to understand both double single quotes and single double quote for second marks.

--
Mats
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Degrees and such in species updates.

Post by MatsP »

Right, I've added a one-liner to the vet.php that is used by Jools to add new data to the Cat-eLog pages. I have tested it on my local version of planet catfish.

@Jools: in rev. 446

--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:13, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Degrees and such in species updates.

Post by Jools »

How best to test this?

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Degrees and such in species updates.

Post by MatsP »

Enter something in type location that contains both single and double quotes. If correct, it should appear in the vetting box for type lcation, looking the same, but the double-quotes are two single quotes (so you can place the cursor between the two quotes).

I have submitted an update to M. nasutus, as per above.

[I did test locally, and it appears to work...]

--
Mats
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Degrees and such in species updates.

Post by MatsP »

Revision 464 contains code to extract lat/long from the type location when data is being vetted.

I'm working on a function to show a map of the given location.

--
Mats
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Degrees and such in species updates.

Post by MatsP »

And rev. 465 introduces a map on the datasheet if there is a lat/long value for the type location.

--
Mats
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Degrees and such in species updates.

Post by MatsP »

Right, it appears to work now has a little "map-icon" and shows a map of the coordinates from the type location.

I'm moving this to resolved, but will check on new updates to see if they are OK.

--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:13, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Degrees and such in species updates.

Post by Jools »

One of those I checked had a blank map. Tatia musiaca I think?

Cheers

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Degrees and such in species updates.

Post by MatsP »

Yes, I see that. If you use the mouse-wheel to zoom, you'll find that it's in the Indian ocean, which is where you get to if the 67d 23m W is taken as the same distance EAST.

I need to look at that, since it should work right - it may be more problems with multibyte characters that made me add +1 to the $pos for finding S/W and invert.

I will also add an output of type_loc_lat/type_loc_long somewhere on the page, so that it's easier to verify where it actually ended up, and a map on the vet-page, perhaps?

--
Mats
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Degrees and such in species updates.

Post by MatsP »

The vet page probably should have two maps, one showing more or less "world" view, and one showing the local area.

In the mean time, if you (Jools) can change the sign of the 67.something degrees value in T. musaica, it would fix the current problem.

--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:13, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Degrees and such in species updates.

Post by Jools »

MatsP wrote:In the mean time, if you (Jools) can change the sign of the 67.something degrees value in , it would fix the current problem.
Done.

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Re: Degrees and such in species updates.

Post by MatsP »

Revision 482 contains a fix for the problems recognising the South/West directions of degrees in type location.

Vetting also shows a map so it's more likely to discover when the coordinates are wrong...

--
Mats
Post Reply

Return to “All Resolved Issues”