[Proj] Coordinate within an area ?

Martin Raspaud martin.raspaud at smhi.se
Tue Mar 30 07:18:46 PDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Roger Oberholtzer skrev:
> On Tue, 2010-03-30 at 04:18 -0700, Hamish wrote:
>> Martin Raspaud wrote:
>>> Is there a way to know if a point defined by its lon/lat
>>> coordinates is within
>>> an area which corners are given in lon/lats also ?
>>
>> yes, there are many methods to do this. try a web search
>> for "point in polygon". if it is corners of a box, it's trivial..
> 
> As lat/longs and not meters? On a non-flat surface? Isn't it more
> complicated with lat/long for this? I would think you should convert the
> values to northings/eastings and do the test on that data. Then it could
> perhaps be a bounding box test.

Yes I thought about this, but wondered if there was a straight mthod I had missed.

> My next questions would be: (1) how accurate does it need to be? and (2)
> If it is done everywhere in the world, what projection to use to reduce
> error? I would think SMHI would be working in and near Sweden, and would
> be ok with SWEREF99.

1/ Not so accurate. We would have two areas, approximately the size of
scandinavia in different projections, and would want to know if there is
overlap. Missing an overlap to 5% is no big deal.
2/ We use global data, so it is everywhere in the world. I thought about using
Lambert azimuthal equal-area projection.

Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJLsghFAAoJEBdvyODiyJI4dKkH/iihae4UphQyM1MaOMaBecoq
NLDjuclDjhYyVT6DmU7negf+VGgd7BmPOpxofhq/lAzuvjpCiQkYwuQZgJG4ufa7
kOeuwiIRc6PzAwit58WvUiyiDa7kZtA33Ns0O1OllmeQeydTJ3+MvFayzw1pYO5G
h1mHjnAwBD+pzp+sjqdt1Gg0OC1ypKhloIVZa/by0XekkUWot3SRAJN4WMeTbEIE
CO+zTwI5uVgd8TVxpY6MYn+rHgqYh+lD5fvPYotAiwvDQes4Ws+K//a6QGVF8Biv
cQ0aBFvfXsADqEpAHU5RYSif18q93iWEyiTubBrARS1b1y72rKLMcZhQEe3VdbQ=
=Cw6b
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: martin_raspaud.vcf
Type: text/x-vcard
Size: 260 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20100330/4ee10661/attachment.vcf>


More information about the Proj mailing list