Select Page

An example project that generates crop data for a field layer. See the section on software libraries in the developer documentation for help with the code.

The example takes a polygon layer as input and outputs the list of crops for each year for each field. The crop data is also added to the polygon layer as table attributes. See create a GIS layer for help on digitizing polygons.

First insert the user interface elements to the project HTML:

Add the backbone model and view creation code to the project javascript:

Add the backbone view code:

Add the backbone model code:

The project CSS:

Finally we add the server code that actually calls the CSIP service: