Skip to content
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

Fails to update layers via manage.py command #208

Open
amruthkiran94 opened this issue Jul 24, 2019 · 0 comments
Open

Fails to update layers via manage.py command #208

amruthkiran94 opened this issue Jul 24, 2019 · 0 comments

Comments

@amruthkiran94
Copy link

amruthkiran94 commented Jul 24, 2019

Hello,
I've used the 1.8.1 Windows installer and successfully installed Cartoview.
One entry I changed in the settings.py file.

  • SITEURL port 4040 (Default was 8000)

Also changed Tomcat port to 8080 (Default was 4041). If I hadn't made these changes, geoserver could not be reached by python manage.py updatelayers prompting me with

[Errno 10061] No connection could be made because the target machine actively refused it

After fixing this while trying to importlayers I was prompted by

Exception: ('Failed to process BBMP_Wards_GSL_UTM_43N_160318', AttributeError("'FeatureType' object has no attribute 'srid'",))

Which I had to edit the helpers.py file at line 614. Change to srid.projection

Again prompted by

Exception: ('Failed to process BBMP_Wards_GSL_UTM_43N_160318', AttributeError("'NoneType' object has no attribute 'name'",))

For which I had to specify options such as -n , -t etc , trying to import layers again,

geonode.people.models.DoesNotExist: Profile matching query does not exist.

Which simple enough I provided the superuser option as follows:

python manage.py importlayers -n test -t test -a test -u superadmin path_to_file

This successfully imported my shapefile

Finished processing 1 layers in 7.0 seconds.

1 Created layers
0 Updated layers
0 Skipped layers
0 Failed layers
7.000000 seconds per layer

Now to run python manage.py updatelayers to reflect in Cartoview/Geonode, which prompted me with this:

Finished processing 1 layers in 15.0 seconds.

0 Created layers
1 Updated layers
0 Failed layers
15.000000 seconds per layer
PS E:\Cartoview\geonode> python manage.py updatelayers
Inspecting the available layers in GeoServer ...
Found 1 layers, starting processing
[updated] Layer test (1/1)

All seems well but the changes still isn't reflected on Cartoview/Geonode. Store and layer is present in Geoserver.

  • Cartoview Version : 1.8.1
  • Geonode Version : Default version with Windows installer

Edit: Just wanted to add that I would like to upload large rasters onto Cartoview/Geonode which is quite slow (uploading time) via the UI. Using Geoserver/console to upload large files would be quite useful. Thus, this was just a test to see if I can upload a file via Geoserver/console commands so later I could possibly automate this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant