3

I'm developing a GIS application with java Spring Framework and GeoTools library. I have some vector layer. I want to get this layers with wms and wfs protocols.
I've downloaded geoserver code. It includes module as bellow:

  • Main Module
  • Core Platform Module
  • Web Map Service Module
  • Web Feature Service Module
  • and etc.

Can I use Web Map Service Module and Web Feature Service Module of Geoserver in my project?
If yes, How?
I want a sample code to use these modules apart from geoserver. Help me please.

4
  • Yes you can. How I don't know. I've never done it. A suggestion to ease the burden of porting code would be to deploy and configure a GeoServer Web Server as part of your deployment. But since you don't talk much about the deployment/structure of your GIS application I'm unsure if this suggestion is appropriate. If it just a desktop app then it is perhaps not appropriate.
    – Brett Walker
    Commented Jun 14, 2015 at 8:25
  • Are you using Maven as your build tool? GeoServer uses it to help manage dependencies. It would help in using these GeoServer modules in your project and manage the 3rd party dependencies.
    – Brett Walker
    Commented Jun 14, 2015 at 10:31
  • yea I'm using Maven. it's here Commented Jun 14, 2015 at 10:36
  • I would direct you enquires to the Developers Mailing List. Sign up for access to this list here geoserver.org/comm
    – Brett Walker
    Commented Jun 14, 2015 at 10:54

2 Answers 2

2

You can check the code out of the repository and do pretty much anything you like with it. You might also want to look at the GeoTools code that underlies much of the GeoServer code.

GeoServer code is licensed under the GPL - so there are some restrictions on what you can do with it, mostly related to releasing programs without releasing your changes to the buyer/public.

The GeoTools code is licensed under the LGPL which is slightly more relaxed.

1

I would deploy GeoServer as a companion Web App. It has many configuration options, security features and a good user interfaces to control it.

If you don't want to expose a whole GeoServer Web App you could put a proxy in front of it and only expose the URLs that allows appropriate access to the layers via WMS and WFS.

Let GeoServer control access to your data, and then you can worry about developing you GIS application. Don't re-invent the wheel, and don't make it harder for yourself.

1
  • I'm not allowed using geoserver. I'm only allowed to using web map service and web feature service modules. For this reason, I only want to add these modules to my project and then use it. Commented Jun 14, 2015 at 10:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.