[Geoserver-users] Adding new shapes with Directory of spatial data method

Hello there,

We are adding data to geoserver using the Directory of spatial files method, because we have a lot of shapes to include. But something we have notice is that when we add a shape, he’s still in the list of chose for new shapes. We were wondering if this is expected or if there is a way to disable this. If there is something expected, no problem, we only want to know if there is a way to save work, because we waste time searching the shape we haven’t added yet.

s

Fábio da Silva Júnior - fjunior@anonymised.com

Fabio da Silva Junior ha scritto:

Hello there,

We are adding data to geoserver using the Directory of spatial files method, because we have a lot of shapes to include. But something we have notice is that when we add a shape, he’s still in the list of chose for new shapes. We were wondering if this is expected or if there is a way to disable this. If there is something expected, no problem, we only want to know if there is a way to save work, because we waste time searching the shape we haven’t added yet.

I'm not sure I understand what you're saying.
The directory datastore should always provide an up to date list
of known feature types, so when you go into the "new feature type"
drop down you should see an updated version of the list of shapefiles
you have on disk. But the feature types should not be available
to the clients until you actually register them into the GeoServer
administration (so, there is no "auto add" of the shapefiles into
the published list).

Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Ok Andrea, it's a little hard to explain the issue, but I understand what you explained.

I'll try to give you an example of my question.

I added a directory datastore that has the shapes: roads1, roads2 and roads3. Then I add all of them as a feature type. I add a new shape called roads4, and go to FeatureType and press the new button. In the list of available shapes, I have all shapes I already added, plus the new shape roads4. For a small number of shapes, it's not a problem, but when we have thousands of them, it's a waste of time, because we have to search the new shape added later. This is what I've tried to ask in the first email, but I didn't explain correctly.

By the way, we have found a problem with kml and styles, using and image like a texture. The GoogleEarth can't render the content of the polygon. If anyone already have the same problem, please help me. :smiley:

Thank for the reply Andrea.

Fábio da Silva Júnior - fjunior@anonymised.com
Laboratório de Computação Aplicada - G10
Laboratório de Redes
UNIVALI - Universidade do Vale do Itajaí

-----Mensagem original-----
De: Andrea Aime [mailto:aaime@anonymised.com]
Enviada em: terça-feira, 2 de junho de 2009 12:39
Para: Fabio da Silva Junior
Cc: geoserver-users@lists.sourceforge.net
Assunto: Re: [Geoserver-users] Adding new shapes with Directory of spatial data method

Fabio da Silva Junior ha scritto:

Hello there,

We are adding data to geoserver using the Directory of spatial files
method, because we have a lot of shapes to include. But something we
have notice is that when we add a shape, he's still in the list of chose
for new shapes. We were wondering if this is expected or if there is a
way to disable this. If there is something expected, no problem, we only
want to know if there is a way to save work, because we waste time
searching the shape we haven't added yet.

I'm not sure I understand what you're saying.
The directory datastore should always provide an up to date list
of known feature types, so when you go into the "new feature type"
drop down you should see an updated version of the list of shapefiles
you have on disk. But the feature types should not be available
to the clients until you actually register them into the GeoServer
administration (so, there is no "auto add" of the shapefiles into
the published list).

Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Fabio da Silva Junior ha scritto:

Ok Andrea, it's a little hard to explain the issue, but I understand
what you explained.

I'll try to give you an example of my question.

I added a directory datastore that has the shapes: roads1, roads2 and
roads3. Then I add all of them as a feature type. I add a new shape
called roads4, and go to FeatureType and press the new button. In the
list of available shapes, I have all shapes I already added, plus the
new shape roads4. For a small number of shapes, it's not a problem,
but when we have thousands of them, it's a waste of time, because we
have to search the new shape added later. This is what I've tried to
ask in the first email, but I didn't explain correctly.

Oh, I see. Yet, we cannot hide the ones already published because
people sometime need to publish the same layer multiple times with
a different alias (faking a different native srs or showing a different
default style).
In the new UI (on trunk, what will become GeoServer 2.0) we're at
liberty to add an option to hide the ones already published thought,
or else, to show the unpublished layers on the top.

By the way, we have found a problem with kml and styles, using and
image like a texture. The GoogleEarth can't render the content of the
polygon. If anyone already have the same problem, please help me. :smiley:

Most likely Google Eearth cannot fetch the texture. When you setup
KML layers the graphics used must be on a online URL that is visible
to both GeoServer and Google Earth.
Yet, I'm not sure that will work for textures, I think I tried only
for point symbolizers. David?

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Ok Andrea, thanks for the fast reply. :smiley:

About the issue with GoogleEarth, the graphics are published on a online
resource, and with openLayers it works correctly. I teste with point
symbolizers using online resources on Google Earth and it works fine.
Hope this information could be usefull.

Att.

-----Mensagem original-----
De: Andrea Aime [mailto:aaime@anonymised.com]
Enviada em: quinta-feira, 4 de junho de 2009 13:15
Para: Fabio da Silva Junior
Cc: geoserver-users@lists.sourceforge.net; dwinslow@anonymised.com
Assunto: Re: RES: [Geoserver-users] Adding new shapes with Directory of
spatial data method

Fabio da Silva Junior ha scritto:

Ok Andrea, it's a little hard to explain the issue, but I understand
what you explained.

I'll try to give you an example of my question.

I added a directory datastore that has the shapes: roads1, roads2 and
roads3. Then I add all of them as a feature type. I add a new shape
called roads4, and go to FeatureType and press the new button. In the
list of available shapes, I have all shapes I already added, plus the
new shape roads4. For a small number of shapes, it's not a problem,
but when we have thousands of them, it's a waste of time, because we
have to search the new shape added later. This is what I've tried to
ask in the first email, but I didn't explain correctly.

Oh, I see. Yet, we cannot hide the ones already published because
people sometime need to publish the same layer multiple times with
a different alias (faking a different native srs or showing a different
default style).
In the new UI (on trunk, what will become GeoServer 2.0) we're at
liberty to add an option to hide the ones already published thought,
or else, to show the unpublished layers on the top.

By the way, we have found a problem with kml and styles, using and
image like a texture. The GoogleEarth can't render the content of the
polygon. If anyone already have the same problem, please help me. :smiley:

Most likely Google Eearth cannot fetch the texture. When you setup
KML layers the graphics used must be on a online URL that is visible
to both GeoServer and Google Earth.
Yet, I'm not sure that will work for textures, I think I tried only
for point symbolizers. David?

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Fabio da Silva Junior ha scritto:

Ok Andrea, thanks for the fast reply. :smiley:

About the issue with GoogleEarth, the graphics are published on a online
resource, and with openLayers it works correctly. I teste with point
symbolizers using online resources on Google Earth and it works fine.
Hope this information could be usefull.

As far as I can see KML does not support texture fills, but only
solid color ones?
http://code.google.com/intl/it-IT/apis/kml/documentation/kmlreference.html#polystyle

If you know how to support textured fills in KML send us a link
to the relevant docs.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.