-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem executing DigitalConnector recipe #545
Comments
The LSOA names in London start with the name of the Borough and the LSOA labels do not have a pattern. However, all boroughs in London have a label starting the string E090. Hence the way to get all LSOAs in London is: |
After having downloaded the external Excel file, the gradle export fails with a Java OutOfMemoryError: Downloading external resource: https://www.gov.uk/government/uploads/system/uplo My laptop has 8GB of RAM, so that's not necessarily the problem. Is there a way for the gradle runExport process to assign more RAM to the process, for example by means of a commandline parameter or from an ini file? For example in an R script you can do: This often avoids Java outOfMemory problems because by default an R script only receives 1GB of RAM. |
You could look at changing the value for the runExport process in the build.gradle |
If I want to retrieve the green areas info for London similar to the 'greenspace-hertfordshire.json' example recipe, what do I have to put in here? If I do it this way, I get the following error message: -----> TASK FAILED: http://download.geofabrik.de/europe/great-britain/england/lo java.io.FileNotFoundException: http://download.geofabrik.de/europe/great-britain |
The OSM file for london is called: europe/great-britain/england/greater-london See here a list of different areas you could put: https://download.geofabrik.de/europe/great-britain/england.html |
Back to the Java OutOfMemory error: I set all the MaxHeapSize values to the maximum value (i.e. the RAM available) With these settings the export process ran much longer (~ 40 mins) than before but eventually failed again with an OutOfMemoryError: 2018-03-17 18:10:10.160 [main] INFO u.org.tombolo.importer.DownloadUtils - Fetc |
In this case the target code is used to determine the unit used for the area. In the WGS4326 code the unit is degrees, which gives hard to interpret numbers for area. However the 27700 code uses the metric system and the results are more easily interpreted. |
So for London I should use the 27700 code as well? |
Yes |
Regarding the out of memory ... did you change the value for runExport as well? But more generally, I think that we can conclude that we need to look at this importer after the weekend and find a more scalable solution. |
When I 'runExport' the following recipe to get the green areas for London, the build's successful in 10 seconds but the output file is almost empty: { What's wrong with it? Output: |
The subject specification for LSOAs in london is:
instead of
|
Unfortunately still no full success: -----> TASK FAILED: Could not compute Field component:AreaLSOA for Subject E0100 java.lang.IllegalArgumentException: Could not compute Field component:AreaLSOA f |
Interesting ... It could that the digital connector is not German proof :/ (need more debugging to be sure) I.e. it could be that some of the system outputs numbers using your localised environment (using commas for decimals) but another part of the system does not use the localised version (using dots for decimals). Thanks for hanging in there and trying ... sorry for things not working well. |
{
"dataset": {
"subjects": [
{
// The output subjects are all LSOAs
"provider": "uk.gov.ons",
"subjectType": "lsoa",
"matchRule": {
"attribute": "name",
"pattern": "London%"
}
}
],
"datasources": [
{
"importerClass": "uk.org.tombolo.importer.dft.AccessibilityImporter",
"datasourceId": "acs0507"
},
{
// Importer for LSOA geographies
"importerClass": "uk.org.tombolo.importer.ons.OaImporter",
"datasourceId": "lsoa"
}
],
"fields": [
{
// Area of LSOA
"fieldClass": "uk.org.tombolo.field.value.LatestValueField",
"label": "component:Travel time",
"attribute": {
"provider": "uk.gov.dft",
"label": "SUPO008"
}
}
]
},
"exporter": "uk.org.tombolo.exporter.GeoJsonExporter"
}
The text was updated successfully, but these errors were encountered: