Could not list layers for this store, an error occurred retrieving them: No enum constant org.geotools.mbtiles.MBTilesMetadata.t_type.BASELAYER - geoserver

I am trying to load my .mbtiles file in geoserver. I have installed the mbtiles plugin. But when I try to upload the file it gives me following error:
Could not list layers for this store, an error occurred retrieving them: No enum constant org.geotools.mbtiles.MBTilesMetadata.t_type.BASELAYER
I know I have to change the BASELAYER to OVERLAY but I have no idea how to do it.
Can anyone suggest how to do it?
Cheers,

Related

How to get accounts/pages associated with a user using FbGraph2 gem?

I am using fb_graph2(1.1.1) in my rails project. My goal is to get all pages/accounts associated with a particular account. I am using this document as a reference. And below is my code line which I wrote to get accounts. For some reason I am getting an error "An unknown error has occurred."
It would be great if someone can guide where and what am I doing wrong. Thanks!
FbGraph2::User.me(<ACCESS_TOKEN>).accounts

Strapi - Failed to upload image file with Google Cloud Storage provider

I followed https://www.npmjs.com/package/strapi-upload-google-storage to setup Strapi File Upload plugin with Google Cloud Storage provider. When I upload a cover image to a post and save. It failed with "TypeError: Converting circular structure to JSON".
[2019-02-08T17:54:02.097Z] debug GET 53771798877e88bccc275e15ba634a83.svg (1 ms)
TypeError: Converting circular structure to JSON
at JSON.stringify ()
at EventEmitter.stringify (/Users/gwowen/workspace-node/adtalem-cms/node_modules/strapi/node_modules/fast-safe-stringify/index.js:5:15)
at EventEmitter.asJson (/Users/gwowen/workspace-node/adtalem-cms/node_modules/strapi/node_modules/pino/pino.js:161:22)
at EventEmitter.pinoWrite (/Users/gwowen/workspace-node/adtalem-cms/node_modules/strapi/node_modules/pino/pino.js:215:16)
at EventEmitter.LOG (/Users/gwowen/workspace-node/adtalem-cms/node_modules/strapi/node_modules/pino/lib/tools.js:93:10)
at update (/Users/gwowen/workspace-node/adtalem-cms/plugins/content-manager/controllers/ContentManager.js:83:18)
at process._tickCallback (internal/process/next_tick.js:68:7)
Is this a known bug or is there something not configured right?
Thank you!
Unfortunately there is no correct link to the source code for that package so it's hard to tell what the issue might be. Judging from the readme with the npm package, you need to supply a piece of json. If I combine that information with your call stack, you might have pasted the wrong piece of json.
You need to check the json you pasted in the config in strapi for circular references and double check you haven't missed anything in your configuration.

Having Nikola ignore certain files

So basically all I want is to add data to my Nikola post folder (CSV, KML, ESRI Shapefiles, JSON, XML...), my posts are written in Jupyter notebooks so naturally need to reference data for writing posts and I would like for those who view the blog to access to data to replicate the results (though I'm flexible on that point). For a while I was able to place extra folders and CSV files in the post folder without Nikola throwing a fuss that those are not a post. But now when I add new files to the posts folder and run nikola build it throws an error, so I may have either forgotten the method I used the first time or messed something up along the way.
Here's the error:
Scanning posts....[2017-12-16T01:18:56Z] ERROR: Nikola: Missing date in
file posts/SnowGIS_SHP/README.txt
[2017-12-16T01:18:56Z] ERROR: scan_posts: Error reading post
posts/SnowGIS_SHP/README.txt
[2017-12-16T01:18:56Z] ERROR: Nikola: Error reading timeline
[2017-12-16T01:18:56Z] ERROR: Nikola: Error loading tasks. An unhandled exception occurred.
[2017-12-16T01:18:56Z] ERROR: Nikola: ValueError: Missing date in file posts/SnowGIS_SHP/README.txt
[2017-12-16T01:18:56Z] NOTICE: Nikola: To see more details, run Nikola in debug mode (set environment variable NIKOLA_DEBUG=1)
I'm so silly, basically all I had to do was remove the README.txt file.

Breeze JSON Parse Error for Metadata

I just upgraded my Breeze nuget package from 1.1.3 to 1.2.7. I was getting error about some of my classes that had "ComplexType" items, so after upgrade I am getting the error below when reading the Metadata from my MVC4 Web API. Everything was working properly before that with the exception of ComplexType, so I know for sure everything is in place, since I was getting the Metadata, and was able to show the data on the screen.
Uncaught SyntaxError: Unexpected token o
Uncaught SyntaxError: Unexpected token o breeze.debug.js:12561
ctor.fetchMetadata.ajaxImpl.ajax.success breeze.debug.js:12561
jQuery.Callbacks.fire jquery-1.9.1.js:1037
jQuery.Callbacks.self.fireWith jquery-1.9.1.js:1148
done jquery-1.9.1.js:8074
jQuery.ajaxTransport.send.callback
I was having the exact same problem and I noticed that when you issue a GET against the metadata location (/api/Context/Metadata), it returned an xml document formatted as json. I also think there is a related question, but in a slightly different context. In this case however, the error was raised at ctor.prototype.fetchMetadata in a line containing JSON.parse(). But I'm pretty sure is the exact same underlying cause.
Just update Breeze from Nuget (both the the dll and the js files) and that would do the trick.
Notice that you might have to manually delete the breeze files from the /Scripts folders.

problems using universal image loader for downloading images and showing them in custom listview?

I am new to android programing and i am now facing an issue in a task. I have made my custom listView which is showing data parsed from a JSON object. Now, I also have to show images which are to be downloaded from the internet. For that purpose I am trying to use universal image loader from github, but when in my adapter class I do
imageLoader.init(ImageLoaderConfiguration.createDefault(context));
I get the error on init saying
Syntax error on token "init", Identifier expected after this token
What am I doing wrong?

Resources