# Divide a Parcel

20 May 2017

parceldivide (Commands)
Command`parceldivide`
DescriptionThe `parceldivide` command allows you to divide land parcels.
Permissions`land`
Parameters`group`, `password`

The `parceldivide` command allows you to divide land parcels.

Command Required Parameters Required Corrade Permissions Required Abilities Example
`parceldivide` `group`, `password` `land` * `Parcel Management -> Subdivide and join parcels`
```llInstantMessage(CORRADE,
[
// divide the land by slicing out a parcel
// described by a rectangle defined by two
// point vectors corresponding to the
// south-west corner and north-east corner.
"command", "parceldivide",
"group", wasURLEscape(GROUP),
"southwest", "<190.501663, 68.421143, 23.906441>",
"northeast", "<199.804169, 71.81411, 23.93376>",
"callback", wasURLEscape(URL)
]
)

);```

The vector passed to the `southwest` and `northeast` represent point vectors that define a rectangle within a region that will be sliced into a separate parcel.

```                                           North

North-East
y+  /                      |  point-vector
/                       |
/       South-West       |
/          | point-vector |        NE
+-----------|--------------|------+
/////////////|//////////////|//////
//////////////|///. . . . . .x/////
///////////////|//.//////////./////
////////////////|/.//////////./////
West      /////////////////|.//////////./////     East
//////////////////x. . . . . ./////
///////////////////////////////////
///////////////////////////////////
///Region//////////////////////////
+-------------------------------------------
SW                                         x+

South

```

When the command executes, any parcel that intersects the rectangle defined by the point-vectors passed to the `southwest` and `northeast` parameters will be inspected for permissions and then sliced to become a new self-standing parcel. The parcel can only be created if any of the following conditions are satisfied:

• Corrade is an estate manager
• Corrade is the owner of all the parcels that have to be sliced
• Corrade has the group permission to divide and join parcels for all parcels that must be sliced.