Degrees and such in species updates.
- 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.
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
--
Mats
- 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.
I think this is now fixed from my test, can you give it a try?
Jools
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- 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.
Ok, I've updated the M. nasatus, let's see what it looks like when you have vetted it.
--
Mats
--
Mats
- 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.
Looks good.MatsP wrote:Ok, I've updated the M. nasatus, let's see what it looks like when you have vetted it.
--
Mats
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- 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.
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.
Mats
Should be:Okano River on rapids 0.5 km south of village of Na, 0°48'35
--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
- 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.
Ah, OK, that's a bug in the submission part I think - leave it with me.
Jools
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- 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.
That'll probably explain why it's not working to fix it in the displaying side
--
Mats

--
Mats
- 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.
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
I've moved this back to "unresolved".
--
Mats
- 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.
Yes, it is still broken.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

Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- 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.
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
--
Mats
- 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.
OK, let me know when you do, always something to work on!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
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- 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.
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
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
- 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:0, k:0)
- My aquaria list: 4 (i:4)
- Spotted: 99
- Location 1: Tysons
- Location 2: Virginia
- Contact:
Re: Degrees and such in species updates.
Great stuff Mats. Holotype locations will only get more and more specific and all modern descriptions, in my opinion, should contain specific geocoords.
-Shane
-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
Winston Churchill, My African Journey
- 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.
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
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- 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.
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.Jools wrote:Almost merits its own data field...
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
- 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.
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
@Jools: in rev. 446
--
Mats
- 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.
How best to test this?
Jools
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- 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.
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
I have submitted an update to M. nasutus, as per above.
[I did test locally, and it appears to work...]
--
Mats
- 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.
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
I'm working on a function to show a map of the given location.
--
Mats
- 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.
And rev. 465 introduces a map on the datasheet if there is a lat/long value for the type location.
--
Mats
--
Mats
- 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.
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
I'm moving this to resolved, but will check on new updates to see if they are OK.
--
Mats
- 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.
One of those I checked had a blank map. Tatia musiaca I think?
Cheers
Jools
Cheers
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- 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.
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
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
- 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.
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
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
- 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.
Done.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.
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- 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.
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
Vetting also shows a map so it's more likely to discover when the coordinates are wrong...
--
Mats