RE: [Geoserver-devel] Status of SLD?

Mike,

My plan was going to make this as independent as possible so that it
could be used directly inside things like mapbuilder (as you might have
noticed, we are slowly integrating mapbuilder more-and-more into
geoserver). I also want to make sure that it follows the OGC spec so
it could be used with any WMS server that supports GetStyle/PutStyle
(I'm hoping that mapserver supports it or will support it soon).

I was planning on using the Geotools "human-readable" Filter
parser/writer and deploying it as a web-service inside geoserver.
Basically it would take something like "road_type = 'highway'" and
convert it into the appropriate Filter:

<ogc:Filter>
   <ogc:PropertyIsEqualTo>
      <ogc:PropertyName>road_type</ogc:PropertyName>
      <ogc:Literal>highway</ogc:Literal>
   </ogc:PropertyIsEqualTo>
</ogc:Filter>

And, of course, in the opposite direction too. I think that new users
will find this extreamly helpful, but i think writing a javascript
equation parser would be a royal pain, hence the plan to make a little
webservice to do it. Know anything like lex/yacc for
browser-independent javascript?

As for making symbolizers, I was thinking about doing one of these:
1. just let them enter their attributes (ie. a colour chooser for fill)
and then they can see the result after they putstyle
2. show them a simple example using SVG
3. show them their data by sending a SLD-POST request off to the server
(this is more difficult that you might think, especially if they have a
large dataset or are using max/min scale filters in their rules)

A combination of 2 and 3 could make a highly interactive experience.

I'm planning on adding much better SVG support to geoserver - whats the
plan for support in mapbuilder?

dave

----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/

I just read http://docs.codehaus.org/display/GEOSDOC/Data+Config about
Styles and it said something about
"(if anyone is interested in this Andrea Aime wrote some code to do this,
but it's still buggy, and we would need to figure out how to run it in an
applet, and how to run applets in STRUTS)"

Where is that code and did it end up in anything?
I have been changing the focus om my thesis and will try to find out more
about how a good SLD-editor should look like and work.

/ Rasmus

-----Ursprungligt meddelande-----
Från: geoserver-devel-admin@lists.sourceforge.net
[mailto:geoserver-devel-admin@lists.sourceforge.net] För
dblasby@anonymised.com
Skickat: den 27 oktober 2005 05:52
Till: Mike.Adair@anonymised.com
Kopia: geoserver-devel@lists.sourceforge.net
Ämne: RE: [Geoserver-devel] Status of SLD?

Mike,

My plan was going to make this as independent as possible so that it could
be used directly inside things like mapbuilder (as you might have noticed,
we are slowly integrating mapbuilder more-and-more into geoserver). I also
want to make sure that it follows the OGC spec so it could be used with any
WMS server that supports GetStyle/PutStyle (I'm hoping that mapserver
supports it or will support it soon).

I was planning on using the Geotools "human-readable" Filter parser/writer
and deploying it as a web-service inside geoserver.
Basically it would take something like "road_type = 'highway'" and convert
it into the appropriate Filter:

<ogc:Filter>
   <ogc:PropertyIsEqualTo>
      <ogc:PropertyName>road_type</ogc:PropertyName>
      <ogc:Literal>highway</ogc:Literal>
   </ogc:PropertyIsEqualTo>
</ogc:Filter>

And, of course, in the opposite direction too. I think that new users will
find this extreamly helpful, but i think writing a javascript equation
parser would be a royal pain, hence the plan to make a little webservice to
do it. Know anything like lex/yacc for browser-independent javascript?

As for making symbolizers, I was thinking about doing one of these: 1. just
let them enter their attributes (ie. a colour chooser for fill) and then
they can see the result after they putstyle 2. show them a simple example
using SVG 3. show them their data by sending a SLD-POST request off to the
server (this is more difficult that you might think, especially if they have
a large dataset or are using max/min scale filters in their rules)

A combination of 2 and 3 could make a highly interactive experience.

I'm planning on adding much better SVG support to geoserver - whats the plan
for support in mapbuilder?

dave

----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005 Visit
http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Quoting Rasmus Lindberg <cil00lr8@anonymised.com>:

I just read http://docs.codehaus.org/display/GEOSDOC/Data+Config
about
Styles and it said something about
"(if anyone is interested in this Andrea Aime wrote some code to do
this,
but it's still buggy, and we would need to figure out how to run it
in an
applet, and how to run applets in STRUTS)"

Where is that code and did it end up in anything?

It never ended up in anything, afaik. It's probably still living
somewhere in geotools, but I don't know where. I'm pretty sure he was
never happy with it.

I have been changing the focus om my thesis and will try to find out
more
about how a good SLD-editor should look like and work.

You're not changing because we didn't have SVG + SLD, are you? Because
we actually just got it in, in the latest release, thanks to a nice
user contribution and Justin rolling it in.

But making a good sld-editor could be fun. I don't think applets are
really the way to go, and figuring out where he was trying to go with
it would be more trouble than it's worth, you should probably just
start some scratch. The two best routes would be to 1) improve the
uDig one, make it 'real', working with filters and line styles and
min/max denom and labeling options. I think James may have some code
in geovista that does better SLD styling, so that may be a decent place
to start. And there's also the good Filter/Expression parser that
David mentions, that would be useful, to go from 'area < 5' to the
appropriate OGC/geotools filter. Or 2) learn some AJAX, which would be
more useful from the geoserver perspective. You might take some pieces
of mapbuilder, to request the FeatureType, since you need to know the
FeatureType to build the style. I think David's be planning on doing
this, along with the backend infrastructure of put/getStyle for 1.3.1.
You could figure out how to work directly with him, or build something
on his base. Focus on the UI and the layout, various nice touches to
make styling maps really intuitive, as it'd be more thesis worthy
material. I _think_ David is just going for a solid base, and I
believe there's a lot you could do to make the styling of maps with SLD
very nice.

David, I really like the idea of doing a webservice for the filter
parsing. Very smart way of making use of some already existing code,
but not having to do applets, making it super independant.

best regards,

Chris

/ Rasmus

-----Ursprungligt meddelande-----
Från: geoserver-devel-admin@lists.sourceforge.net
[mailto:geoserver-devel-admin@lists.sourceforge.net] För
dblasby@anonymised.com
Skickat: den 27 oktober 2005 05:52
Till: Mike.Adair@anonymised.com
Kopia: geoserver-devel@lists.sourceforge.net
Ämne: RE: [Geoserver-devel] Status of SLD?

Mike,

My plan was going to make this as independent as possible so that it
could
be used directly inside things like mapbuilder (as you might have
noticed,
we are slowly integrating mapbuilder more-and-more into geoserver).
I also
want to make sure that it follows the OGC spec so it could be used
with any
WMS server that supports GetStyle/PutStyle (I'm hoping that mapserver
supports it or will support it soon).

I was planning on using the Geotools "human-readable" Filter
parser/writer
and deploying it as a web-service inside geoserver.
Basically it would take something like "road_type = 'highway'" and
convert
it into the appropriate Filter:

<ogc:Filter>
   <ogc:PropertyIsEqualTo>
      <ogc:PropertyName>road_type</ogc:PropertyName>
      <ogc:Literal>highway</ogc:Literal>
   </ogc:PropertyIsEqualTo>
</ogc:Filter>

And, of course, in the opposite direction too. I think that new users
will
find this extreamly helpful, but i think writing a javascript
equation
parser would be a royal pain, hence the plan to make a little
webservice to
do it. Know anything like lex/yacc for browser-independent
javascript?

As for making symbolizers, I was thinking about doing one of these:
1. just
let them enter their attributes (ie. a colour chooser for fill) and
then
they can see the result after they putstyle 2. show them a simple
example
using SVG 3. show them their data by sending a SLD-POST request off
to the
server (this is more difficult that you might think, especially if
they have
a large dataset or are using max/min scale filters in their rules)

A combination of 2 and 3 could make a highly interactive experience.

I'm planning on adding much better SVG support to geoserver - whats
the plan
for support in mapbuilder?

dave

----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of
2005 Visit
http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of
2005
Visit http://www.jboss.com/services/certification for more
information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/

In regard to some of james work, the udig guys have ported it into geotools for use in udig. Its quite impressive stuff and great for doing things like theming.

-Justin

http://www.personal.psu.edu/faculty/c/a/cab38/ColorBrewer/ColorBrewer_intro.html

Chris Holmes wrote:

Quoting Rasmus Lindberg <cil00lr8@anonymised.com>:

I just read http://docs.codehaus.org/display/GEOSDOC/Data+Config
about
Styles and it said something about
"(if anyone is interested in this Andrea Aime wrote some code to do
this,
but it's still buggy, and we would need to figure out how to run it
in an
applet, and how to run applets in STRUTS)"

Where is that code and did it end up in anything?

It never ended up in anything, afaik. It's probably still living
somewhere in geotools, but I don't know where. I'm pretty sure he was
never happy with it.

I have been changing the focus om my thesis and will try to find out
more
about how a good SLD-editor should look like and work.

You're not changing because we didn't have SVG + SLD, are you? Because
we actually just got it in, in the latest release, thanks to a nice
user contribution and Justin rolling it in.

But making a good sld-editor could be fun. I don't think applets are
really the way to go, and figuring out where he was trying to go with
it would be more trouble than it's worth, you should probably just
start some scratch. The two best routes would be to 1) improve the
uDig one, make it 'real', working with filters and line styles and
min/max denom and labeling options. I think James may have some code
in geovista that does better SLD styling, so that may be a decent place
to start. And there's also the good Filter/Expression parser that
David mentions, that would be useful, to go from 'area < 5' to the
appropriate OGC/geotools filter. Or 2) learn some AJAX, which would be
more useful from the geoserver perspective. You might take some pieces
of mapbuilder, to request the FeatureType, since you need to know the
FeatureType to build the style. I think David's be planning on doing
this, along with the backend infrastructure of put/getStyle for 1.3.1. You could figure out how to work directly with him, or build something
on his base. Focus on the UI and the layout, various nice touches to
make styling maps really intuitive, as it'd be more thesis worthy
material. I _think_ David is just going for a solid base, and I
believe there's a lot you could do to make the styling of maps with SLD
very nice.

David, I really like the idea of doing a webservice for the filter
parsing. Very smart way of making use of some already existing code,
but not having to do applets, making it super independant.

best regards,

Chris

/ Rasmus

-----Ursprungligt meddelande-----
Från: geoserver-devel-admin@lists.sourceforge.net
[mailto:geoserver-devel-admin@lists.sourceforge.net] För
dblasby@anonymised.com
Skickat: den 27 oktober 2005 05:52
Till: Mike.Adair@anonymised.com
Kopia: geoserver-devel@lists.sourceforge.net
Ämne: RE: [Geoserver-devel] Status of SLD?

Mike,

My plan was going to make this as independent as possible so that it
could
be used directly inside things like mapbuilder (as you might have
noticed,
we are slowly integrating mapbuilder more-and-more into geoserver).
I also
want to make sure that it follows the OGC spec so it could be used
with any
WMS server that supports GetStyle/PutStyle (I'm hoping that mapserver
supports it or will support it soon).

I was planning on using the Geotools "human-readable" Filter
parser/writer
and deploying it as a web-service inside geoserver.
Basically it would take something like "road_type = 'highway'" and
convert
it into the appropriate Filter:

<ogc:Filter>
  <ogc:PropertyIsEqualTo>
     <ogc:PropertyName>road_type</ogc:PropertyName>
     <ogc:Literal>highway</ogc:Literal>
  </ogc:PropertyIsEqualTo>
</ogc:Filter>

And, of course, in the opposite direction too. I think that new users
will
find this extreamly helpful, but i think writing a javascript
equation
parser would be a royal pain, hence the plan to make a little
webservice to
do it. Know anything like lex/yacc for browser-independent
javascript?

As for making symbolizers, I was thinking about doing one of these:
1. just
let them enter their attributes (ie. a colour chooser for fill) and
then
they can see the result after they putstyle 2. show them a simple
example
using SVG 3. show them their data by sending a SLD-POST request off
to the
server (this is more difficult that you might think, especially if
they have
a large dataset or are using max/min scale filters in their rules)

A combination of 2 and 3 could make a highly interactive experience.

I'm planning on adding much better SVG support to geoserver - whats
the plan
for support in mapbuilder?

dave

----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of
2005 Visit
http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of
2005
Visit http://www.jboss.com/services/certification for more
information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Justin Deoliveira wrote:

In regard to some of james work, the udig guys have ported it into geotools for use in udig. Its quite impressive stuff and great for doing things like theming.

Note we are just setting up user interfaces for advanced SLD use in uDig. We will be donating the code the geowidgets project (so a Swing and SWT widget will be available to directly edit the GeoTools Style objects). If you guys want to add a Struts tile into the mix you will at least have something to port.

Jody

I downloaded the newest release candidate, and every time I try to save a configuration (like adding a style) I get the following error -- How can I fix this? John

    HTTP ERROR: 404 Not Found

RequestURI=/geoserver/admin/

/Powered by Jetty:// <http://jetty.mortbay.org>/

Jody Garnett wrote:

Justin Deoliveira wrote:

In regard to some of james work, the udig guys have ported it into geotools for use in udig. Its quite impressive stuff and great for doing things like theming.

Note we are just setting up user interfaces for advanced SLD use in uDig. We will be donating the code the geowidgets project (so a Swing and SWT widget will be available to directly edit the GeoTools Style objects). If you guys want to add a Struts tile into the mix you will at least have something to port.

Jody

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
---------------------------------
John Harris
Numeric Solutions, LLC.
2506 Bayshore Ave Ventura, CA 93001
805.407.7644
harris@anonymised.com
http://www.numericsolutions.com
---------------------------------

John Harris wrote:

I downloaded the newest release candidate, and every time I try to save a configuration (like adding a style) I get the following error -- How can I fix this? John

Not sure - I just checked the sanity check release for my walkthrough 2 (and did not make any changes to the configuration). What platform are you on?
Jody

Fedora core2
Jody Garnett wrote:

John Harris wrote:

I downloaded the newest release candidate, and every time I try to save a configuration (like adding a style) I get the following error -- How can I fix this? John

Not sure - I just checked the sanity check release for my walkthrough 2 (and did not make any changes to the configuration). What platform are you on?
Jody

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
---------------------------------
John Harris
Numeric Solutions, LLC.
2506 Bayshore Ave Ventura, CA 93001
805.407.7644
harris@anonymised.com
http://www.numericsolutions.com
---------------------------------

And here is the exception:

63 [WARNING] org.geotools.data.shapefile.ShapefileDataStore - projection (.prj) for shapefile not available
12:35:10.949 WARN!! Exception for /geoserver/admin/saveToXML.do
java.lang.NullPointerException
        at org.vfny.geoserver.global.xml.XMLConfigWriter.storeFeatures(XMLConfigWriter.java:696)
        at org.vfny.geoserver.global.xml.XMLConfigWriter.store(XMLConfigWriter.java:89)
        at org.vfny.geoserver.global.xml.XMLConfigWriter.store(XMLConfigWriter.java:119)
        at org.vfny.geoserver.action.SaveXMLAction.saveGeoserver(SaveXMLAction.java:63)
        at org.vfny.geoserver.action.SaveXMLAction.execute(SaveXMLAction.java:45)
        at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:98)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
        at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
        at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
        at org.mortbay.http.HttpServer.service(HttpServer.java:879)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
        at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)

12:35:11.048 EVENT Started HttpContext[/]

John Harris wrote:

Fedora core2
Jody Garnett wrote:

John Harris wrote:

I downloaded the newest release candidate, and every time I try to save a configuration (like adding a style) I get the following error -- How can I fix this? John

Not sure - I just checked the sanity check release for my walkthrough 2 (and did not make any changes to the configuration). What platform are you on?
Jody

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
---------------------------------
John Harris
Numeric Solutions, LLC.
2506 Bayshore Ave Ventura, CA 93001
805.407.7644
harris@anonymised.com
http://www.numericsolutions.com
---------------------------------

And, I think the apply, save, load scheme is confusing. Why not save,apply,load or load,save,apply... What is the metaphore you are going for? John

John Harris wrote:

Fedora core2
Jody Garnett wrote:

John Harris wrote:

I downloaded the newest release candidate, and every time I try to save a configuration (like adding a style) I get the following error -- How can I fix this? John

Not sure - I just checked the sanity check release for my walkthrough 2 (and did not make any changes to the configuration). What platform are you on?
Jody

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
---------------------------------
John Harris
Numeric Solutions, LLC.
2506 Bayshore Ave Ventura, CA 93001
805.407.7644
harris@anonymised.com
http://www.numericsolutions.com
---------------------------------

Hi John,

Justin, Dave and I discussed this earlier and we were thinking we would remove the apply button, so when you change a setting, it is automatically applied. Currently, when you change a setting, it doesn't actually take place until you hit apply. When you hit 'Save', your settings are saved to disk, so the next time you start geoserver, your settings will be loaded. If you have changed your settings, and have not saved them out yet and want to rever back to your old settings, hit 'Load'.

Brent Owens
TOPP

John Harris wrote:

And, I think the apply, save, load scheme is confusing. Why not save,apply,load or load,save,apply... What is the metaphore you are going for? John

John Harris wrote:

Fedora core2
Jody Garnett wrote:

John Harris wrote:

I downloaded the newest release candidate, and every time I try to save a configuration (like adding a style) I get the following error -- How can I fix this? John

Not sure - I just checked the sanity check release for my walkthrough 2 (and did not make any changes to the configuration). What platform are you on?
Jody

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Hi John,

What do servelet container you have GeoServer deployed in? Is it Tomcat?
An issue like this popped up earlier (http://jira.codehaus.org/browse/GEOS-359) an it was resolved. If the issue is back, can you supply us some more information: exact Geoserver version number, servelet container name/version, what you are trying to save and load.

Brent Owens
TOPP

John Harris wrote:

Fedora core2
Jody Garnett wrote:

John Harris wrote:

I downloaded the newest release candidate, and every time I try to save a configuration (like adding a style) I get the following error -- How can I fix this? John

Not sure - I just checked the sanity check release for my walkthrough 2 (and did not make any changes to the configuration). What platform are you on?
Jody

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Hi Brent, I downloaded the release that includes the jetty server. I'm using:
-rwxr--r-- 1 harris harris 15181534 Oct 24 15:27 geoserver-1.3.0-RC4-bin.tar.gz

An I get the error when ever I hit the save button, no matter what I'm trying to save. Thanks. John

Brent Owens wrote:

Hi John,

What do servelet container you have GeoServer deployed in? Is it Tomcat?
An issue like this popped up earlier (http://jira.codehaus.org/browse/GEOS-359) an it was resolved. If the issue is back, can you supply us some more information: exact Geoserver version number, servelet container name/version, what you are trying to save and load.

Brent Owens
TOPP

John Harris wrote:

Fedora core2
Jody Garnett wrote:

John Harris wrote:

I downloaded the newest release candidate, and every time I try to save a configuration (like adding a style) I get the following error -- How can I fix this? John

Not sure - I just checked the sanity check release for my walkthrough 2 (and did not make any changes to the configuration). What platform are you on?
Jody

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
---------------------------------
John Harris
Numeric Solutions, LLC.
2506 Bayshore Ave Ventura, CA 93001
805.407.7644
harris@anonymised.com
http://www.numericsolutions.com
---------------------------------

It looks like a bug in the code.
In the method where the exception happens (XMLConfigWriter.java:696), the code looks like this:

File t = fa[j].listFiles();
if (t != null) {
    ...
}
if (fa[j].listFiles().length == 0) {
    fa[j].delete();
}

The first if statement checks to see that t is not null, but it is not checked again on the next if statement. I have added it as a bug and will fix it today.

Brent Owens
TOPP

John Harris wrote:

And here is the exception:

63 [WARNING] org.geotools.data.shapefile.ShapefileDataStore - projection (.prj) for shapefile not available
12:35:10.949 WARN!! Exception for /geoserver/admin/saveToXML.do
java.lang.NullPointerException
       at org.vfny.geoserver.global.xml.XMLConfigWriter.storeFeatures(XMLConfigWriter.java:696)

       at org.vfny.geoserver.global.xml.XMLConfigWriter.store(XMLConfigWriter.java:89)

       at org.vfny.geoserver.global.xml.XMLConfigWriter.store(XMLConfigWriter.java:119)

       at org.vfny.geoserver.action.SaveXMLAction.saveGeoserver(SaveXMLAction.java:63)

       at org.vfny.geoserver.action.SaveXMLAction.execute(SaveXMLAction.java:45)
       at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:98)
       at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)

       at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)

       at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
       at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
       at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
       at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)

       at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
       at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
       at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)

       at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
       at org.mortbay.http.HttpServer.service(HttpServer.java:879)
       at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
       at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
       at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
       at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
       at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)
       at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)

12:35:11.048 EVENT Started HttpContext[/]

John Harris wrote:

Fedora core2
Jody Garnett wrote:

John Harris wrote:

I downloaded the newest release candidate, and every time I try to save a configuration (like adding a style) I get the following error -- How can I fix this? John

Not sure - I just checked the sanity check release for my walkthrough 2 (and did not make any changes to the configuration). What platform are you on?
Jody

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

John Harris wrote:

And, I think the apply, save, load scheme is confusing. Why not save,apply,load or load,save,apply... What is the metaphore you are going for? John

The idea was to let your "Try out" your configuration before saving. Perhaps "Apply" should be renamed "Try It". The reason for the distinction? Chris would not let us modify the running application directly ...

Jody

Ok, great -- will you re-issue the release candidate? John

Brent Owens wrote:

It looks like a bug in the code.
In the method where the exception happens (XMLConfigWriter.java:696), the code looks like this:

