Re: BasicGeoLib_v100

2019-09-19 Thread hh via use-livecode
GeoLib_v105 is now a library (as substack of the sample stack).

The new version has several additions. These are now the supported functions
(rightClick the hh-Logo in the sample stack to see the library stack script):

* getHaversineDistance(point1,point2)
* getDistance(point1,point2)
* intermediatePoint(point1,point2,fraction)
* greatCircleBearing(point1,point2)
* rhumbLineBearingBearing(point1,point2)
* getSpeed(point1,startSecs,point2,endSecs)
* isPointWithinRadius(centerPoint,radius,listOfPoints)
* orderByDistance(toPoint,fromList)
* getDistanceFromLine(point1,point2,fromList)
* getBoundsAndLoc(linesOfPoints)
* getPathLength(linesOfPoints)
* sexagesimalToDecimal(linesOfPoints)
* decimalToSexagesimal(linesOfPoints)
* getDestinationPointH(point1,distance,bearing)
* getDestinationPointV(point1,distance,bearing)

BerndN added a function to get one of 16 compass directions from a degree value.

Credits: See the geoLib source, all is MIT-licensed.
License: MIT ( https://en.wikipedia.org/wiki/MIT_License )



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: BasicGeoLib_v100

2019-09-13 Thread JJS via use-livecode

Danke Hermann.

I am still planning to use something like this.

I have database with all dutch postcode with housenr's and longitudes 
and latitudes. This is now public information ordered some years ago by 
a Dutch Federal Judge as the post delivery appealed against this. But it 
is not easy to find the download, they hide it a bit.


Anyway i downloaded it as almost 1GB of csv data which turned into 
almost 8GB of database data. Took days to convert and upload it. It's 
around 6000 tables with also each around 6000 to 13000 entries.


Right now just used to find a place via postcode (LeitZahl) entry. And 
there some php examples on the web to calculate what you now have 
created, these calculations can be tricky.


(i know there are also online services for this with json data as reply, 
some for free until so many calls, but it's nice to be able to do it 
yourself)


Will check it out in time, and hopefully to be used when i expand my 
application.



Thanks a lot!

Jerry

Op 13-9-2019 om 07:23 schreef William Prothero via use-livecode:

Nice contribution.
Thanks!
Bill


On Sep 12, 2019, at 1:16 PM, hh via use-livecode 
 wrote:

Some specialists may be interested in the following, please report if you have 
any problem with the stack.

BasicGeoLib is a collection of very basic functions for using geoPoints.



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: BasicGeoLib_v100

2019-09-12 Thread William Prothero via use-livecode
Nice contribution. 
Thanks!
Bill

> On Sep 12, 2019, at 1:16 PM, hh via use-livecode 
>  wrote:
> 
> Some specialists may be interested in the following, please report if you 
> have any problem with the stack.
> 
> BasicGeoLib is a collection of very basic functions for using geoPoints.
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: BasicGeoLib_v100

2019-09-12 Thread Mark Talluto via use-livecode
Thank for this. :)


Best regards,

Mark Talluto
livecloud.io 
nursenotes.net 
canelasoftware.com 


> On Sep 12, 2019, at 1:16 PM, hh via use-livecode 
>  wrote:
> 
> Some specialists may be interested in the following, please report if you 
> have any problem with the stack.
> 
> BasicGeoLib is a collection of very basic functions for using geoPoints.
> 
> The points have to be in the format: longitude,latitude in that order,
> as decimal numbers, as in GeoJSON, NOT in Google.
> That is the first item (longitude) is a decimal in range -180 to 180,
> the second item (latitude) is a decimal in range -90 to 90.
> And the third item is, if needed, a time in seconds (not an elevation
> value).
> 
> Credits: Two core functions are based on the js-lib
> ## https://github.com/manuelbieh/geolib (MIT licensed)
> and ported to LiveCode.
> 
> Supported functions (all in group "geoAction", rightClick an action
> button to edit the script):
> 
> * getDistance(point1,point2)
> * getSpeed(point1,startSecs,point2,endSecs)
> * isPointWithinRadius(centerPoint,radius,listOfPoints)
> * orderByDistance(toPoint,fromList)
> * getDistanceFromLine(point1,point2,fromList)
> * getBoundsAndLoc(linesOfPoints)
> * getPathLength(linesOfPoints)
> * sexagesimalToDecimal(linesOfPoints)
> * decimalToSexagesimal(linesOfPoints)
> 
> I found no time to prepare the stack as library, please just copy the
> functions you need or make your own library.
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: BasicGeoLib_v100

2019-09-12 Thread hh via use-livecode
Forgot the link.
BasicGeoLib is available on "SampleStacks" or here:

http://livecodeshare.runrev.com/stack/949/basicGeoLib

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


BasicGeoLib_v100

2019-09-12 Thread hh via use-livecode
Some specialists may be interested in the following, please report if you have 
any problem with the stack.

BasicGeoLib is a collection of very basic functions for using geoPoints.

The points have to be in the format: longitude,latitude in that order,
as decimal numbers, as in GeoJSON, NOT in Google.
That is the first item (longitude) is a decimal in range -180 to 180,
the second item (latitude) is a decimal in range -90 to 90.
And the third item is, if needed, a time in seconds (not an elevation
value).

Credits: Two core functions are based on the js-lib
## https://github.com/manuelbieh/geolib (MIT licensed)
and ported to LiveCode.

Supported functions (all in group "geoAction", rightClick an action
button to edit the script):

* getDistance(point1,point2)
* getSpeed(point1,startSecs,point2,endSecs)
* isPointWithinRadius(centerPoint,radius,listOfPoints)
* orderByDistance(toPoint,fromList)
* getDistanceFromLine(point1,point2,fromList)
* getBoundsAndLoc(linesOfPoints)
* getPathLength(linesOfPoints)
* sexagesimalToDecimal(linesOfPoints)
* decimalToSexagesimal(linesOfPoints)

I found no time to prepare the stack as library, please just copy the
functions you need or make your own library.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode