[GeoNode-devel] Help on django-osgeo-importer
Paolo Pasquali
paolo.pasquali at gmail.com
Thu Apr 27 07:00:50 PDT 2017
Hi,
here I am again.
The issue was due to celery and rabbitmq that need to be started... (thanks
@simod)
Now when I try to create a layer I get this:
Response
{
"error_message": "",
"traceback": "Traceback (most recent call last):\n\n File
\"/Users/paolo/Venvs/haitidata/lib/python2.7/site-packages/tastypie/resources.py\",
line 211, in wrapper\n response = callback(request, *args, **kwargs)\n\n
File
\"/Users/paolo/Venvs/haitidata/lib/python2.7/site-packages/osgeo_importer/api.py\",
line 99, in import_layer\n request_user=request.user\n\n File
\"/Users/paolo/Venvs/haitidata/lib/python2.7/site-packages/celery/app/task.py\",
line 461, in delay\n return self.apply_async(args, kwargs)\n\n File
\"/Users/paolo/Venvs/haitidata/lib/python2.7/site-packages/celery/app/task.py\",
line 565, in apply_async\n link=link, link_error=link_error,
**options)\n\n File
\"/Users/paolo/Venvs/haitidata/lib/python2.7/site-packages/celery/app/task.py\",
line 763, in apply\n request=request, propagate=throw)\n\n File
\"/Users/paolo/Venvs/haitidata/lib/python2.7/site-packages/celery/app/trace.py\",
line 355, in eager_trace_task\n uuid, args, kwargs, request)\n\n File
\"/Users/paolo/Venvs/haitidata/lib/python2.7/site-packages/celery/app/trace.py\",
line 253, in trace_task\n I, R, state, retval = on_error(task_request,
exc, uuid)\n\n File
\"/Users/paolo/Venvs/haitidata/lib/python2.7/site-packages/celery/app/trace.py\",
line 240, in trace_task\n R = retval = fun(*args, **kwargs)\n\n File
\"/Users/paolo/Venvs/haitidata/lib/python2.7/site-packages/osgeo_importer/tasks.py\",
line 87, in import_object\n
gi.handle(configuration_options=configuration_options,
request_cookies=request_cookies, request_user=request_user)\n\n File
\"/Users/paolo/Venvs/haitidata/lib/python2.7/site-packages/osgeo_importer/importers.py\",
line 113, in handle\n layers =
self.import_file(configuration_options=configuration_options)\n\n File
\"/Users/paolo/Venvs/haitidata/lib/python2.7/site-packages/osgeo_importer/importers.py\",
line 340, in import_file\n target_file, _ =
self.open_target_datastore(self.target_store)\n\n File
\"/Users/paolo/Venvs/haitidata/lib/python2.7/site-packages/osgeo_importer/importers.py\",
line 184, in open_target_datastore\n return
self.open_datastore(connection_string, self.target_inspectors, *args,
**kwargs)\n\n File
\"/Users/paolo/Venvs/haitidata/lib/python2.7/site-packages/osgeo_importer/importers.py\",
line 147, in open_datastore\n data = insp.open()\n\n File
\"/Users/paolo/Venvs/haitidata/lib/python2.7/site-packages/osgeo_importer/inspectors.py\",
line 70, in open\n raise NoDataSourceFound\n\nNoDataSourceFound\n"
}
Request
{"always_geogig":true,"configureTime":false,"editable":false,"convert_to_date":[],"index":0,"name":"Ground_Overlays","permissions":{"users":{"AnonymousUser":["download_resourcebase","view_resourcebase"]}},"start_date":null,"end_date":null}
The data appears in Django Admin and in the uploaded folder.
Any help would be much appreciated.
Thanks!
Paolo
On Wed, Apr 26, 2017 at 3:47 PM, Paolo Pasquali <paolo.pasquali at gmail.com>
wrote:
> Hi devs,
> I think I was able to install the osgeo-importer but I have some issue
> with the configuration.
> Data can be uploaded (I've tried with kml and shp) but I cannot create a
> layer.
> I'm getting a [Errno 61] Connection refused when I try to create a layer
> from the uploaded data.
>
> *"POST /importer-api/data-layers/43/configure/ HTTP/1.1" 500 3030*
>
> I am using GeoServer as a backend. I've tried some changes in the
> OGC_SERVER settings but without any success.
>
> Am I missing something?
>
> Thanks for your help.
>
> Best,
>
> Paolo
>
>
> On Wed, Apr 19, 2017 at 6:15 PM, Paolo Pasquali <paolo.pasquali at gmail.com>
> wrote:
>
>> Ok, Jeff. Thanks.
>> I'll let you know if I succeed or find some issue.
>>
>> Ciao
>>
>> P.
>>
>> --------------------
>> Paolo Pasquali
>> ITHACA - Information Technology for Humanitarian Assistance, Cooperation
>> and Action
>> via Pier Carlo Boggio, 61
>> 10138 Torino - Italy
>> Tel. +39 011 1975 1872 <+39%20011%201975%201872>
>> Fax +39 011 1975 1122 <+39%20011%201975%201122>
>>
>> On Wed, Apr 19, 2017 at 6:09 PM, Jeffrey Johnson <ortelius at gmail.com>
>> wrote:
>>
>>> Just realizing that there really is no documentation on how to install
>>> and use it. We should rectify that! Maybe you can help once you are up
>>> and running?
>>>
>>> The basic steps are outlined here though in the ansible config
>>> https://github.com/GeoNode/ansible-geonode/blob/master/tasks
>>> /osgeo_importer.yml
>>>
>>> Let us know if you run into any issues.
>>>
>>> Fwiw, the new importer UI is being developed here for now
>>> https://github.com/terranodo/importer-client (will get moved over to
>>> the GeoNode org at some point)
>>>
>>> On Wed, Apr 19, 2017 at 9:05 AM, Paolo Pasquali
>>> <paolo.pasquali at gmail.com> wrote:
>>> > Hi devs,
>>> > I would like to include in my GeoNode project the
>>> django-osgeo-importer and
>>> > I wonder if there is some documentation on this.
>>> > How can I install and configure it in GeoNode?
>>> >
>>> > Thanks for your help.
>>> >
>>> > Best,
>>> >
>>> > Paolo
>>> >
>>> > _______________________________________________
>>> > geonode-devel mailing list
>>> > geonode-devel at lists.osgeo.org
>>> > https://lists.osgeo.org/mailman/listinfo/geonode-devel
>>> >
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20170427/a7dc2084/attachment.html>
More information about the geonode-devel
mailing list