Geoserver Layer Preview downloads a WMS file instead of showing preview in OpenLayers - shapes

I am trying to preview a layer in Geoserver that I have created from a shape file.
I upload the shape file successfully and I see the layer in my Layers list.
When I try to preview it using OpenLayers in the Layer Preview section, instead of the preview I get a download of a wms file which contains this: Could not find layer it.geosolutions:Grid working.
Does anyone knows why I get this error?
Thanks
D.

Afterall I figured out that the problem was related with the naming of the layer. When I created the layer I named it "grid" but then geoserver renamed it to: "grid20%working".
When I was using Layer Preview I was getting this error:
Could not find layer it.geosolutions:Grid working
I guess geoserver couldn't read the name of the layer. The part "20%". When I changed the name of the layer everything worked fine.

Related

Incorrect Visualization of Geojson using Vue2-Leaflet

I'm having a problem when visualizing my GeoJSON files on the web using Vue2Leaflet.
The user uploads files in the form of .dxf, then the Django backend process it into various layers and send it back to the front end. I received all the layers in the form of GeoJSON object, and I use l-map of Vue2Leaflet to visualize whichever layer is selected.
Could you please tell me what's happening here? The same code works perfectly with the example API given by the developer themselves, but not with my GeoJSON.
Reference Example
Note: My GeoJSON if visualized in QGIS shows a map shape, or at least not such a straight line for the layer.

How to get labels for ILSVRC2012 Classification Task

The ILSVRC 2012 small classification dataset is not separated by folder and don't have a labels file. How get the labels for the training set?
I tried on nonpub downloads page but does not exist anymore, and i tried by the filenames but their don't have the synset id on it.
I've been having the same issue today following this tutorial on reproducing ImageNet Validation results. I think I've found an answer, even if partial
In the article they point out to this link to get the validation set for object detection. I downloaded it and had the same issue as yourself, it only contains images without labels. What I've found is that this same website had this other link for the bounding boxes. I've downloaded it and alongside with the bboxes it comes with the proper class for each image
Hope this helps!

Keeping TOC layers unchecked on first load in ArcGIS JavaScript API

I am using NLiu's TOC widget for displaying the layers. It is working perfectly, however, I wanted to keep all layers unchecked when it is loading on the browser (for performance reason). I tried to find a way on its javascript files but not succeed.
Any clue to do so?
Set the layer's visible layers to none:
layer.setVisibleLayers([])

How to load a local shape or geojson file in to leaflet in Asymmetrik/ngx-leaflet?

I am using Asymmetrik/ngx-leaflet to build a map based application which can load and view external shape files. Is there any way to show local shape files?
It looks like there's a Leaflet plugin for shapefiles. I don't know if it's up to date, but you might start there.
There's also a tutorial on how to integrate third party plugins with #asymmetrik/ngx-leaflet.
Read through the examples to get a sense of how to get the plugin loaded into your Angular app. Then, you probably just need to create your shapefile layer and add it to the layers array that is bound to ngx-leaflet just like any other layer.

How to add layers on mapbox?

I just checked the documentation to add the layer on mapbox. But it is not working for me.
https://www.mapbox.com/help/adding-custom-layers/
Please have a look.
When I am trying to add a layer it pops up a blank window and there is no provision to add a layer.
What is the mistake?
In the link you provided you will notice the following line.
A window will open allowing you to add or remove layers to your
project. Layers are any .MBTiles you have uploaded to your Data page.
What this implies is that you need to firstly download the "Mapbox Studio" application.
In the app you can then create styles and sources. Its a source you need here. You then have to import some data, after which you can uploaded it to your online account. Afraid i don't now much about this step.
Once you've saved and uploaded this to your account it should then appear in the popup you speak off.
Download MapBox Studio
View you uploaded data here