[Geoserver-users] Is GeoServer too complicated for my needs ?

To a newbie GeoServer looks to be very complex, for my needs is there
something easier or less intimitating to use ?

I need to generate a static image ( jpeg, tiff, png, etc ) of the
United States once a month.
I would provide data like:
      CT 10
      NY 100
      CA 150
      TX 500

The map would outline all the states.
   values of 0-99 would be green - CT
   values of 100-499 would be blue - NY, CA
   values 500-up would be red. - TX

Is GeoTools better suited for this purpose, or perhaps an API that
sits on top of GeoTools ?

Any help is appreciated.

-Thanks
Steve More

Hi Stephen,

If you need to publish the image then I think GeoServer is the way to go
hands down. If you just need to generate the image then I guess you
could use geotools rendering directly, but you would have to write code
to do it. And I am sad to say that things like this arent all that well
documented, although hoping on IRC or the geotools mailing list someone
wile provide you with a code sample.

Either way I think you would be better off using GeoServer. It is fairly
straight forward to congfigure your data. And it supports SLD which you
can use to style your map the way you outlined. Plus you get a wide
variety of output formats: png, jpeg, gif, kml, georss, etc...

If you have any more questions please dont hesitate to ask.

-Justin

Stephen More wrote:

To a newbie GeoServer looks to be very complex, for my needs is there
something easier or less intimitating to use ?

I need to generate a static image ( jpeg, tiff, png, etc ) of the
United States once a month.
I would provide data like:
      CT 10
      NY 100
      CA 150
      TX 500

The map would outline all the states.
   values of 0-99 would be green - CT
   values of 100-499 would be blue - NY, CA
   values 500-up would be red. - TX

Is GeoTools better suited for this purpose, or perhaps an API that
sits on top of GeoTools ?

Any help is appreciated.

-Thanks
Steve More

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,467be399277421804284693!

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

On 6/22/07, Justin Deoliveira <jdeolive@anonymised.com> wrote:

If you have any more questions please dont hesitate to ask.

Ok.
The population example is very close to what I need:
http://localhost:8080/geoserver/wms?bbox=-130,24,-66,50&styles=population&Format=image/png&request=GetMap&layers=topp:states&width=750&height=375&srs=EPSG:4326

I have installed the mysql plugin such that the following works:
http://localhost:8080/geoserver/wfs?request=getfeature&service=wfs&version=1.0.0&typename=topp:geoserver_test

1. For my example data below, what needs to be inserted into the MySQL
geoserver_test table ?

2. Once I have the data, do I just add my data layer and create a new
style ? Perhaps I could copy the current population style as a
template ?

layers=topp:states,topp:geoserver_test&styles=mystyle1

-Steve More

Stephen More wrote:
> To a newbie GeoServer looks to be very complex, for my needs is there
> something easier or less intimitating to use ?
>
> I need to generate a static image ( jpeg, tiff, png, etc ) of the
> United States once a month.
> I would provide data like:
> CT 10
> NY 100
> CA 150
> TX 500
>
> The map would outline all the states.
> values of 0-99 would be green - CT
> values of 100-499 would be blue - NY, CA
> values 500-up would be red. - TX
>
> Is GeoTools better suited for this purpose, or perhaps an API that
> sits on top of GeoTools ?
>
> Any help is appreciated.
>
> -Thanks
> Steve More
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
> !DSPAM:4007,467be399277421804284693!
>

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

Stephen More wrote:

On 6/22/07, Justin Deoliveira <jdeolive@anonymised.com> wrote:

If you have any more questions please dont hesitate to ask.

Ok.
The population example is very close to what I need:
http://localhost:8080/geoserver/wms?bbox=-130,24,-66,50&styles=population&Format=image/png&request=GetMap&layers=topp:states&width=750&height=375&srs=EPSG:4326

I have installed the mysql plugin such that the following works:
http://localhost:8080/geoserver/wfs?request=getfeature&service=wfs&version=1.0.0&typename=topp:geoserver_test

1. For my example data below, what needs to be inserted into the MySQL
geoserver_test table ?

So are you wanting to use the states data as a base? Like start with it
and add your attribute to it? geoserver wont really do any joining or
anything so you might have to create a table for the states data, then
supplement it with your attribute.

I am not all that familiar with mysql. Is there a utility for converting
a shapefile to sql for a mysql spatial table? I know there is one for
postgres called shp2pgsql.

2. Once I have the data, do I just add my data layer and create a new
style ? Perhaps I could copy the current population style as a
template ?

Yup, but i think you will probably have to it with a single layer. The
population style from geoserver can be a good start.

layers=topp:states,topp:geoserver_test&styles=mystyle1

-Steve More

Stephen More wrote:

To a newbie GeoServer looks to be very complex, for my needs is there
something easier or less intimitating to use ?

I need to generate a static image ( jpeg, tiff, png, etc ) of the
United States once a month.
I would provide data like:
      CT 10
      NY 100
      CA 150
      TX 500

The map would outline all the states.
   values of 0-99 would be green - CT
   values of 100-499 would be blue - NY, CA
   values 500-up would be red. - TX

Is GeoTools better suited for this purpose, or perhaps an API that
sits on top of GeoTools ?

Any help is appreciated.

-Thanks
Steve More

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,467bfdd8316382092453641!

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

As an experienced MapServer and ArcIMS user, let me tell you that GeoServer is incredibly simple. Geoserver adheres to well documented standards, and for you case, I think a simple SLD in combination with a view from your database might work.

I do not know what the database structure of your database system is, but we perform similar tasks by marking certain columns as “most recent”. If you do this in the context of a view, and expose this view to Geoserver, as you make updates to your database, the maps will change in accordance with your data. It would seem that you have relatively simple class breaks, which should be able to be represented in the form of a view. I am not so familiar with MySQL, but this is quite strightforward in Postgres and should work in a similar fashion with MySQL.

Thanks for all your help.

I have decided to use geotools directly.
I created a servlet that
   creates a org.geotools.styling.Style
   creates a org.geotools.map.MapContext using that style
   then I output the mapContext using
org.geotools.renderer.lite.StreamingRenderer.

I guess now I just need to learn alot more about SLD.

-Steve More

On 6/22/07, Jason Pickering <jason.p.pickering@anonymised.com> wrote:

As an experienced MapServer and ArcIMS user, let me tell you that GeoServer
is incredibly simple. Geoserver adheres to well documented standards, and
for you case, I think a simple SLD in combination with a view from your
database might work.

I do not know what the database structure of your database system is, but we
perform similar tasks by marking certain columns as "most recent". If you
do this in the context of a view, and expose this view to Geoserver, as you
make updates to your database, the maps will change in accordance with your
data. It would seem that you have relatively simple class breaks, which
should be able to be represented in the form of a view. I am not so familiar
with MySQL, but this is quite strightforward in Postgres and should work in
a similar fashion with MySQL.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users