Re: [JPP-Devel] Metric distances for lat long coordinates

2019-02-20 Thread Paul J. Morris
On Wed, 20 Feb 2019 10:20:14 +0100
Nicolas Ribot  wrote:

> Hi,
> 
> >
> > Sounds useful to me. But i am not sure its so easy given that the
> > length of a degree is changing, but there may be some formulas out
> > there (even web pages) that calculate great circle distances ...
> > mhm... i think somewhere i even used such, once.
> >
> > Cheers,
> > Stefan
> >
> > Yes, it is based on great circles computation. I used formula from
> > this
> rather complete page :
> https://www.movable-type.co.uk/scripts/latlong.html
> 
> Nicolas

That page is a good source.

Here's a java implementation:

https://sourceforge.net/p/sarmanager/code/HEAD/tree/trunk/SMT/src/net/aa3sd/SMT/math/SphericalUtility.java#l486

with a very basic unit test:

https://sourceforge.net/p/sarmanager/code/HEAD/tree/trunk/SMT/src/net/aa3sd/SMT/test/TestSphericalUtilityMethods.java#l64

Derived from the c implementation in xastir

https://github.com/Xastir/Xastir/blob/master/src/util.c#L2913

Key choice is what value to use for the mean radius of the Earth.

-Paul
-- 
Paul J. Morris
Biodiversity Informatics Manager
Museum of Comparative Zoölogy, Harvard University
m...@morris.net  AA3SD  PGP public key available


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Fwd: OpenJUMP joining software patent non-aggression community

2017-09-08 Thread Paul J. Morris
On 6 Sep 2017 13:58:09 -0300
"Stefan Steiniger" <sst...@geo.uzh.ch> wrote:
> Opinions?

When groklaw was active, Pamela Jones ran a number of pieces on OIN.  They are 
on the order of a decade old now, but do give some background.

http://www.groklaw.net/search.php?query=Open+Invention+Network=phrase===0=all=0=search

http://www.groklaw.net/article.php?story=20061213031455474=Open+Invention+Network

-Paul

> 
> 
> Inicio del mensaje reenviado:
> 
> > De: Frank Casey <fca...@openinventionnetwork.com>
> > Fecha: 6 de septiembre de 2017, 11:34:40 CLST
> > Para: sst...@geo.uzh.ch, sunburned.surve...@gmail.com,
> > michael.mich...@free.fr Asunto: OpenJUMP joining software patent
> > non-aggression community
> > 
> > Dear Gentlemen,
> > 
> > My name is Frank Casey and I am writing to you on behalf of the
> > Open Invention Network (OIN), an organization formed and funded by
> > IBM, Red Hat, SUSE, Sony, NEC, Philips, Google, and Toyota to
> > foster a safe patent environment for developers and users of Open
> > Source-based solutions.  I recently learned of OpenJUMP and would
> > like to invite you to join the OIN community.
> > 
> > We are a community of over 2,200 members from across the Open
> > Source spectrum who are invested in the future of Open Source and,
> > whether it be creating or using Open Source, want to protect that
> > investment.  They joined OIN because they recognized that reducing
> > the risk of patent aggression is a key step in doing so. As you
> > know, if patent aggression is directed at your project it can
> > jeopardize all the work you've done.
> > 
> > To deter aggression, OIN has created an environment where patent
> > aggression aimed at the Open Source ecosystem is unacceptable.  We
> > undertake a variety of activities to protect our community (see
> > attachment) and our members pledge non-aggression to each other.
> > 
> > There is no cost to join or maintain membership and you would also
> > be joining the likes of Canonical, Daimler, Ford Motors, Fujitsu,
> > SAP, Cisco Systems, Twitter, and Mozilla in supporting the
> > principle of non-aggression.
> > 
> > I believe joining OIN is a great way to lend your support for a
> > free Open Source environment and protect your efforts from patent
> > aggression.  I hope you will consider joining us and, to that end,
> > invite you to visit our website at
> > http://www.openinventionnetwork.com to learn more.
> > 
> > I thank you for your time and look forward to hering back from you.
> > 
> > Regards,
> > 
> > Frank Casey
> > Membership Executive
> > Open Invention Network
> > e: fca...@openinventionnetwork.com
> > p: + 1 203 894 8268
> > 
> > Virus-free. www.avast.com
> > 


-- 
Paul J. Morris
Biodiversity Informatics Manager
Museum of Comparative Zoölogy, Harvard University
m...@morris.net  AA3SD  PGP public key available

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] LayerViewPanel Widget

2013-09-20 Thread Paul J. Morris
On Fri, 20 Sep 2013 11:15:58 -0700
Landon Blake sunburned.surve...@gmail.com wrote:
 Has anyone extracted the LayerViewPanel as a stand-alone widget for
 Swing Programs?

I've used the LayerViewPanel and TreeLayerNamePanel in SMT - SAR
Manager Toolkit http://sarmanager.sourceforge.net/ 

 I was thinking about doing this, or of coding something similar from
 scratch, but I wanted to ask here first.

Current OpenJump places some constraints on what seems to be able to be
done easily.  I had to make a few changes to get things to work, see:
http://sourceforge.net/p/sarmanager/code/HEAD/tree/trunk/SMT/lib/openjump1.4.3alpha_rev2524.patch

I also found that I needed to embedd these into a class that extended a
JInternalFrame: 

public class MapInternalFrame extends JInternalFrame implements 
LayerManagerProxy, LayerViewPanelProxy, TaskFrameProxy, LayerNamePanel, 
LayerNamePanelProxy, SelectionManagerProxy  { ...

http://sourceforge.net/p/sarmanager/code/HEAD/tree/trunk/SMT/src/net/aa3sd/SMT/ui/MapInternalFrame.java

I haven't gone digging very far, but it did find dependencies in the
OpenJump classes/interfaces on JInternalFrame (rather than the more
general JComponent) that appeared to prevent (unless I was missing
something) things like embedding a LayerViewPanel in a JPanel and a
TreeLayerNamePanel in another JPanel without there being an enclosing
JInternalFrame.   

And, greetings to all.  Have been lurking for a while, but haven't had
a chance to introduce myself, or describe what I've been trying to
accomplish with OpenJump.  I keep hoping I'll have time to contribute,
particularly to improving support for projections, but haven't had a
chance to yet.  Great platform, thanks to everyone involved for all the
good work. 

-Paul
-- 
Paul J. Morris
Biodiversity Informatics Manager
Harvard University Herbaria/Museum of Comparative Zoölogy
m...@morris.net  AA3SD  PGP public key available

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] SkyJUMP print code - need tester for detecting printers problem

2013-07-11 Thread Paul J. Morris
On Thu, 11 Jul 2013 13:53:14 +0200
Matthias Scholz m...@jammerhund.de wrote:
 during my works at the SkyJUMP print code, i encountered a problem.
 On my Ubuntu 12.04 box i get the message Printer not found. The
 problem only occurs, if i set a JobName attribute to the
 PrintServiceLookup. This is the default in the actual code. Without a
 JobName attribute i get all my printservices (printers).
 I've attached a small test class. Please can anybody platforms run
 this? There are two tests. The first is without a JobName attribute

Debian squeeze with Java 7 returns the list of printers from
lookupPrintServices without a job name and with a job name.   

It does return a null pointer exception on looking up the default
printer in line 29 after the second test when the default printer is
not online, presumably from lookupDefaultPrintService() returning
null.  I think this is the expected behavior This may return null. ...
A service specified must be discovered to be valid and currently
available to be returned as the default.
http://docs.oracle.com/javase/7/docs/api/javax/print/PrintServiceLookup.html#lookupDefaultPrintService%28%29
 

-Paul

mole@chicoreus:~/workspace$ lsb_release -a
LSB Version:
core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch
Distributor ID: Debian Description: Debian GNU/Linux
6.0.7 (squeeze) Release:6.0.7
Codename:   squeeze
mole@chicoreus:~/workspace$ java -version
java version 1.7.0_21
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) Server VM (build 23.21-b01, mixed mode)
mole@chicoreus:~/workspace$ java PSLTest
PrintServiceLookup Test without JobName ...
attributeSet.size(): 0
services.length: 7
HP_LaserJet_400_color_M451dn, HP_Officejet_100_Mobile_L411,
HPColorLaserJetCP2025, LaserJet-4000, Officejet_100_Mobile_L411,
PhotoSmart_P1000, PostScript-Printer, 

PrintServiceLookup Test with JobName ...
attributeSet.size(): 1
services.length: 0
Exception in thread main java.lang.NullPointerException
at PSLTest.main(PSLTest.java:29)


-- 
Paul J. Morris
Biodiversity Informatics Manager
Harvard University Herbaria/Museum of Comparative Zoölogy
m...@morris.net  AA3SD  PGP public key available

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel