[ckan-dev] CKAN -Geo spatial Capabilities Adding WMS layer, WMTS layer -

Naresh N naresh919 at gmail.com
Fri Jul 24 04:52:01 UTC 2015


Dear  Sol,

Thanks a  lot for response. I will follow your suggestions.  Please see
the following information and  suggest further

1. How to add single/one WMS Layer to CKAN -  means


WMS URL: http://localhost:8080/geoserver/test/wms and layer
name:'test:INDIA_STATE_250K'

*I want add above only one layer info and see in OpenLayers view of CKAN*

if we give WMSGetCapability url of the server it is listing all the layers
of that server, here I want add/feed the information for single layer

Is it possible to add only one WMS Layer at a time to CKAN


2  . Add WMTS Layers -  showing the following error. I have installed CKAN
2.3 on Ubuntu 12.04 64 bit machine

  in error log file ' *PluginNotFoundException: wmts_view*.'

Thanks&Regards,
Naresh


On Thu, Jul 23, 2015 at 3:46 PM, <ckan-dev-request at lists.okfn.org> wrote:

> Send ckan-dev mailing list submissions to
>         ckan-dev at lists.okfn.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.okfn.org/mailman/listinfo/ckan-dev
> or, via email, send a message with subject or body 'help' to
>         ckan-dev-request at lists.okfn.org
>
> You can reach the person managing the list at
>         ckan-dev-owner at lists.okfn.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ckan-dev digest..."
>
>
> Today's Topics:
>
>    1. CKAN -Geo spatial Capabilities Adding WMS layer, KML file,
>       WMTS layer, Base layer option (Naresh N)
>    2. Re: CKAN -Geo spatial Capabilities Adding WMS layer, KML
>       file, WMTS layer, Base layer option (???)
>    3. Re: ckanext-harvest: "There are no new harvesting jobs"
>       (Knud Hinnerk M?ller)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 23 Jul 2015 12:07:07 +0530
> From: Naresh N <naresh919 at gmail.com>
> To: ckan-dev at lists.okfn.org
> Subject: [ckan-dev] CKAN -Geo spatial Capabilities Adding WMS layer,
>         KML file, WMTS layer, Base layer option
> Message-ID:
>         <CAKAPXzOXK_sMsp_Z2oJO=_
> h+HRKh-qNzB+oG7CxULnzwWCAbrA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Dear All,
>
> Please kindly guide us for following things. Please let me know is it
> possible or not. I a
> Have posted this query 3 days before but I did not get response,
> please kindly guide us to explore more on ckan capabilities
>
> 1. How to add single/one WMS Layer to CKAN
>
> 2. How to add KML  file to ckan.  - able to add kml file by using Upload
> Link option, but when I am adding by using upload file option and loading
> local kml file it is showing  the following message in error log file '
>
> Error - <type 'exceptions.UnboundLocalError'>: local variable
> 'proxy_service_url' referenced before assignment'
>
>
> 3. How to add Shapefile to CKAN  and visualize as WMS/WFS layer
>
> 4. How to Add WMTS Layers - I have added wmts_view in ckan.plugins and
> wmts_view in  ckan.views.default_views in config file. But when iam opening
> the application with localhost it is showing 500 internal server error.
> And in error log file ' PluginNotFoundException: wmts_view.'
> 5. How to add our own based layer in Open Layers client of CKAN
>
> Thanks&Regards,
> Naresh
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.okfn.org/pipermail/ckan-dev/attachments/20150723/d360b2b7/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Thu, 23 Jul 2015 17:48:50 +0800
> From: ???[Sol] <u103133.u103135 at gmail.com>
> To: CKAN Development Discussions <ckan-dev at lists.okfn.org>
> Subject: Re: [ckan-dev] CKAN -Geo spatial Capabilities Adding WMS
>         layer, KML file, WMTS layer, Base layer option
> Message-ID:
>         <CAA_4TBazUcLCfYgwxfS9Ay98Vo+=
> XzPC1QarErt27nxqZry9Xw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Naresh:
>
> The reply as below.
>
>
> Cheers,
>
> Sol
>
> 2015-07-23 14:37 GMT+08:00 Naresh N <naresh919 at gmail.com>:
>
> > Dear All,
> >
> > Please kindly guide us for following things. Please let me know is it
> possible or not. I a
> > Have posted this query 3 days before but I did not get response, please
> kindly guide us to explore more on ckan capabilities
> >
> > 1. How to add single/one WMS Layer to CKAN
> >
> > Not very clear what your problem is. Did you encounter any problems when
> adding wms layers?
>
> > 2. How to add KML  file to ckan.  - able to add kml file by using Upload
> > Link option, but when I am adding by using upload file option and loading
> > local kml file it is showing  the following message in error log file '
> >
> > Error - <type 'exceptions.UnboundLocalError'>: local variable
> > 'proxy_service_url' referenced before assignment'
> >
> > It's a known issue and has been fixed in the master branch
> <
> https://github.com/ckan/ckanext-geoview/commit/de78049aeea5ad6706600d48482dc6dff72de61d
> >.
> Details: https://github.com/ckan/ckanext-geoview/issues/8.
>
>
> > 3. How to add Shapefile to CKAN  and visualize as WMS/WFS layer
> >
> > So far as I know, ckanext-geoview doesn't support visualize shapefiles.
>
> 4. How to Add WMTS Layers - I have added wmts_view in ckan.plugins and
> > wmts_view in  ckan.views.default_views in config file. But when iam
> opening
> > the application with localhost it is showing 500 internal server error.
> > And in error log file ' PluginNotFoundException: wmts_view.'
> >
> > Which version of CKAN and branch of ckanext-geoview are you using? If you
> are on CKAN < 2.3 you should add 'wmts_preview' rather than 'wmts_view'.
> And, currently wmts preview is only available on the master branch of
> ckanext-geoview.
>
> > 5. How to add our own based layer in Open Layers client of CKAN
> >
> > You can reference this:
> http://docs.ckan.org/projects/ckanext-spatial/en/latest/map-widgets.html.
>
> > Thanks&Regards,
> > Naresh
> >
> >
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > https://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.okfn.org/pipermail/ckan-dev/attachments/20150723/ad839d91/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Thu, 23 Jul 2015 12:16:43 +0200
> From: Knud Hinnerk M?ller <knud at datalysator.com>
> To: CKAN Development Discussions <ckan-dev at lists.okfn.org>
> Subject: Re: [ckan-dev] ckanext-harvest: "There are no new harvesting
>         jobs"
> Message-ID: <12293F25-7DFA-49E2-9AF0-15BAB8E6CC29 at datalysator.com>
> Content-Type: text/plain; charset="utf-8"
>
> Thanks all for the explanations and the fix!
>
> Cheers,
> Knud
>
> > On 21 Jul 2015, at 12:20, Adri? Mercader <adria.mercader at okfn.org>
> wrote:
> >
> > Hi,
> >
> > I've merged Stefan's patch to avoid the exception.
> >
> > As a general rule, if there is something really ugly happening in CKAN
> > it's probably because it's really old (this code was written on April
> > 2011) and we somehow have got used to its ugliness. Any PRs like this
> > to make it prettier are very welcome!
> >
> > Cheers,
> >
> > Adri?
> >
> > On 20 July 2015 at 17:25, Stefan Oderbolz <stefan.oderbolz at liip.ch>
> wrote:
> >> I created a ticket on the ckanext-harvest repo
> >> (https://github.com/ckan/ckanext-harvest/issues/145) and will quickly
> add a
> >> PR to fix this ugly situation.
> >>
> >> On Mon, Jul 20, 2015 at 6:03 PM, Denis Zgonjanin <
> deniszgonjanin at gmail.com>
> >> wrote:
> >>>
> >>> Yes, I'm not sure whether there is a reason that needs to be there.
> >>> Perhaps someone more familiar with harvester could weigh in.
> >>>
> >>> But it would be better if it was just a message instead of a stack
> trace.
> >>> For new users especially, where seeing an error will usually give you
> the
> >>> impression that you didn't set something up properly.
> >>>
> >>> On Mon, Jul 20, 2015 at 11:49 AM, Stefan Oderbolz
> >>> <stefan.oderbolz at liip.ch> wrote:
> >>>>
> >>>> This is a good point, I'm already used to see this exception, it no
> >>>> longer bothers me. But it might be worth catching this exception and
> simply
> >>>> return a nice message indicating what's going on.
> >>>> Or is there a good reason for this behavior?
> >>>>
> >>>> - Stefan
> >>>>
> >>>> On Mon, Jul 20, 2015 at 5:28 PM, Denis Zgonjanin
> >>>> <deniszgonjanin at gmail.com> wrote:
> >>>>>
> >>>>> Hi Knud,
> >>>>>
> >>>>> This is normal behavior (although one could make an argument that in
> the
> >>>>> case of normal behavior software shouldn't throw an error).
> >>>>>
> >>>>> Jobs will run on a harvesting schedule, which you define when you
> create
> >>>>> the harvester in the web UI. For example, you create a daily
> harvester and
> >>>>> do 'harvester run'. The job runs, and harvested will compute when
> the next
> >>>>> job is due to be ran (24 hours from now). If you do `harvester run`
> before
> >>>>> then, you will get the expected error above.
> >>>>>
> >>>>> - Denis
> >>>>>
> >>>>> On Mon, Jul 20, 2015 at 11:23 AM, Knud Hinnerk M?ller
> >>>>> <knud at datalysator.com> wrote:
> >>>>>>
> >>>>>> Hi,
> >>>>>>
> >>>>>> I have a problem setting up ckanext-harvest for production. I?m
> >>>>>> following the steps explained in
> >>>>>>
> https://github.com/ckan/ckanext-harvest/blob/master/README.rst#setting-up-the-harvesters-on-a-production-server
> ,
> >>>>>> which works great at first. However, after the first time the
> harvester is
> >>>>>> run, I get an error message saying "Exception: There are no new
> harvesting
> >>>>>> jobs? each time the harvester is run again via cron. It seems I
> have to
> >>>>>> first create a new harvesting job via command line or Web UI. Is
> this
> >>>>>> intended behaviour? Or am I missing something? Could someone point
> me in the
> >>>>>> right direction?
> >>>>>>
> >>>>>> ---------
> >>>>>> 2015-07-20 17:00:03,530 DEBUG [ckan.config.environment] Loading the
> >>>>>> synchronous search plugin
> >>>>>> 2015-07-20 17:00:06,606 DEBUG [ckanext.harvest.model] Harvest tables
> >>>>>> defined in memory
> >>>>>> 2015-07-20 17:00:06,620 DEBUG [ckanext.harvest.model] Harvest tables
> >>>>>> already exist
> >>>>>> 2015-07-20 17:00:06,636 DEBUG [ckanext.berlin.plugin] get_actions
> >>>>>> 2015-07-20 17:00:06,667 DEBUG [ckanext.harvest.plugin] Using auth
> >>>>>> profile at ckanext.harvest.logic.auth
> >>>>>> 2015-07-20 17:00:06,699 INFO  [ckanext.harvest.logic.action.update]
> >>>>>> Harvest job run: {}
> >>>>>> 2015-07-20 17:00:06,734 INFO  [ckanext.harvest.logic.action.update]
> No
> >>>>>> new harvest jobs.
> >>>>>>
> >>>>>> Traceback (most recent call last):
> >>>>>>  File ".../pyenv/bin/paster", line 9, in <module>
> >>>>>>    load_entry_point('PasteScript==1.7.5', 'console_scripts',
> >>>>>> 'paster')()
> >>>>>>  File
> >>>>>>
> ".../pyenv/local/lib/python2.7/site-packages/paste/script/command.py", line
> >>>>>> 104, in run
> >>>>>>    invoke(command, command_name, options, args[1:])
> >>>>>>  File
> >>>>>>
> ".../pyenv/local/lib/python2.7/site-packages/paste/script/command.py", line
> >>>>>> 143, in invoke
> >>>>>>    exit_code = runner.run(args)
> >>>>>>  File
> >>>>>>
> ".../pyenv/local/lib/python2.7/site-packages/paste/script/command.py", line
> >>>>>> 238, in run
> >>>>>>    result = self.command()
> >>>>>>  File
> >>>>>>
> ".../pyenv/src/ckanext-harvest/ckanext/harvest/commands/harvester.py", line
> >>>>>> 108, in command
> >>>>>>    self.run_harvester()
> >>>>>>  File
> >>>>>>
> ".../pyenv/src/ckanext-harvest/ckanext/harvest/commands/harvester.py", line
> >>>>>> 243, in run_harvester
> >>>>>>    jobs = get_action('harvest_jobs_run')(context,{})
> >>>>>>  File
> >>>>>>
> ".../pyenv/src/ckanext-harvest/ckanext/harvest/logic/action/update.py", line
> >>>>>> 145, in harvest_jobs_run
> >>>>>>    raise Exception('There are no new harvesting jobs')
> >>>>>> Exception: There are no new harvesting jobs
> >>>>>> ------------
> >>>>>>
> >>>>>> I should add that I?m running an old version of the ckanext-harvest
> >>>>>> (@0609262731) and an old version of CKAN (1.8.2). I don?t think
> that?s the
> >>>>>> reason, though.
> >>>>>>
> >>>>>> Cheers,
> >>>>>> Knud
> >>>>>>
> >>>>>> --
> >>>>>> Dr. Knud Hinnerk M?ller
> >>>>>> Datalysator - Web Data Solutions and Training
> >>>>>> knud at datalysator.com
> >>>>>> +49 151 46 44 83 25
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> ckan-dev mailing list
> >>>>>> ckan-dev at lists.okfn.org
> >>>>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
> >>>>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >>>>>>
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> ckan-dev mailing list
> >>>>> ckan-dev at lists.okfn.org
> >>>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
> >>>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Liip AG  // Limmatstrasse 183 //  CH-8005 Z?rich
> >>>> Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
> >>>>
> >>>> _______________________________________________
> >>>> ckan-dev mailing list
> >>>> ckan-dev at lists.okfn.org
> >>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
> >>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >>>>
> >>>
> >>>
> >>> _______________________________________________
> >>> ckan-dev mailing list
> >>> ckan-dev at lists.okfn.org
> >>> https://lists.okfn.org/mailman/listinfo/ckan-dev
> >>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >>>
> >>
> >>
> >>
> >> --
> >> Liip AG  // Limmatstrasse 183 //  CH-8005 Z?rich
> >> Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
> >>
> >> _______________________________________________
> >> ckan-dev mailing list
> >> ckan-dev at lists.okfn.org
> >> https://lists.okfn.org/mailman/listinfo/ckan-dev
> >> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >>
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > https://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
> --
> Dr. Knud Hinnerk M?ller
> Datalysator - Web Data Solutions and Training
> knud at datalysator.com
> +49 151 46 44 83 25
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.okfn.org/pipermail/ckan-dev/attachments/20150723/27a8ded8/attachment.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
> ------------------------------
>
> End of ckan-dev Digest, Vol 57, Issue 37
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150724/9a94104b/attachment-0002.html>


More information about the ckan-dev mailing list