On Thu, Jan 6, 2011 at 4:49 PM, Dan Lyke <[email protected]> wrote:

> This could easily be silly newbie/non-geographer questions, but the docs
> I'm finding with Google appear to all be about the older GeoServer. It
> could also be that GeoServer isn't the right tool for what I'd like to
> do, to be able to drop this data over an OpenLayers map in epsg:900913,
> or view it in Google Earth (and let that figure out the projection
> stuff).
>
> I've got a subdirectory full of .jpg and .jgw files. The .jgw files
> look like:
>
>  0.250
>  0.000
>  0.000
>  -0.250
>  6366000.1250
>  1859999.8750
>
> In Geoserver 2.1b3 I go to "Stores->Add New Store->WorldImage", and
> under "Connection Parameters" I browse to one of the .jpg files.
>
> First question: How do I do say "everything in this subdirectory"?
>
I might be wrong about this, but I don't believe GeoServer has an option for
this.  It is possible to load many Shapefiles from one directory, but even
then it is necessary to configure each layer individually (the 'calculate
lat/lon bounds' step you mentioned).

There is a REST API available, that is currently the recommended way to
perform configuration in bulk.  The OpenGeo Suite (
http://opengeo.org/products/suite/) also provides some extensions to
GeoServer which allow streamlined bulk import.


> Then I go to publish that layer. Based on the shape files I got, I put
> "EPSG:2226" in "Declared SRS", the numbers from the .jgw files appear
> to have populated the "Native Bounding Box" fields, so underneath
> "Lat/Lon Bounding Box" I mash "Compute from native bounds" and end up
> with reasonable looking lat/lon data.
>
> Now how do I view that raster data?
>
> If I go to "Layer Preview" I can see the layer with "OpenLayers" and
> "KML" links. The "OpenLayers" link brings up a blank OpenLayers map.
> Zooming out doesn't help.
>

It sounds like your data is misconfigured.  Does the log file (in
GeoServer's data directory, logs/geoserver.log) contain any Java stack
traces that might indicate the problem?


> The "KML" link sends me a ".kmz" which is really an unzipped KML file
> that contains a URL as CDATA. This KML doesn't load in Google Earth, so
> I looked at it directly, and when I use "wget" to retrive the data from
> the URL in the KML, I get an XML document which says:
>
>   <?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
>   ServiceExceptionReport SYSTEM
>   "
> http://www.petalumaopen.com:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd
> ">
>   <ServiceExceptionReport version="1.1.1" >   <ServiceException
>   code="MissingBBox">
>   GetMap requests must include a BBOX parameter.
>

This is probably a red herring; GeoServer intentionally omits the BBOX
parameter from the URL in the KML document because Google Earth includes it
in the requests it sends back to GeoServer.  If your tiles are loading
without error, but blank in OpenLayers, they are probably also blank,
perhaps transparent, in Google Earth.


> Thanks!
>
> Dan
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to