You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where in the code do I change the location of bbox? (greyed out)
Thanks for making code open source really helpful in development of building-height.co.uk
Building-Height is a system that can determine the attributes of historical buildings in England. The building part can be defined just by uploading a photo.
If you would like to try the app here is a link to an example image in Farnham, Surrey. (currently only have a couple thousand OS polygons footprints in our database for testing.
The text was updated successfully, but these errors were encountered:
Hi @buildvoc10. Thanks for the feedback (and glad to hear that the resources have been helpful).
You will probably be interested in the /queryables endpoint for the service. This defines which properties can be filtered for the requested feature collection (using the filter query parameter). The examples demonstrate how to filter by the properties with enumerated values (however you can also filter by text strings or integers). You might find that https://labs.os.uk/public/osngd/tutorials/filtering-and-cql is a useful resource to better help understand filtering using CQL.
The bounding box (BBOX) can be defined using the bbox query parameter. For the purpose of the examples we have disabled this option to use a predefined/restricted extent; but in practice the value would be important in limiting your responses to the area of interest (otherwise features will be returned across the whole of GB).
Using theosdatahub-js wrapper you can implement the filter and bbox query parameters as follows: osdatahub.ngd.features("INSERT_API_KEY_HERE", "bld-fts-buildingpart", { bbox: [-3.545022,50.727083,-3.538596,50.728095], filter: "description = 'Building'", limit: 1000 })
Good afternoon
Have deployed OS NGD API – Features Retrieve items from a feature collection, I noticed that https://labs.os.uk/public/osngd/os-ngd-api-features/examples/queryables.html has the filters built into query, how do I update my app to include these filters?
![image](https://private-user-images.githubusercontent.com/76884997/270172820-450b3cdb-c831-4876-a32f-d939adeaff68.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwODYyODYsIm5iZiI6MTczOTA4NTk4NiwicGF0aCI6Ii83Njg4NDk5Ny8yNzAxNzI4MjAtNDUwYjNjZGItYzgzMS00ODc2LWEzMmYtZDkzOWFkZWFmZjY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDA3MjYyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyMzgyNmVkY2M1MmYxNjY4MzYzMWZmYmQ2OGI0ZDQyOGY5MjFiZWFkYWZlNzE1MDExZjk2YjJmM2NmZjBmZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.okBB3xLfc7-MPLC7KiRFFh4CMT0iz_d7wL4mQEn5bBU)
Where in the code do I change the location of bbox? (greyed out)
![image](https://private-user-images.githubusercontent.com/76884997/270173181-45078241-7f2e-4b32-aa13-17672c9c1186.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwODYyODYsIm5iZiI6MTczOTA4NTk4NiwicGF0aCI6Ii83Njg4NDk5Ny8yNzAxNzMxODEtNDUwNzgyNDEtN2YyZS00YjMyLWFhMTMtMTc2NzJjOWMxMTg2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDA3MjYyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgxNjVjNjBkNzA2MjcyYjA4NWU5YjkwYTA2NTQzNWM2MmRkN2M3Njc0ZWI3MzQwZTRiZDg1NzQ1NDhhYTk2NjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.rr0bWSihV8gYuw7TteLEufXpubh10NkkQSWIoGs4eV8)
Thanks for making code open source really helpful in development of building-height.co.uk
Building-Height is a system that can determine the attributes of historical buildings in England. The building part can be defined just by uploading a photo.
If you would like to try the app here is a link to an example image in Farnham, Surrey. (currently only have a couple thousand OS polygons footprints in our database for testing.
The text was updated successfully, but these errors were encountered: