From: Edwin C. <com...@gm...> - 2009-08-09 21:20:03
|
Hi Cameron, *GetFeatureInfo*: Abdelhadi is right about the feature info on a WMS. You would need a WMS server that supports GetFeatureInfo. GeoServer supports GetFeatureInfo requests for example, as does MapServer. Be careful: the GetFeatureInfo response has not been standardized by the OGC. Since OpenLayers 2.8, OpenLayers has WMSGetFeatureInfo control that abstracts over several different GetFeatureInfo response formats. I will add support for that control to GWT-OL. *Thematic mapping*: That is something I think you would have to achieve using SLD's (Styled Layer Descriptors). Since SLD's can get quite big, in our company we wrote a proxy for performing GetMap POST requests with custom SLD's. That proxy is closed source however. You will have to roll your own variant. *Printing*: Printing is always a bit problematic in my experience. You will probably want to build a PDF server side with the information on the map. If the map consists only of pictures (WMS layer, Legend graphics) then you can get quite far with some server side code and a PDF generation framework. There is one open source printing solution that I know of, and that is the MapPrintService in the MapFish framework. At the core it is a Java servlet and right now I am guessing it uses some Java PDF generation library. Printing vector features is a little more challenging. A simple solution for printing is to provide a separate page with a clone of the map in you app, and use the browser to print that. In my experience the vector features get printed also, but you have little control over the printing process itself. Greetings, Edwin Commandeur 2009/8/7 AbdElhadi <abd...@gm...> > Hi Cameron, > > I don't think you can get the feature info from a WMS layer unless the WMS > Server supports the GetFeatureInfo. a WMS is basically just an image. > > AS for Thematics, I don't think OL supports that but I am not sure. > > Cheers, > -Abdelhadi > On Thu, Aug 6, 2009 at 11:34 PM, Cameron Hunt <CH...@ci...> wrote: > >> Hi, >> >> >> >> I’ve just started using GWT-Openlayers and so far it looks great. Having >> said that I’ve only done a few basic things. I would very much appreciate it >> if somebody could give me a couple of quick pointers in the right direction >> for the following tasks please? >> >> >> >> - Finding out the information about an object (e.g. polygon) when user >> clicks on map (based on shapefile loaded in as WMS layer) >> - Thematic mapping (e.g. shading all polygons based on an attribute). >> - Printing. How do people provide basic printing to their users? >> >> >> >> Thank you. >> >> >> >> Regards, >> >> Cameron Hunt >> Software Developer >> Civica Solutions Pty Limited >> >> Ph: (07) 46393633 >> Fx: (07) 46393632 >> ch...@ci... >> www.civica.com.au >> >> >> >> -- >> >> This email is from Civica Pty Limited and it, together with >> any attachments, is confidential to the intended recipient(s) >> and the contents may be legally privileged or contain >> proprietary and private information. It is intended solely >> for the person to whom it is addressed. If you are not an >> intended recipient, you may not review, copy or distribute >> this email. If received in error, please notify the sender >> and delete the message from your system immediately. Any >> views or opinions expressed in this email and any files >> transmitted with it are those of the author only and may >> not necessarily reflect the views of Civica and do not create >> any legally binding rights or obligations whatsoever. Unless >> otherwise pre-agreed by exchange of hard copy documents >> signed by duly authorised representatives, contracts may not >> be concluded on behalf of Civica by email. Please note that >> neither Civica nor the sender accepts any responsibility for >> any viruses and it is your responsibility to scan the email >> and the attachments (if any). All email received and sent by >> Civica may be monitored to protect the business interests of >> Civica. >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gwt-openlayers-users mailing list >> Gwt...@li... >> https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users >> >> > > > -- > Abdelhadi > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > |