[Geoserver-users] No response creating new SLD styles

Hello all,

I am using GeoServer 1.6.4 on windows XP on a local network, disconnected
from the internet.

When I upload a new data store from a Shapefile and I create a new SLD style
for it using GeoServer's "Create new SLD" option. However, when I hit the
"Apply Style" button, it never gets confirmation of saving the style (it
waits for a response), and so I cannot use the style.

Any explanation for this?

The following are the messages that I get when creating the new SLD:

setup
ft = CER_Population_Centres_130108
interval; featureTypeName = CER_Population_Centres_130108
ft info: [the_geom:pointProperty, Location_C:string, Location:string,
Facility_N:string, Facility_T:string, Sub_Facili:string, Category_C:string,
Nation_ID:string, LatLong:string, XCoord:double, YCoord:double, UTM:string,
Picture_Of:string, Descriptio:string, Air_MOT:string, Sea_MOT:string,
IWW_MOT:string, Road_MOT:string, Rail_MOT:string, Pipe_MOT:string,
CB:string, Annex:string, MapInfo_Sy:string, Location_1:string,
Population:string, Populati_1:string, Footprint_:string, Perimeter_:string,
Civic_Lead:string, Civic_Auth:string, Address:string, Telephone:string,
Alternativ:string, Additional:string, MGRS:string]
geomType = point
Making sld for: CER_Population_Centres_130108
SLD:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
  xmlns:gml="http://www.opengis.net/gml&quot;
  xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns="http://www.opengis.net/sld&quot;&gt;
  <NamedLayer>
    <Name>CER_Population_Centres_130108</Name>
    <UserStyle>
      <Name>CER_Population_Centres_130108_style</Name>
      <Title>geoserver style</Title>
      <Abstract>Generated by GeoServer</Abstract>
      <FeatureTypeStyle>
      <Rule>
        <PointSymbolizer>
          <Graphic>
  <Mark>
    <WellKnownName>circle</WellKnownName>
          <Fill>
            <CssParameter name="fill">#000000</CssParameter>
            <CssParameter name="fill-opacity">1</CssParameter>
          </Fill>
  </Mark>
  <Opacity>1</Opacity>
  <Size>1</Size>
</Graphic>

        </PointSymbolizer>
        <TextSymbolizer>
          <Label>
            <ogc:PropertyName>Facility_N</ogc:PropertyName>
          </Label>
            
              <CssParameter name="font-family">Times New Roman</CssParameter>
              <CssParameter name="font-style">Normal</CssParameter>
              <CssParameter name="font-size">12</CssParameter>
            
          <Fill>
            <CssParameter name="fill">#000000</CssParameter>
            <CssParameter name="fill-opacity">1</CssParameter>
          </Fill>
        </TextSymbolizer>
      </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>
Saving style
waiting for response...
waiting for response...
waiting for response...
waiting for response...
waiting for response...

--
View this message in context: http://www.nabble.com/No-response-creating-new-SLD-styles-tp19877190p19877190.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi David,

What browser are you using? I tried following the steps you outlined and got it to work with firefox.. but not with IE for some odd reason.

One thing to note is that "style editor" should be used with caution, its never really been well tested and quite honestly something we should probably not include in a release... but it kind of works so it stays in :).

Which is a pain because any type of graphical editing tool for SLD would be better then hacking XML out by hand. The scheme that I have currently seen work best is using udig's SLD editor to create styles and then uploading the resulting style to GeoServer.

-Justin

-Justin

David_Als wrote:

Hello all,

I am using GeoServer 1.6.4 on windows XP on a local network, disconnected
from the internet.

When I upload a new data store from a Shapefile and I create a new SLD style
for it using GeoServer's "Create new SLD" option. However, when I hit the
"Apply Style" button, it never gets confirmation of saving the style (it
waits for a response), and so I cannot use the style.

Any explanation for this?

The following are the messages that I get when creating the new SLD:

setup
ft = CER_Population_Centres_130108
interval; featureTypeName = CER_Population_Centres_130108
ft info: [the_geom:pointProperty, Location_C:string, Location:string,
Facility_N:string, Facility_T:string, Sub_Facili:string, Category_C:string,
Nation_ID:string, LatLong:string, XCoord:double, YCoord:double, UTM:string,
Picture_Of:string, Descriptio:string, Air_MOT:string, Sea_MOT:string,
IWW_MOT:string, Road_MOT:string, Rail_MOT:string, Pipe_MOT:string,
CB:string, Annex:string, MapInfo_Sy:string, Location_1:string,
Population:string, Populati_1:string, Footprint_:string, Perimeter_:string,
Civic_Lead:string, Civic_Auth:string, Address:string, Telephone:string,
Alternativ:string, Additional:string, MGRS:string]
geomType = point
Making sld for: CER_Population_Centres_130108
SLD:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
  xmlns:gml="http://www.opengis.net/gml&quot;
  xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns="http://www.opengis.net/sld&quot;&gt;
  <NamedLayer>
    <Name>CER_Population_Centres_130108</Name>
    <UserStyle>
      <Name>CER_Population_Centres_130108_style</Name>
      <Title>geoserver style</Title>
      <Abstract>Generated by GeoServer</Abstract>
      <FeatureTypeStyle>
      <Rule>
        <PointSymbolizer>
          <Graphic>
  <Mark>
    <WellKnownName>circle</WellKnownName>
          <Fill>
            <CssParameter name="fill">#000000</CssParameter>
            <CssParameter name="fill-opacity">1</CssParameter>
          </Fill>
  </Mark>
  <Opacity>1</Opacity>
  <Size>1</Size>
</Graphic>

        </PointSymbolizer>
        <TextSymbolizer>
          <Label>
            <ogc:PropertyName>Facility_N</ogc:PropertyName>
          </Label>
            
              <CssParameter name="font-family">Times New Roman</CssParameter>
              <CssParameter name="font-style">Normal</CssParameter>
              <CssParameter name="font-size">12</CssParameter>
            
          <Fill>
            <CssParameter name="fill">#000000</CssParameter>
            <CssParameter name="fill-opacity">1</CssParameter>
          </Fill>
        </TextSymbolizer>
      </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>
Saving style
waiting for response...

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Hi Justin and David,

my experience is that it doesn't work with IE, not IE7 anyway. With FF it seem to be doing what it should. If I recall right, the style editor in the older versions of Geoserver seemed to be working ok with IE. Not sure though..

- mika -

Justin Deoliveira kirjoitti:

Hi David,

What browser are you using? I tried following the steps you outlined and got it to work with firefox.. but not with IE for some odd reason.

One thing to note is that "style editor" should be used with caution, its never really been well tested and quite honestly something we should probably not include in a release... but it kind of works so it stays in :).

Which is a pain because any type of graphical editing tool for SLD would be better then hacking XML out by hand. The scheme that I have currently seen work best is using udig's SLD editor to create styles and then uploading the resulting style to GeoServer.

-Justin

-Justin

David_Als wrote:
  

Hello all,

I am using GeoServer 1.6.4 on windows XP on a local network, disconnected
from the internet.

When I upload a new data store from a Shapefile and I create a new SLD style
for it using GeoServer's "Create new SLD" option. However, when I hit the
"Apply Style" button, it never gets confirmation of saving the style (it
waits for a response), and so I cannot use the style.

Any explanation for this?

The following are the messages that I get when creating the new SLD:

setup
ft = CER_Population_Centres_130108
interval; featureTypeName = CER_Population_Centres_130108
ft info: [the_geom:pointProperty, Location_C:string, Location:string,
Facility_N:string, Facility_T:string, Sub_Facili:string, Category_C:string,
Nation_ID:string, LatLong:string, XCoord:double, YCoord:double, UTM:string,
Picture_Of:string, Descriptio:string, Air_MOT:string, Sea_MOT:string,
IWW_MOT:string, Road_MOT:string, Rail_MOT:string, Pipe_MOT:string,
CB:string, Annex:string, MapInfo_Sy:string, Location_1:string,
Population:string, Populati_1:string, Footprint_:string, Perimeter_:string,
Civic_Lead:string, Civic_Auth:string, Address:string, Telephone:string,
Alternativ:string, Additional:string, MGRS:string]
geomType = point
Making sld for: CER_Population_Centres_130108
SLD:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
  xmlns:gml="http://www.opengis.net/gml&quot;
  xmlns:ogc="http://www.opengis.net/ogc&quot;
  xmlns="http://www.opengis.net/sld&quot;&gt;
  <NamedLayer>
    <Name>CER_Population_Centres_130108</Name>
    <UserStyle>
      <Name>CER_Population_Centres_130108_style</Name>
      <Title>geoserver style</Title>
      <Abstract>Generated by GeoServer</Abstract>
      <FeatureTypeStyle>
      <Rule>
        <PointSymbolizer>
          <Graphic>
  <Mark>
    <WellKnownName>circle</WellKnownName>
          <Fill>
            <CssParameter name="fill">#000000</CssParameter>
            <CssParameter name="fill-opacity">1</CssParameter>
          </Fill>
  </Mark>
  <Opacity>1</Opacity>
  <Size>1</Size>
</Graphic>

        </PointSymbolizer>
        <TextSymbolizer>
          <Label>
            <ogc:PropertyName>Facility_N</ogc:PropertyName>
          </Label>
            
              <CssParameter name="font-family">Times New Roman</CssParameter>
              <CssParameter name="font-style">Normal</CssParameter>
              <CssParameter name="font-size">12</CssParameter>
            
          <Fill>
            <CssParameter name="fill">#000000</CssParameter>
            <CssParameter name="fill-opacity">1</CssParameter>
          </Fill>
        </TextSymbolizer>
      </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>
Saving style
waiting for response...