[Geoserver-users] WMS IMAGES

Sorry to be posting to the list so soon but i can not find any good documentation on how to set up a WMS using GeoServer. I have added my data to GeoServe using the admin tool

Configure → Data → Stores → New

Then i provided the path to my shapefile, and from what i can see from the documentation that is all that you need to do. Bus when i go to:

http://neuron:8085/geoserver/wms?bbox=-130,24,-66,50&request=GetMap&layers=themis&width=800&height=400&srs=EPSG:4326&Format=image/gif

i get an exception:

java.util.NoSuchElementException: Could not locate FeatureTypeConfig 'themis'

any ideas on what i could be missing?

Did you set up a 'featureType' as well?

After the data store, do Configure -> Data -> FeatureType -> New
and you should see it available from a drop down list.

We want to make this easier in the future, as for shapefiles in particular there shouldn't need to be two places. And be sure to hit 'submit' and 'apply' after each, and 'save' to persist to disk.

Also, did you manage to find: http://docs.codehaus.org/display/GEOSDOC/User+Tutorial+Shapefile ?

It should walk you through.

best regards,

Chris

Ryan Ollerenshaw wrote:

Sorry to be posting to the list so soon but i can not find any good documentation on how to set up a WMS using GeoServer. I have added my data to GeoServe using the admin tool

Configure -> Data -> Stores -> New

Then i provided the path to my shapefile, and from what i can see from the documentation that is all that you need to do. Bus when i go to:

http://neuron:8085/geoserver/wms?bbox=-130,24,-66,50&request=GetMap&layers=themis&width=800&height=400&srs=EPSG:4326&Format=image/gif

i get an exception:

<ServiceExceptionReport version=" 1.1.1">
  <ServiceException code="LayerNotDefined">
   java.util.NoSuchElementException: Could not locate FeatureTypeConfig 'themis'
</ServiceException>
</ServiceExceptionReport>

any ideas on what i could be missing?

!DSPAM:1003,44d0eaaf320911410093335!

------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:1003,44d0eaaf320911410093335!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,44d0eaaf320911410093335!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Yes i did find the link you mentioned right after my post, sorry for posting so soon. Although i am still having a problem when i try to create a new FeatureType. I keep getting the error:

File either doesn’t exist or is unreadable

This is referring to the shapefile datastore that i created earlyer. What i did was create a symbolic link in (geoserver install)/data_dir/data/ to my shapefile. I did this because my shapefiles are to large to store in two different places and i already have a MapServer WMS setup that i do not want to risk breaking while i am taking a look at GeoServer. Could this symbolic link be causing a problem with GeoServer? or is the problem likely some where else. To note further my shapefile was created using gdalindex on a set of georeferances tiff images, so could this type of shapefile be causing a problem as well?

Thank you for your help.

On 8/2/06, Chris Holmes <cholmes@anonymised.com> wrote:

Did you set up a ‘featureType’ as well?

After the data store, do Configure → Data → FeatureType → New
and you should see it available from a drop down list.

We want to make this easier in the future, as for shapefiles in
particular there shouldn’t need to be two places. And be sure to hit
‘submit’ and ‘apply’ after each, and ‘save’ to persist to disk.

Also, did you manage to find:
http://docs.codehaus.org/display/GEOSDOC/User+Tutorial+Shapefile ?

It should walk you through.

best regards,

Chris

Ryan Ollerenshaw wrote:

Sorry to be posting to the list so soon but i can not find any good
documentation on how to set up a WMS using GeoServer. I have added my
data to GeoServe using the admin tool

Configure → Data → Stores → New

Then i provided the path to my shapefile, and from what i can see from
the documentation that is all that you need to do. Bus when i go to:

http://neuron:8085/geoserver/wms?bbox=-130,24,-66,50&request=GetMap&layers=themis&width=800&height=400&srs=EPSG:4326&Format=image/gif
< http://neuron:8085/geoserver/wms?bbox=-130,24,-66,50&request=GetMap&layers=themis&width=800&height=400&srs=EPSG:4326&Format=image/gif>

i get an exception:

java.util.NoSuchElementException: Could not locate FeatureTypeConfig 'themis'

any ideas on what i could be missing?

!DSPAM:1003,44d0eaaf320911410093335!



Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys – and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:1003,44d0eaaf320911410093335!



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,44d0eaaf320911410093335!


Chris Holmes
The Open Planning Project
http://topp.openplans.org

Ryan Ollerenshaw wrote:

Yes i did find the link you mentioned right after my post, sorry for posting so soon. Although i am still having a problem when i try to create a new FeatureType. I keep getting the error:

File either doesn't exist or is unreadable

This is referring to the shapefile datastore that i created earlyer. What i did was create a symbolic link in (geoserver install)/data_dir/data/ to my shapefile. I did this because my shapefiles are to large to store in two different places and i already have a MapServer WMS setup that i do not want to risk breaking while i am taking a look at GeoServer. Could this symbolic link be causing a problem with GeoServer? or is the problem likely some where else. To note further my shapefile was created using gdalindex on a set of georeferances tiff images, so could this type of shapefile be causing a problem as well?

Yeah, the symbolic link could be causing the problem.

Note you can refer to the full path from GeoServer, see: http://docs.codehaus.org/display/GEOSDOC/Shapefile+DataStore for examples on how to do it with windows or linux. Just specify the path to where your shapefile actually is. If that doesn't work perhaps it's the other problem, and we could dig in to it. But it's more likely the sym link.

best regards,

Chris

Thank you for your help.

On 8/2/06, *Chris Holmes* <cholmes@anonymised.com <mailto:cholmes@anonymised.com>> wrote:

    Did you set up a 'featureType' as well?

    After the data store, do Configure -> Data -> FeatureType -> New
    and you should see it available from a drop down list.

    We want to make this easier in the future, as for shapefiles in
    particular there shouldn't need to be two places. And be sure to hit
    'submit' and 'apply' after each, and 'save' to persist to disk.

    Also, did you manage to find:
    http://docs.codehaus.org/display/GEOSDOC/User+Tutorial+Shapefile ?

    It should walk you through.

    best regards,

    Chris

    Ryan Ollerenshaw wrote:
     > Sorry to be posting to the list so soon but i can not find any good
     > documentation on how to set up a WMS using GeoServer. I have
    added my
     > data to GeoServe using the admin tool
     >
     > Configure -> Data -> Stores -> New
     >
     > Then i provided the path to my shapefile, and from what i can see
    from
     > the documentation that is all that you need to do. Bus when i go to:
     >
    http://neuron:8085/geoserver/wms?bbox=-130,24,-66,50&request=GetMap&layers=themis&width=800&height=400&srs=EPSG:4326&Format=image/gif
    <http://neuron:8085/geoserver/wms?bbox=-130,24,-66,50&request=GetMap&layers=themis&width=800&height=400&srs=EPSG:4326&Format=image/gif&gt;
     > <
    http://neuron:8085/geoserver/wms?bbox=-130,24,-66,50&request=GetMap&layers=themis&width=800&height=400&srs=EPSG:4326&Format=image/gif
    <http://neuron:8085/geoserver/wms?bbox=-130,24,-66,50&request=GetMap&layers=themis&width=800&height=400&srs=EPSG:4326&Format=image/gif&gt;&gt;
     >
     > i get an exception:
     >
     > <ServiceExceptionReport version=" 1.1.1">
     > <ServiceException code="LayerNotDefined">
     > java.util.NoSuchElementException: Could not locate
     > FeatureTypeConfig 'themis'
     > </ServiceException>
     > </ServiceExceptionReport>
     >
     > any ideas on what i could be missing?
     >
    ------------------------------------------------------------------------

     >
    -------------------------------------------------------------------------
     > Take Surveys. Earn Cash. Influence the Future of IT
     > Join SourceForge.net's Techsay panel and you'll get the chance to
    share your
     > opinions on IT & business topics through brief surveys -- and
    earn cash
     >
    http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
    <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV&gt;
     >
     > !DSPAM:1003,44d0eaaf320911410093335!
     >
    ------------------------------------------------------------------------
     >
     > _______________________________________________
     > Geoserver-users mailing list
     > Geoserver-users@lists.sourceforge.net
    <mailto:Geoserver-users@lists.sourceforge.net>
     > https://lists.sourceforge.net/lists/listinfo/geoserver-users
    <https://lists.sourceforge.net/lists/listinfo/geoserver-users&gt;
     >
     > !DSPAM:1003,44d0eaaf320911410093335!

    --
    Chris Holmes
    The Open Planning Project
    http://topp.openplans.org

!DSPAM:1003,44d0f0ac323211971556521!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

It turns out that using a symbolic link seems to work alright, my mistake was i accidental put and extra / in my path i used file:/data/wms_data/thm_img.shp instead of file:data/wms_data/thm_img.shp, sorry for the post. But i have in fact run into a real GeoServer issue now. My problem is that i have a large tiff image set that covers a very large area. I tiled and indexed this image set using the gdaltindex command which outputs a shapefile and a database file that links the polygones in the shapefile to the correct image. GeoServer does have an option for Shapefile (indexed) when creating a new datastore, but is this refusing to a indexed shapefile as i am using it? and if so what does “index type” refer to in the data store settings page?

I was able to do this in MapServer by adding the following to my layer if that helps any:
TILEINDEX “thm_img.shp”
TILEITEM “location”

Thanks for any help that you have provide.
-Ryan

On 8/2/06, Chris Holmes <cholmes@anonymised.com > wrote:

Ryan Ollerenshaw wrote:

Yes i did find the link you mentioned right after my post, sorry for
posting so soon. Although i am still having a problem when i try to
create a new FeatureType. I keep getting the error:

File either doesn’t exist or is unreadable

This is referring to the shapefile datastore that i created earlyer.
What i did was create a symbolic link in (geoserver
install)/data_dir/data/ to my shapefile. I did this because my
shapefiles are to large to store in two different places and i already
have a MapServer WMS setup that i do not want to risk breaking while i
am taking a look at GeoServer. Could this symbolic link be causing a
problem with GeoServer? or is the problem likely some where else. To
note further my shapefile was created using gdalindex on a set of
georeferances tiff images, so could this type of shapefile be causing a
problem as well?
Yeah, the symbolic link could be causing the problem.

Note you can refer to the full path from GeoServer, see:
http://docs.codehaus.org/display/GEOSDOC/Shapefile+DataStore for
examples on how to do it with windows or linux. Just specify the path
to where your shapefile actually is. If that doesn’t work perhaps it’s
the other problem, and we could dig in to it. But it’s more likely the
sym link.

best regards,

Chris

Thank you for your help.

On 8/2/06, Chris Holmes <cholmes@anonymised.com
mailto:[cholmes@anonymised.com](mailto:cholmes@anonymised.com)> wrote:

Did you set up a ‘featureType’ as well?

After the data store, do Configure → Data → FeatureType → New
and you should see it available from a drop down list.

We want to make this easier in the future, as for shapefiles in
particular there shouldn’t need to be two places. And be sure to hit
‘submit’ and ‘apply’ after each, and ‘save’ to persist to disk.

Also, did you manage to find:
http://docs.codehaus.org/display/GEOSDOC/User+Tutorial+Shapefile ?

It should walk you through.

best regards,

Chris

Ryan Ollerenshaw wrote:

Sorry to be posting to the list so soon but i can not find any good
documentation on how to set up a WMS using GeoServer. I have
added my
data to GeoServe using the admin tool

Configure → Data → Stores → New

Then i provided the path to my shapefile, and from what i can see
from
the documentation that is all that you need to do. Bus when i go to:

http://neuron:8085/geoserver/wms?bbox=-130,24,-66,50&request=GetMap&layers=themis&width=800&height=400&srs=EPSG:4326&Format=image/gif
< http://neuron:8085/geoserver/wms?bbox=-130,24,-66,50&request=GetMap&layers=themis&width=800&height=400&srs=EPSG:4326&Format=image/gif>

<
http://neuron:8085/geoserver/wms?bbox=-130,24,-66,50&request=GetMap&layers=themis&width=800&height=400&srs=EPSG:4326&Format=image/gif
< http://neuron:8085/geoserver/wms?bbox=-130,24,-66,50&request=GetMap&layers=themis&width=800&height=400&srs=EPSG:4326&Format=image/gif>>

i get an exception:

java.util.NoSuchElementException : Could not locate FeatureTypeConfig 'themis'

any ideas on what i could be missing?



Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to
share your
opinions on IT & business topics through brief surveys – and
earn cash

http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >

!DSPAM:1003,44d0eaaf320911410093335!



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
mailto:[Geoserver-users@lists.sourceforge.net](mailto:Geoserver-users@lists.sourceforge.net)
https://lists.sourceforge.net/lists/listinfo/geoserver-users
<https://lists.sourceforge.net/lists/listinfo/geoserver-users>

!DSPAM:1003,44d0eaaf320911410093335!


Chris Holmes
The Open Planning Project
http://topp.openplans.org

!DSPAM:1003,44d0f0ac323211971556521!


Chris Holmes
The Open Planning Project
http://topp.openplans.org