Calculating area of geoshape / polygon

Hi,

I wanted to check if there is any interest in adding an area() function to
the core JavaRosa libraries that would calculate the area of a node with
type=geoshape.

If so, I could implement this in Enketo's JavaScript XPath evaluator for
(relatively) straightforward porting to JavaRosa by an ODK dev. If there is
no interest, I'll implement it outside of XPath and use a leaflet plugin
instead.

Cheers,
Martijn

Martijn,

Seems like it'd be a useful feature to have in XPath...

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Mon, Jun 23, 2014 at 7:17 AM, Martijn van de Rijdt martijn@enketo.org wrote:

Hi,

I wanted to check if there is any interest in adding an area() function to
the core JavaRosa libraries that would calculate the area of a node with
type=geoshape.

If so, I could implement this in Enketo's JavaScript XPath evaluator for
(relatively) straightforward porting to JavaRosa by an ODK dev. If there is
no interest, I'll implement it outside of XPath and use a leaflet plugin
instead.

Cheers,
Martijn

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

  1. Is anybody against having the area() function added?

  2. I'm looking for a developer who is comfortable with the JavaRosa library
    to add this. I think the algorithm can be similar to this
    https://github.com/Leaflet/Leaflet.draw/blob/3cba37065ea5be28f42efe9cc47836c9e3f5db8c/src/ext/GeometryUtil.js#L3-L20 so
    not including curvature of the Earth and altitude. If somebody is
    interested and able to do this in the next 2-3 weeks, please contact me so
    we can discuss further and I can send a quote to my client.

Cheers,
Martijn

··· On Monday, June 23, 2014 8:26:46 AM UTC-6, Yaw Anokwa wrote: > > Martijn, > > Seems like it'd be a useful feature to have in XPath... > > Yaw > -- > Need ODK services? http://nafundi.com provides form design, server > setup, professional support, and software development for ODK. > > On Mon, Jun 23, 2014 at 7:17 AM, Martijn van de Rijdt <mar...@enketo.org > wrote: > > Hi, > > > > I wanted to check if there is any interest in adding an area() function > to > > the core JavaRosa libraries that would calculate the area of a node with > > type=geoshape. > > > > If so, I could implement this in Enketo's JavaScript XPath evaluator for > > (relatively) straightforward porting to JavaRosa by an ODK dev. If there > is > > no interest, I'll implement it outside of XPath and use a leaflet plugin > > instead. > > > > Cheers, > > Martijn > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "ODK Developers" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to opendatakit-developers+unsubscribe@googlegroups.com > . > > For more options, visit https://groups.google.com/d/optout. >

Hi Martijn,

We added enclosed-area() and distance-between() functions into SurveyCTO a
few versions back, using repeated geopoint observations (so no fancy new
data types). A customer had partially subsidized the development for that,
and we could port that code to a new data type and open-source if somebody
would further subsidize the effort. The might be the cheapest and quickest
approach since we already have working code in the field (and a customer
who has already paid for about half of it). Please just email me offline if
you want to discuss further.

Thanks,

Chris

··· On Tue, Jul 29, 2014 at 12:33 PM, Martijn van de Rijdt wrote:
  1. Is anybody against having the area() function added?

  2. I'm looking for a developer who is comfortable with the JavaRosa
    library to add this. I think the algorithm can be similar to this
    https://github.com/Leaflet/Leaflet.draw/blob/3cba37065ea5be28f42efe9cc47836c9e3f5db8c/src/ext/GeometryUtil.js#L3-L20 so
    not including curvature of the Earth and altitude. If somebody is
    interested and able to do this in the next 2-3 weeks, please contact me so
    we can discuss further and I can send a quote to my client.

Cheers,
Martijn

On Monday, June 23, 2014 8:26:46 AM UTC-6, Yaw Anokwa wrote:

Martijn,

Seems like it'd be a useful feature to have in XPath...

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Mon, Jun 23, 2014 at 7:17 AM, Martijn van de Rijdt mar...@enketo.org wrote:

Hi,

I wanted to check if there is any interest in adding an area() function
to
the core JavaRosa libraries that would calculate the area of a node
with
type=geoshape.

If so, I could implement this in Enketo's JavaScript XPath evaluator
for
(relatively) straightforward porting to JavaRosa by an ODK dev. If
there is
no interest, I'll implement it outside of XPath and use a leaflet
plugin
instead.

Cheers,
Martijn

--
You received this message because you are subscribed to the Google
Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thanks Chris, I've emailed you.

One thing I forgot to mention and would like to get feedback on is the
UNITS that area() produces. I suggest those should be m2. Agreed?

··· On Tuesday, July 29, 2014 10:40:21 AM UTC-6, Christopher Robert wrote: > > Hi Martijn, > > We added enclosed-area() and distance-between() functions into SurveyCTO a > few versions back, using repeated geopoint observations (so no fancy new > data types). A customer had partially subsidized the development for that, > and we could port that code to a new data type and open-source if somebody > would further subsidize the effort. The might be the cheapest and quickest > approach since we already have working code in the field (and a customer > who has already paid for about half of it). Please just email me offline if > you want to discuss further. > > Thanks, > > Chris > > > > On Tue, Jul 29, 2014 at 12:33 PM, Martijn van de Rijdt <mar...@enketo.org > wrote: > >> 1. Is anybody against having the area() function added? >> >> 2. I'm looking for a developer who is comfortable with the JavaRosa >> library to add this. I think the algorithm can be similar to this >> so >> not including curvature of the Earth and altitude. If somebody is >> interested and able to do this in the next 2-3 weeks, please contact me so >> we can discuss further and I can send a quote to my client. >> >> Cheers, >> Martijn >> >> On Monday, June 23, 2014 8:26:46 AM UTC-6, Yaw Anokwa wrote: >> >>> Martijn, >>> >>> Seems like it'd be a useful feature to have in XPath... >>> >>> Yaw >>> -- >>> Need ODK services? http://nafundi.com provides form design, server >>> setup, professional support, and software development for ODK. >>> >>> On Mon, Jun 23, 2014 at 7:17 AM, Martijn van de Rijdt wrote: >>> > Hi, >>> > >>> > I wanted to check if there is any interest in adding an area() >>> function to >>> > the core JavaRosa libraries that would calculate the area of a node >>> with >>> > type=geoshape. >>> > >>> > If so, I could implement this in Enketo's JavaScript XPath evaluator >>> for >>> > (relatively) straightforward porting to JavaRosa by an ODK dev. If >>> there is >>> > no interest, I'll implement it outside of XPath and use a leaflet >>> plugin >>> > instead. >>> > >>> > Cheers, >>> > Martijn >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups >>> > "ODK Developers" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an >>> > email to opendatakit-developers+unsubscribe@googlegroups.com. >>> > For more options, visit https://groups.google.com/d/optout. >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "ODK Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit-developers+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > >

m2 - agreed. The accuracy is in meters, so it makes sense to keep that.

··· On Tue, Jul 29, 2014 at 1:48 PM, Martijn van de Rijdt wrote:

Thanks Chris, I've emailed you.

One thing I forgot to mention and would like to get feedback on is the
UNITS that area() produces. I suggest those should be m2. Agreed?

On Tuesday, July 29, 2014 10:40:21 AM UTC-6, Christopher Robert wrote:

Hi Martijn,

We added enclosed-area() and distance-between() functions into SurveyCTO
a few versions back, using repeated geopoint observations (so no fancy new
data types). A customer had partially subsidized the development for that,
and we could port that code to a new data type and open-source if somebody
would further subsidize the effort. The might be the cheapest and quickest
approach since we already have working code in the field (and a customer
who has already paid for about half of it). Please just email me offline if
you want to discuss further.

Thanks,

Chris

On Tue, Jul 29, 2014 at 12:33 PM, Martijn van de Rijdt <mar...@enketo.org wrote:

  1. Is anybody against having the area() function added?

  2. I'm looking for a developer who is comfortable with the JavaRosa
    library to add this. I think the algorithm can be similar to this
    https://github.com/Leaflet/Leaflet.draw/blob/3cba37065ea5be28f42efe9cc47836c9e3f5db8c/src/ext/GeometryUtil.js#L3-L20 so
    not including curvature of the Earth and altitude. If somebody is
    interested and able to do this in the next 2-3 weeks, please contact me so
    we can discuss further and I can send a quote to my client.

Cheers,
Martijn

On Monday, June 23, 2014 8:26:46 AM UTC-6, Yaw Anokwa wrote:

Martijn,

Seems like it'd be a useful feature to have in XPath...

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Mon, Jun 23, 2014 at 7:17 AM, Martijn van de Rijdt mar...@enketo.org wrote:

Hi,

I wanted to check if there is any interest in adding an area()
function to
the core JavaRosa libraries that would calculate the area of a node
with
type=geoshape.

If so, I could implement this in Enketo's JavaScript XPath evaluator
for
(relatively) straightforward porting to JavaRosa by an ODK dev. If
there is
no interest, I'll implement it outside of XPath and use a leaflet
plugin
instead.

Cheers,
Martijn

--
You received this message because you are subscribed to the Google
Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it,
send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google
Groups "ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Does anybody have an objection to calling this function: enclosed-area()
instead? I'm happy with that name.

Cheers,
Martijn

··· On Thursday, July 31, 2014 10:16:24 AM UTC-6, Mitch wrote: > > m2 - agreed. The accuracy is in meters, so it makes sense to keep that. > > > On Tue, Jul 29, 2014 at 1:48 PM, Martijn van de Rijdt <mar...@enketo.org > wrote: > >> Thanks Chris, I've emailed you. >> >> One thing I forgot to mention and would like to get feedback on is the >> UNITS that area() produces. I suggest those should be m2. Agreed? >> >> >> On Tuesday, July 29, 2014 10:40:21 AM UTC-6, Christopher Robert wrote: >> >>> Hi Martijn, >>> >>> We added enclosed-area() and distance-between() functions into SurveyCTO >>> a few versions back, using repeated geopoint observations (so no fancy new >>> data types). A customer had partially subsidized the development for that, >>> and we could port that code to a new data type and open-source if somebody >>> would further subsidize the effort. The might be the cheapest and quickest >>> approach since we already have working code in the field (and a customer >>> who has already paid for about half of it). Please just email me offline if >>> you want to discuss further. >>> >>> Thanks, >>> >>> Chris >>> >>> >>> >>> On Tue, Jul 29, 2014 at 12:33 PM, Martijn van de Rijdt < mar...@enketo.org> wrote: >>> >>>> 1. Is anybody against having the area() function added? >>>> >>>> 2. I'm looking for a developer who is comfortable with the JavaRosa >>>> library to add this. I think the algorithm can be similar to this >>>> so >>>> not including curvature of the Earth and altitude. If somebody is >>>> interested and able to do this in the next 2-3 weeks, please contact me so >>>> we can discuss further and I can send a quote to my client. >>>> >>>> Cheers, >>>> Martijn >>>> >>>> On Monday, June 23, 2014 8:26:46 AM UTC-6, Yaw Anokwa wrote: >>>> >>>>> Martijn, >>>>> >>>>> Seems like it'd be a useful feature to have in XPath... >>>>> >>>>> Yaw >>>>> -- >>>>> Need ODK services? http://nafundi.com provides form design, server >>>>> setup, professional support, and software development for ODK. >>>>> >>>>> On Mon, Jun 23, 2014 at 7:17 AM, Martijn van de Rijdt wrote: >>>>> > Hi, >>>>> > >>>>> > I wanted to check if there is any interest in adding an area() >>>>> function to >>>>> > the core JavaRosa libraries that would calculate the area of a node >>>>> with >>>>> > type=geoshape. >>>>> > >>>>> > If so, I could implement this in Enketo's JavaScript XPath evaluator >>>>> for >>>>> > (relatively) straightforward porting to JavaRosa by an ODK dev. If >>>>> there is >>>>> > no interest, I'll implement it outside of XPath and use a leaflet >>>>> plugin >>>>> > instead. >>>>> > >>>>> > Cheers, >>>>> > Martijn >>>>> > >>>>> > -- >>>>> > You received this message because you are subscribed to the Google >>>>> Groups >>>>> > "ODK Developers" group. >>>>> > To unsubscribe from this group and stop receiving emails from it, >>>>> send an >>>>> > email to opendatakit-developers+unsubscribe@googlegroups.com. >>>>> > For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "ODK Developers" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to opendatakit-developers+unsubscribe@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "ODK Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit-developers+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

What other area could there be? Seems like there is no other kind...

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Mon, Aug 4, 2014 at 9:46 AM, Martijn van de Rijdt martijn@enketo.org wrote:

Does anybody have an objection to calling this function: enclosed-area()
instead? I'm happy with that name.

Cheers,
Martijn

On Thursday, July 31, 2014 10:16:24 AM UTC-6, Mitch wrote:

m2 - agreed. The accuracy is in meters, so it makes sense to keep that.

On Tue, Jul 29, 2014 at 1:48 PM, Martijn van de Rijdt mar...@enketo.org wrote:

Thanks Chris, I've emailed you.

One thing I forgot to mention and would like to get feedback on is the
UNITS that area() produces. I suggest those should be m2. Agreed?

On Tuesday, July 29, 2014 10:40:21 AM UTC-6, Christopher Robert wrote:

Hi Martijn,

We added enclosed-area() and distance-between() functions into SurveyCTO
a few versions back, using repeated geopoint observations (so no fancy new
data types). A customer had partially subsidized the development for that,
and we could port that code to a new data type and open-source if somebody
would further subsidize the effort. The might be the cheapest and quickest
approach since we already have working code in the field (and a customer who
has already paid for about half of it). Please just email me offline if you
want to discuss further.

Thanks,

Chris

On Tue, Jul 29, 2014 at 12:33 PM, Martijn van de Rijdt mar...@enketo.org wrote:

  1. Is anybody against having the area() function added?

  2. I'm looking for a developer who is comfortable with the JavaRosa
    library to add this. I think the algorithm can be similar to this so not
    including curvature of the Earth and altitude. If somebody is interested and
    able to do this in the next 2-3 weeks, please contact me so we can discuss
    further and I can send a quote to my client.

Cheers,
Martijn

On Monday, June 23, 2014 8:26:46 AM UTC-6, Yaw Anokwa wrote:

Martijn,

Seems like it'd be a useful feature to have in XPath...

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Mon, Jun 23, 2014 at 7:17 AM, Martijn van de Rijdt mar...@enketo.org wrote:

Hi,

I wanted to check if there is any interest in adding an area()
function to
the core JavaRosa libraries that would calculate the area of a node
with
type=geoshape.

If so, I could implement this in Enketo's JavaScript XPath evaluator
for
(relatively) straightforward porting to JavaRosa by an ODK dev. If
there is
no interest, I'll implement it outside of XPath and use a leaflet
plugin
instead.

Cheers,
Martijn

--
You received this message because you are subscribed to the Google
Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it,
send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google
Groups "ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I agree with Yaw. Unless there is another type of area I would just call
it area.

··· On Mon, Aug 4, 2014 at 7:48 PM, Yaw Anokwa wrote:

What other area could there be? Seems like there is no other kind...

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Mon, Aug 4, 2014 at 9:46 AM, Martijn van de Rijdt martijn@enketo.org wrote:

Does anybody have an objection to calling this function: enclosed-area()
instead? I'm happy with that name.

Cheers,
Martijn

On Thursday, July 31, 2014 10:16:24 AM UTC-6, Mitch wrote:

m2 - agreed. The accuracy is in meters, so it makes sense to keep that.

On Tue, Jul 29, 2014 at 1:48 PM, Martijn van de Rijdt < mar...@enketo.org> wrote:

Thanks Chris, I've emailed you.

One thing I forgot to mention and would like to get feedback on is the
UNITS that area() produces. I suggest those should be m2. Agreed?

On Tuesday, July 29, 2014 10:40:21 AM UTC-6, Christopher Robert wrote:

Hi Martijn,

We added enclosed-area() and distance-between() functions into
SurveyCTO

a few versions back, using repeated geopoint observations (so no
fancy new

data types). A customer had partially subsidized the development for
that,

and we could port that code to a new data type and open-source if
somebody

would further subsidize the effort. The might be the cheapest and
quickest

approach since we already have working code in the field (and a
customer who

has already paid for about half of it). Please just email me offline
if you

want to discuss further.

Thanks,

Chris

On Tue, Jul 29, 2014 at 12:33 PM, Martijn van de Rijdt mar...@enketo.org wrote:

  1. Is anybody against having the area() function added?

  2. I'm looking for a developer who is comfortable with the JavaRosa
    library to add this. I think the algorithm can be similar to this so
    not

including curvature of the Earth and altitude. If somebody is
interested and

able to do this in the next 2-3 weeks, please contact me so we can
discuss

further and I can send a quote to my client.

Cheers,
Martijn

On Monday, June 23, 2014 8:26:46 AM UTC-6, Yaw Anokwa wrote:

Martijn,

Seems like it'd be a useful feature to have in XPath...

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Mon, Jun 23, 2014 at 7:17 AM, Martijn van de Rijdt mar...@enketo.org wrote:

Hi,

I wanted to check if there is any interest in adding an area()
function to
the core JavaRosa libraries that would calculate the area of a
node

with
type=geoshape.

If so, I could implement this in Enketo's JavaScript XPath
evaluator

for
(relatively) straightforward porting to JavaRosa by an ODK dev. If
there is
no interest, I'll implement it outside of XPath and use a leaflet
plugin
instead.

Cheers,
Martijn

--
You received this message because you are subscribed to the Google
Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it,
send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google
Groups "ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it,
send

an email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google
Groups

"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
an

email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

The other area would be the area of the convex-hull -- if the boundary is
non-convex (e.g., star-shaped), then the enclosed-area would differ from
the area of the convex hull (the area enclosed by the polygon consisting of
the points at the tips of the star's arms).

I think area() suffices. Using enclosed-area() just makes people ponder
Matt's question.

··· On Mon, Aug 4, 2014 at 9:52 AM, Matt Berg wrote:

I agree with Yaw. Unless there is another type of area I would just call
it area.

On Mon, Aug 4, 2014 at 7:48 PM, Yaw Anokwa yanokwa@nafundi.com wrote:

What other area could there be? Seems like there is no other kind...

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Mon, Aug 4, 2014 at 9:46 AM, Martijn van de Rijdt martijn@enketo.org wrote:

Does anybody have an objection to calling this function: enclosed-area()
instead? I'm happy with that name.

Cheers,
Martijn

On Thursday, July 31, 2014 10:16:24 AM UTC-6, Mitch wrote:

m2 - agreed. The accuracy is in meters, so it makes sense to keep that.

On Tue, Jul 29, 2014 at 1:48 PM, Martijn van de Rijdt < mar...@enketo.org> wrote:

Thanks Chris, I've emailed you.

One thing I forgot to mention and would like to get feedback on is the
UNITS that area() produces. I suggest those should be m2. Agreed?

On Tuesday, July 29, 2014 10:40:21 AM UTC-6, Christopher Robert wrote:

Hi Martijn,

We added enclosed-area() and distance-between() functions into
SurveyCTO

a few versions back, using repeated geopoint observations (so no
fancy new

data types). A customer had partially subsidized the development for
that,

and we could port that code to a new data type and open-source if
somebody

would further subsidize the effort. The might be the cheapest and
quickest

approach since we already have working code in the field (and a
customer who

has already paid for about half of it). Please just email me offline
if you

want to discuss further.

Thanks,

Chris

On Tue, Jul 29, 2014 at 12:33 PM, Martijn van de Rijdt mar...@enketo.org wrote:

  1. Is anybody against having the area() function added?

  2. I'm looking for a developer who is comfortable with the JavaRosa
    library to add this. I think the algorithm can be similar to this
    so not

including curvature of the Earth and altitude. If somebody is
interested and

able to do this in the next 2-3 weeks, please contact me so we can
discuss

further and I can send a quote to my client.

Cheers,
Martijn

On Monday, June 23, 2014 8:26:46 AM UTC-6, Yaw Anokwa wrote:

Martijn,

Seems like it'd be a useful feature to have in XPath...

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Mon, Jun 23, 2014 at 7:17 AM, Martijn van de Rijdt mar...@enketo.org wrote:

Hi,

I wanted to check if there is any interest in adding an area()
function to
the core JavaRosa libraries that would calculate the area of a
node

with
type=geoshape.

If so, I could implement this in Enketo's JavaScript XPath
evaluator

for
(relatively) straightforward porting to JavaRosa by an ODK dev.
If

there is
no interest, I'll implement it outside of XPath and use a leaflet
plugin
instead.

Cheers,
Martijn

--
You received this message because you are subscribed to the
Google

Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it,
send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google
Groups "ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it,
send

an email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google
Groups

"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it,
send an

email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

--
You received this message because you are subscribed to the Google
Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Thanks Yay, Matt, Mitch. Agreed. Area() it is then!

··· On Monday, August 4, 2014 11:46:08 AM UTC-6, Mitch wrote: > > The other area would be the area of the convex-hull -- if the boundary is > non-convex (e.g., star-shaped), then the enclosed-area would differ from > the area of the convex hull (the area enclosed by the polygon consisting of > the points at the tips of the star's arms). > > I think area() suffices. Using enclosed-area() just makes people ponder > Matt's question. > > > On Mon, Aug 4, 2014 at 9:52 AM, Matt Berg <mlb...@gmail.com > wrote: > >> I agree with Yaw. Unless there is another type of area I would just call >> it area. >> >> >> On Mon, Aug 4, 2014 at 7:48 PM, Yaw Anokwa <yan...@nafundi.com > wrote: >> >>> What other area could there be? Seems like there is no other kind... >>> >>> Yaw >>> -- >>> Need ODK services? http://nafundi.com provides form design, server >>> setup, professional support, and software development for ODK. >>> >>> On Mon, Aug 4, 2014 at 9:46 AM, Martijn van de Rijdt <mar...@enketo.org > wrote: >>> > Does anybody have an objection to calling this function: >>> enclosed-area() >>> > instead? I'm happy with that name. >>> > >>> > Cheers, >>> > Martijn >>> > >>> > On Thursday, July 31, 2014 10:16:24 AM UTC-6, Mitch wrote: >>> >> >>> >> m2 - agreed. The accuracy is in meters, so it makes sense to keep >>> that. >>> >> >>> >> >>> >> On Tue, Jul 29, 2014 at 1:48 PM, Martijn van de Rijdt < mar...@enketo.org> wrote: >>> >>> >>> >>> Thanks Chris, I've emailed you. >>> >>> >>> >>> One thing I forgot to mention and would like to get feedback on is >>> the >>> >>> UNITS that area() produces. I suggest those should be m2. Agreed? >>> >>> >>> >>> >>> >>> On Tuesday, July 29, 2014 10:40:21 AM UTC-6, Christopher Robert wrote: >>> >>>> >>> >>>> Hi Martijn, >>> >>>> >>> >>>> We added enclosed-area() and distance-between() functions into >>> SurveyCTO >>> >>>> a few versions back, using repeated geopoint observations (so no >>> fancy new >>> >>>> data types). A customer had partially subsidized the development >>> for that, >>> >>>> and we could port that code to a new data type and open-source if >>> somebody >>> >>>> would further subsidize the effort. The might be the cheapest and >>> quickest >>> >>>> approach since we already have working code in the field (and a >>> customer who >>> >>>> has already paid for about half of it). Please just email me >>> offline if you >>> >>>> want to discuss further. >>> >>>> >>> >>>> Thanks, >>> >>>> >>> >>>> Chris >>> >>>> >>> >>>> >>> >>>> >>> >>>> On Tue, Jul 29, 2014 at 12:33 PM, Martijn van de Rijdt wrote: >>> >>>>> >>> >>>>> 1. Is anybody against having the area() function added? >>> >>>>> >>> >>>>> 2. I'm looking for a developer who is comfortable with the JavaRosa >>> >>>>> library to add this. I think the algorithm can be similar to this >>> so not >>> >>>>> including curvature of the Earth and altitude. If somebody is >>> interested and >>> >>>>> able to do this in the next 2-3 weeks, please contact me so we can >>> discuss >>> >>>>> further and I can send a quote to my client. >>> >>>>> >>> >>>>> Cheers, >>> >>>>> Martijn >>> >>>>> >>> >>>>> On Monday, June 23, 2014 8:26:46 AM UTC-6, Yaw Anokwa wrote: >>> >>>>>> >>> >>>>>> Martijn, >>> >>>>>> >>> >>>>>> Seems like it'd be a useful feature to have in XPath... >>> >>>>>> >>> >>>>>> Yaw >>> >>>>>> -- >>> >>>>>> Need ODK services? http://nafundi.com provides form design, >>> server >>> >>>>>> setup, professional support, and software development for ODK. >>> >>>>>> >>> >>>>>> On Mon, Jun 23, 2014 at 7:17 AM, Martijn van de Rijdt wrote: >>> >>>>>> > Hi, >>> >>>>>> > >>> >>>>>> > I wanted to check if there is any interest in adding an area() >>> >>>>>> > function to >>> >>>>>> > the core JavaRosa libraries that would calculate the area of a >>> node >>> >>>>>> > with >>> >>>>>> > type=geoshape. >>> >>>>>> > >>> >>>>>> > If so, I could implement this in Enketo's JavaScript XPath >>> evaluator >>> >>>>>> > for >>> >>>>>> > (relatively) straightforward porting to JavaRosa by an ODK dev. >>> If >>> >>>>>> > there is >>> >>>>>> > no interest, I'll implement it outside of XPath and use a >>> leaflet >>> >>>>>> > plugin >>> >>>>>> > instead. >>> >>>>>> > >>> >>>>>> > Cheers, >>> >>>>>> > Martijn >>> >>>>>> > >>> >>>>>> > -- >>> >>>>>> > You received this message because you are subscribed to the >>> Google >>> >>>>>> > Groups >>> >>>>>> > "ODK Developers" group. >>> >>>>>> > To unsubscribe from this group and stop receiving emails from >>> it, >>> >>>>>> > send an >>> >>>>>> > email to opendatakit-developers+unsubscribe@googlegroups.com >>> . >>> >>>>>> > For more options, visit https://groups.google.com/d/optout. >>> >>>>> >>> >>>>> -- >>> >>>>> You received this message because you are subscribed to the Google >>> >>>>> Groups "ODK Developers" group. >>> >>>>> To unsubscribe from this group and stop receiving emails from it, >>> send >>> >>>>> an email to opendatakit-developers+unsubscribe@googlegroups.com >>> . >>> >>>>> For more options, visit https://groups.google.com/d/optout. >>> >>>> >>> >>>> >>> >>> -- >>> >>> You received this message because you are subscribed to the Google >>> Groups >>> >>> "ODK Developers" group. >>> >>> To unsubscribe from this group and stop receiving emails from it, >>> send an >>> >>> email to opendatakit-developers+unsubscribe@googlegroups.com >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >>> >> >>> >> >>> >> >>> >> -- >>> >> Mitch Sundt >>> >> Software Engineer >>> >> University of Washington >>> >> mitche...@gmail.com >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups >>> > "ODK Developers" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an >>> > email to opendatakit-developers+unsubscribe@googlegroups.com >>> . >>> > For more options, visit https://groups.google.com/d/optout. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "ODK Developers" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to opendatakit-developers+unsubscribe@googlegroups.com >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ODK Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit-developers+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >