Skip to main content
added 4 characters in body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Thanks.

Update:

 
 

Update: turns out there's something wrong with the layer itself. I can view the JSON data through a link but only if I'm logged into Geoserver. If I'm not logged in, then I get a "Could not find layer" message. So I guess that's my issue: why data imported in GeoServer it not made public (my JSON), but a layer through Geonode is.

Thanks.

Update:

Update: turns out there's something wrong with the layer itself. I can view the JSON data through a link but only if I'm logged into Geoserver. If I'm not logged in, then I get a "Could not find layer" message. So I guess that's my issue: why data imported in GeoServer it not made public (my JSON), but a layer through Geonode is.

 
 

turns out there's something wrong with the layer itself. I can view the JSON data through a link but only if I'm logged into Geoserver. If I'm not logged in, then I get a "Could not find layer" message. So I guess that's my issue: why data imported in GeoServer it not made public (my JSON), but a layer through Geonode is.

added 336 characters in body
Source Link

Update: turns out there's something wrong with the layer itself. I can view the JSON data through a link but only if I'm logged into Geoserver. If I'm not logged in, then I get a "Could not find layer" message. So I guess that's my issue: why data imported in GeoServer it not made public (my JSON), but a layer through Geonode is.

Update: turns out there's something wrong with the layer itself. I can view the JSON data through a link but only if I'm logged into Geoserver. If I'm not logged in, then I get a "Could not find layer" message. So I guess that's my issue: why data imported in GeoServer it not made public (my JSON), but a layer through Geonode is.

added 843 characters in body
Source Link

Update:

If I put the JSON file in a web directory and do an HTTP protocol to it, it works. Which is to say,

protocol: new OpenLayers.Protocol.HTTP({
                url: "http://fakeurl/data/summits.json",
                format: new OpenLayers.Format.GeoJSON()
            })

displays just fine. However, when I link to a WFS Getfeature request, like

protocol: new OpenLayers.Protocol.HTTP({
                url: "http://fakeurl/geoserver/wfs?service=WFS&version=1.0.0&request=GetFeature&typeName=geonode:summits&maxFeatures=50",
                format: new OpenLayers.Format.GeoJSON()
            })

I get no result. But the url provided displays the JSON file in a browser. I don't understand. I just want some way of getting those contents via GeoServer, but it continues to elude me.

Update:

If I put the JSON file in a web directory and do an HTTP protocol to it, it works. Which is to say,

protocol: new OpenLayers.Protocol.HTTP({
                url: "http://fakeurl/data/summits.json",
                format: new OpenLayers.Format.GeoJSON()
            })

displays just fine. However, when I link to a WFS Getfeature request, like

protocol: new OpenLayers.Protocol.HTTP({
                url: "http://fakeurl/geoserver/wfs?service=WFS&version=1.0.0&request=GetFeature&typeName=geonode:summits&maxFeatures=50",
                format: new OpenLayers.Format.GeoJSON()
            })

I get no result. But the url provided displays the JSON file in a browser. I don't understand. I just want some way of getting those contents via GeoServer, but it continues to elude me.

Source Link
Loading