Skip to content

Commit

Permalink
new planning constraint shape including source link
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Nov 9, 2023
1 parent bb25ae4 commit 02b341c
Show file tree
Hide file tree
Showing 7 changed files with 549 additions and 711 deletions.
53 changes: 28 additions & 25 deletions examples/data/ldcE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,36 +151,14 @@ export const validLDCE: Schema = {
squareMetres: 2993.67,
},
},
constraints: {
planning: [
{
value: 'tpo',
description: 'Tree Preservation Order (TPO) or zone',
intersects: false,
},
planning: {
source: 'https://api.editor.planx.dev/gis/buckinghamshire?geom=test',
designations: [
{
value: 'listed',
description: 'Listed Building',
intersects: false,
},
{
value: 'article4',
description: 'Article 4 Direction area',
intersects: true,
entities: [
{
name: 'Whole District excluding the Town of Chesham - Poultry production.',
description:
'Bucks County Council Town and Country Planning Act 1947 Town and Country Planning General Development Order 1950. Re Whole District excluding the Town of Chesham. In relation to poultry production.',
source: 'https://www.planning.data.gov.uk/entity/7010002192',
},
],
},
{
value: 'article4.caz',
description: 'Central Activities Zone (CAZ)',
intersects: false,
},
{
value: 'monument',
description: 'Site of a Scheduled Monument',
Expand Down Expand Up @@ -254,6 +232,31 @@ export const validLDCE: Schema = {
intersects: false,
},
],
orders: [
{
value: 'article4',
description: 'Article 4 Direction area',
intersects: true,
entities: [
{
name: 'Whole District excluding the Town of Chesham - Poultry production.',
description:
'Bucks County Council Town and Country Planning Act 1947 Town and Country Planning General Development Order 1950. Re Whole District excluding the Town of Chesham. In relation to poultry production.',
source: 'https://www.planning.data.gov.uk/entity/7010002192',
},
],
},
{
value: 'article4.caz',
description: 'Central Activities Zone (CAZ)',
intersects: false,
},
{
value: 'tpo',
description: 'Tree Preservation Order (TPO) or zone',
intersects: false,
},
],
},
localAuthorityDistrict: ['Buckinghamshire', 'Chiltern'],
region: 'South East',
Expand Down
37 changes: 20 additions & 17 deletions examples/data/ldcP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,23 +95,14 @@ export const validLDCP: Schema = {
squareMetres: 1418.26,
},
},
constraints: {
planning: [
{
value: 'tpo',
description: 'Tree Preservation Order (TPO) or zone',
intersects: false,
},
planning: {
source: 'https://api.editor.planx.dev/gis/buckinghamshire?geom=test',
designations: [
{
value: 'listed',
description: 'Listed Building',
intersects: false,
},
{
value: 'article4',
description: 'Article 4 Direction area',
intersects: false,
},
{
value: 'monument',
description: 'Site of a Scheduled Monument',
Expand Down Expand Up @@ -172,11 +163,6 @@ export const validLDCP: Schema = {
description: 'Conservation Area',
intersects: false,
},
{
value: 'article4.caz',
description: 'Central Activities Zone (CAZ)',
intersects: false,
},
{
value: 'designated.nationalPark.broads',
description: 'National Park - Broads',
Expand All @@ -188,6 +174,23 @@ export const validLDCP: Schema = {
intersects: false,
},
],
orders: [
{
value: 'article4',
description: 'Article 4 Direction area',
intersects: false,
},
{
value: 'article4.caz',
description: 'Central Activities Zone (CAZ)',
intersects: false,
},
{
value: 'tpo',
description: 'Tree Preservation Order (TPO) or zone',
intersects: false,
},
],
},
localAuthorityDistrict: ['Buckinghamshire', 'South Bucks'],
region: 'South East',
Expand Down
37 changes: 20 additions & 17 deletions examples/data/planningPermission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,23 +110,14 @@ export const validPlanningPermission: Schema = {
squareMetres: 125.92,
},
},
constraints: {
planning: [
{
value: 'tpo',
description: 'Tree Preservation Order (TPO) or zone',
intersects: false,
},
planning: {
source: 'https://api.editor.planx.dev/gis/lambeth?geom=test',
designations: [
{
value: 'listed',
description: 'Listed Building',
intersects: false,
},
{
value: 'article4',
description: 'Article 4 Direction area',
intersects: false,
},
{
value: 'monument',
description: 'Site of a Scheduled Monument',
Expand Down Expand Up @@ -177,11 +168,6 @@ export const validPlanningPermission: Schema = {
description: 'Area of Outstanding Natural Beauty (AONB)',
intersects: false,
},
{
value: 'article4.caz',
description: 'Central Activities Zone (CAZ)',
intersects: false,
},
{
value: 'designated.nationalPark',
description: 'National Park',
Expand All @@ -203,6 +189,23 @@ export const validPlanningPermission: Schema = {
intersects: false,
},
],
orders: [
{
value: 'article4',
description: 'Article 4 Direction area',
intersects: false,
},
{
value: 'article4.caz',
description: 'Central Activities Zone (CAZ)',
intersects: false,
},
{
value: 'tpo',
description: 'Tree Preservation Order (TPO) or zone',
intersects: false,
},
],
},
localAuthorityDistrict: ['Lambeth'],
region: 'London',
Expand Down
103 changes: 53 additions & 50 deletions examples/data/priorApproval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,55 +98,14 @@ export const validPriorApproval: Schema = {
squareMetres: 1527.57,
},
},
constraints: {
planning: [
{
value: 'tpo',
description: 'Tree Preservation Order (TPO) or zone',
intersects: false,
},
planning: {
source: 'https://api.editor.planx.dev/gis/southwark?geom=test',
designations: [
{
value: 'listed',
description: 'Listed Building',
intersects: false,
},
{
value: 'article4',
description: 'Article 4 Direction area',
intersects: true,
entities: [
{
name: 'Central Activities Zone',
description:
'Change of use from offices to dwelling houses is restricted',
source: 'https://www.planning.data.gov.uk/entity/7010000942',
},
{
name: 'Central Activities Zone',
description:
'Demolition of commercial buildings and construction of new dwellinghouses is restricted',
source: 'https://www.planning.data.gov.uk/entity/7010000944',
},
{
name: 'Bankside and Borough District Town Centre',
description:
'Demolition of commercial buildings and construction of new dwellinghouses is restricted',
source: 'https://www.planning.data.gov.uk/entity/7010001042',
},
{
name: 'Central Activities Zone',
description:
'Change of use from Class E to residential is restricted',
source: 'https://www.planning.data.gov.uk/entity/7010001055',
},
{
name: 'Bankside and Borough District Town Centre',
description:
'Change of use from Class E to residential is restricted',
source: 'https://www.planning.data.gov.uk/entity/7010001153',
},
],
},
{
value: 'monument',
description: 'Site of a Scheduled Monument',
Expand Down Expand Up @@ -197,12 +156,6 @@ export const validPriorApproval: Schema = {
description: 'Area of Outstanding Natural Beauty (AONB)',
intersects: false,
},
{
value: 'article4.caz',
description: 'Central Activities Zone (CAZ)',
intersects: true,
entities: [],
},
{
value: 'designated.conservationArea',
description: 'Conservation Area',
Expand All @@ -219,6 +172,56 @@ export const validPriorApproval: Schema = {
intersects: false,
},
],
orders: [
{
value: 'article4',
description: 'Article 4 Direction area',
intersects: true,
entities: [
{
name: 'Central Activities Zone',
description:
'Change of use from offices to dwelling houses is restricted',
source: 'https://www.planning.data.gov.uk/entity/7010000942',
},
{
name: 'Central Activities Zone',
description:
'Demolition of commercial buildings and construction of new dwellinghouses is restricted',
source: 'https://www.planning.data.gov.uk/entity/7010000944',
},
{
name: 'Bankside and Borough District Town Centre',
description:
'Demolition of commercial buildings and construction of new dwellinghouses is restricted',
source: 'https://www.planning.data.gov.uk/entity/7010001042',
},
{
name: 'Central Activities Zone',
description:
'Change of use from Class E to residential is restricted',
source: 'https://www.planning.data.gov.uk/entity/7010001055',
},
{
name: 'Bankside and Borough District Town Centre',
description:
'Change of use from Class E to residential is restricted',
source: 'https://www.planning.data.gov.uk/entity/7010001153',
},
],
},
{
value: 'article4.caz',
description: 'Central Activities Zone (CAZ)',
intersects: true,
entities: [],
},
{
value: 'tpo',
description: 'Tree Preservation Order (TPO) or zone',
intersects: false,
},
],
},
localAuthorityDistrict: ['Southwark'],
region: 'London',
Expand Down
Loading

0 comments on commit 02b341c

Please sign in to comment.