File t = fa[j].listFiles();
if (t != null) {
   ...
}
if (fa[j].listFiles().length == 0) {
   fa[j].delete();
}

The first if statement checks to see that t is not null, but it is not checked again on the next if statement. I have added it as a bug and will fix it today.

Brent Owens
TOPP

John Harris wrote:

And here is the exception:

63 [WARNING] org.geotools.data.shapefile.ShapefileDataStore - projection (.prj) for shapefile not available
12:35:10.949 WARN!! Exception for /geoserver/admin/saveToXML.do
java.lang.NullPointerException
       at org.vfny.geoserver.global.xml.XMLConfigWriter.storeFeatures(XMLConfigWriter.java:696)

       at org.vfny.geoserver.global.xml.XMLConfigWriter.store(XMLConfigWriter.java:89)

       at org.vfny.geoserver.global.xml.XMLConfigWriter.store(XMLConfigWriter.java:119)

       at org.vfny.geoserver.action.SaveXMLAction.saveGeoserver(SaveXMLAction.java:63)

       at org.vfny.geoserver.action.SaveXMLAction.execute(SaveXMLAction.java:45)
       at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:98)
       at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)

       at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)

       at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
       at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
       at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
       at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)

       at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
       at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
       at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)

       at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
       at org.mortbay.http.HttpServer.service(HttpServer.java:879)
       at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
       at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
       at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
       at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)

       at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)
       at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)

12:35:11.048 EVENT Started HttpContext[/]

John Harris wrote:

Fedora core2
Jody Garnett wrote:

John Harris wrote:

I downloaded the newest release candidate, and every time I try to save a configuration (like adding a style) I get the following error -- How can I fix this? John

Not sure - I just checked the sanity check release for my walkthrough 2 (and did not make any changes to the configuration). What platform are you on?
Jody

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
---------------------------------
John Harris
Numeric Solutions, LLC.
2506 Bayshore Ave Ventura, CA 93001
805.407.7644
harris@anonymised.com
http://www.numericsolutions.com
---------------------------------

We won't re-issue the release, but I will send you the new jar with the fix. We will be releasing again soon, possibly next week.

The bug is reported here: http://jira.codehaus.org/browse/GEOS-435
The report also has the fixed class attached. I will e-mail you the class and the new geoserver.jar

Brent Owens
TOPP

John Harris wrote:

Ok, great -- will you re-issue the release candidate? John

Brent Owens wrote:

It looks like a bug in the code.
In the method where the exception happens (XMLConfigWriter.java:696), the code looks like this:

File t = fa[j].listFiles();
if (t != null) {
   ...
}
if (fa[j].listFiles().length == 0) {
   fa[j].delete();
}

The first if statement checks to see that t is not null, but it is not checked again on the next if statement. I have added it as a bug and will fix it today.

Brent Owens
TOPP

John Harris wrote:

And here is the exception:

63 [WARNING] org.geotools.data.shapefile.ShapefileDataStore - projection (.prj) for shapefile not available
12:35:10.949 WARN!! Exception for /geoserver/admin/saveToXML.do
java.lang.NullPointerException
       at org.vfny.geoserver.global.xml.XMLConfigWriter.storeFeatures(XMLConfigWriter.java:696)

       at org.vfny.geoserver.global.xml.XMLConfigWriter.store(XMLConfigWriter.java:89)

       at org.vfny.geoserver.global.xml.XMLConfigWriter.store(XMLConfigWriter.java:119)

       at org.vfny.geoserver.action.SaveXMLAction.saveGeoserver(SaveXMLAction.java:63)

       at org.vfny.geoserver.action.SaveXMLAction.execute(SaveXMLAction.java:45)
       at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:98)
       at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)

       at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)

       at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
       at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
       at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
       at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)

       at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)

       at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
       at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)

       at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
       at org.mortbay.http.HttpServer.service(HttpServer.java:879)
       at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
       at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
       at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
       at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)

       at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)
       at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)

12:35:11.048 EVENT Started HttpContext[/]

John Harris wrote:

Fedora core2
Jody Garnett wrote:

John Harris wrote:

I downloaded the newest release candidate, and every time I try to save a configuration (like adding a style) I get the following error -- How can I fix this? John

Not sure - I just checked the sanity check release for my walkthrough 2 (and did not make any changes to the configuration). What platform are you on?
Jody

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Now I have been looking a bit at uDig and tried to understand how the Style
View look like. First I looked at different WMS-maps and thought that it
someway should be possible possible to change Style, or at least the Raster
Opacity which is the only thing that show up. But what I understand nothing
happens.

Then I took a shapefile I had my desktop and dragged it to a new map ande
happily realised that now there showed up a lot of different things that
could be changed. Nice to see that the line color and width were editable.
But what about the "Styled Layer Descriptor" drop-down list? As I understand
it doesn´t do anything at the moment, but in the future it will be one way
to develop a SLD-file. Is this right?

Do you think that the uDig Style-editor is the way that we will do
SLD-editing in the future or shal we do it some other way?

If somebody has some link to show me how and when a SLD-file realy do any
effect on a maplayer I would be very happy. I read what I can find, but I
have realy hard to understand how it works or shall work when I haven't seen
any result jet.

I realy thank you all guys for the answers at my "Status of SLD?" question.
I hope that I understand the thinking, but my programing knowledge is not
that great so it is hard to understand all te abbreviationsand more complex
stuff. Anyway I hope that you appreciate my questions, and that they maybe
help the development.

/Rasmus

PS How is it with IRC? I found the Mapbuilder-room, but does Geoserver have
a room too? My nickname is Razscout

-----Ursprungligt meddelande-----
Från: Jody Garnett [mailto:jgarnett@anonymised.com]
Skickat: den 28 oktober 2005 19:25
Till: Justin Deoliveira
Kopia: Chris Holmes; Rasmus Lindberg; geoserver-devel@lists.sourceforge.net;
jmacgill@anonymised.com
Ämne: Re: SV: [Geoserver-devel] Status of SLD?

Justin Deoliveira wrote:

In regard to some of james work, the udig guys have ported it into
geotools for use in udig. Its quite impressive stuff and great for
doing things like theming.

Note we are just setting up user interfaces for advanced SLD use in
uDig. We will be donating the code the geowidgets project (so a Swing
and SWT widget will be available to directly edit the GeoTools Style
objects). If you guys want to add a Struts tile into the mix you will at
least have something to port.

Jody

Rasmus Lindberg wrote:

Now I have been looking a bit at uDig and tried to understand how the Style
View look like. First I looked at different WMS-maps and thought that it
someway should be possible possible to change Style, or at least the Raster
Opacity which is the only thing that show up. But what I understand nothing
happens.

Then I took a shapefile I had my desktop and dragged it to a new map ande
happily realised that now there showed up a lot of different things that
could be changed. Nice to see that the line color and width were editable.
But what about the "Styled Layer Descriptor" drop-down list? As I understand
it doesn´t do anything at the moment, but in the future it will be one way
to develop a SLD-file. Is this right?

Do you think that the uDig Style-editor is the way that we will do
SLD-editing in the future or shal we do it some other way?

I think the udig SLD editor is going to be really nice to use when it is finished. The team has been putting in a lot of hard work on it. However I dont beleive that it will take a monopoly on SLD editing because udig is a fairly think client. I still think there is room for a web-based sld editor, which we are hoping to work on post 1.3.0.

If somebody has some link to show me how and when a SLD-file realy do any
effect on a maplayer I would be very happy. I read what I can find, but I
have realy hard to understand how it works or shall work when I haven't seen
any result jet.

If you have a running geoserver, go to the demos page and check out the WMS_getMap.url request. The style being applied is 'population' and is a good example of some cool things you can do with SLD. The source for the file is located under your geoserver installation:

[Geoserver Installation]/server/geoserver/data/styles/popshade.sld

The SLD spec is also a good place to start, it has quite a few examples:

http://www.opengeospatial.org/docs/02-070.pdf

Justin

I realy thank you all guys for the answers at my "Status of SLD?" question.
I hope that I understand the thinking, but my programing knowledge is not
that great so it is hard to understand all te abbreviationsand more complex
stuff. Anyway I hope that you appreciate my questions, and that they maybe
help the development.

/Rasmus

PS How is it with IRC? I found the Mapbuilder-room, but does Geoserver have
a room too? My nickname is Razscout

-----Ursprungligt meddelande-----
Från: Jody Garnett [mailto:jgarnett@anonymised.com] Skickat: den 28 oktober 2005 19:25
Till: Justin Deoliveira
Kopia: Chris Holmes; Rasmus Lindberg; geoserver-devel@lists.sourceforge.net;
jmacgill@anonymised.com
Ämne: Re: SV: [Geoserver-devel] Status of SLD?

Justin Deoliveira wrote:

In regard to some of james work, the udig guys have ported it into
geotools for use in udig. Its quite impressive stuff and great for doing things like theming.

Note we are just setting up user interfaces for advanced SLD use in uDig. We will be donating the code the geowidgets project (so a Swing and SWT widget will be available to directly edit the GeoTools Style objects). If you guys want to add a Struts tile into the mix you will at least have something to port.

Jody

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Quoting Justin Deoliveira <jdeolive@anonymised.com>:

Rasmus Lindberg wrote:
> Now I have been looking a bit at uDig and tried to understand how
the Style
> View look like. First I looked at different WMS-maps and thought
that it
> someway should be possible possible to change Style, or at least
the Raster
> Opacity which is the only thing that show up. But what I understand
nothing
> happens.
>
> Then I took a shapefile I had my desktop and dragged it to a new
map ande
> happily realised that now there showed up a lot of different things
that
> could be changed. Nice to see that the line color and width were
editable.
> But what about the "Styled Layer Descriptor" drop-down list? As I
understand
> it doesn´t do anything at the moment, but in the future it will be
one way
> to develop a SLD-file. Is this right?
>
> Do you think that the uDig Style-editor is the way that we will do
> SLD-editing in the future or shal we do it some other way?
>
I think the udig SLD editor is going to be really nice to use when it
is
finished. The team has been putting in a lot of hard work on it.
However
I dont beleive that it will take a monopoly on SLD editing because
udig
is a fairly think client. I still think there is room for a web-based
sld editor, which we are hoping to work on post 1.3.0.
>
> If somebody has some link to show me how and when a SLD-file realy
do any
> effect on a maplayer I would be very happy.

I'm not sure if this is exactly what you're asking, but I'm pretty sure
if you make an sld file with the same name as your shapefile, and a
.sld suffic, and place it in the same dir as your shapefile, udig will
render it completely. They just don't have the editing down yet, but
they do the rendering.

I read what I can find,
but I
> have realy hard to understand how it works or shall work when I
haven't seen
> any result jet.
If you have a running geoserver, go to the demos page and check out
the
WMS_getMap.url request. The style being applied is 'population' and
is a
good example of some cool things you can do with SLD. The source for
the
file is located under your geoserver installation:

[Geoserver Installation]/server/geoserver/data/styles/popshade.sld

The SLD spec is also a good place to start, it has quite a few
examples:

http://www.opengeospatial.org/docs/02-070.pdf

Justin
>
> I realy thank you all guys for the answers at my "Status of SLD?"
question.
> I hope that I understand the thinking, but my programing knowledge
is not
> that great so it is hard to understand all te abbreviationsand more
complex
> stuff. Anyway I hope that you appreciate my questions, and that
they maybe
> help the development.

What would be very helpful is for you to start a wiki page tutorial on
SLD, summarizing what you've found, and what you continue to find. I
started a crappy one here:
http://docs.codehaus.org/display/GEOS/SLD+Intro you can throw it out
(and justin/brent it should probably be ported to geosdoc). But you're
an ideal person to write the intro, since you're learning it now, and
can let others know what you have trouble with, what helped you to
understand.

Chris

>
> /Rasmus
>
> PS How is it with IRC? I found the Mapbuilder-room, but does
Geoserver have
> a room too? My nickname is Razscout
>
> -----Ursprungligt meddelande-----
> Från: Jody Garnett [mailto:jgarnett@anonymised.com]
> Skickat: den 28 oktober 2005 19:25
> Till: Justin Deoliveira
> Kopia: Chris Holmes; Rasmus Lindberg;
geoserver-devel@lists.sourceforge.net;
> jmacgill@anonymised.com
> Ämne: Re: SV: [Geoserver-devel] Status of SLD?
>
>
> Justin Deoliveira wrote:
>
>>In regard to some of james work, the udig guys have ported it into
>>geotools for use in udig. Its quite impressive stuff and great for
>>doing things like theming.
>
> Note we are just setting up user interfaces for advanced SLD use in
> uDig. We will be donating the code the geowidgets project (so a
Swing
> and SWT widget will be available to directly edit the GeoTools
Style
> objects). If you guys want to add a Struts tile into the mix you
will at
> least have something to port.
>
> Jody
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.
> Get Certified Today * Register for a JBoss Training Course
> Free Certification Exam for All Training Attendees Through End of
2005
> Visit http://www.jboss.com/services/certification for more
information
> _______________________________________________
> Geoserver-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of
2005
Visit http://www.jboss.com/services/certification for more
information
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/