Re: [geotools-dev] Geottols WMS connection with ESRI Server

4 messages Options
Embed this post
Permalink
Jody Garnett-2

Re: [geotools-dev] Geottols WMS connection with ESRI Server

Reply Threaded More More options
Print post
Permalink
Morning Moverton - can I ask you to sign up for the geotools-gt2-users  
list :-) This [hidden email] is not really used; and I am  
not sure how to shut it off.

With respect to ESRI services we have a couple of bug reports in our  
issue tracker; but it sounds like you are hitting some that have not  
been reported yet.

I am not sure about GTCloneUtils; but we did switch to a new feature  
model for GeoTools 2.5.x so updating will be a bit of work if you are  
doing more then WMS.

You should however try GeoTools 2.5.x WMS support to see if it can  
connect to your ESRI server; you could write a test case or download a  
recent uDig app that uses it in order to test (http://udig.refractions.net/download/unstable/ 
).

Let us continue this conversation on the geotools-gt2-users list...

Jody

On 09/09/2009, at 1:04 AM, moverton wrote:

>
> Hello All,
>
> I am attempting to refactor an older in house product that utilizes  
> GeoTools
> 2.4.4. The code currently works with making WMS connections to  
> GeoServer,
> but we would like to also be able to connect to an ESRI map server.  
> When
> just trying to change the URL, I have noticed some strange behavior:  
> the WMS
> getCapabilities request is sent off, but in handling the response,  
> it throws
> and XML parsing error saying that a simple type cannot have any  
> children. I
> am trying to determine if this issue comes from just using an older  
> version
> of GeoTools (unsure of the upgrade due to a gratuitous use of  
> GTCloneUtils
> for cloning), or if there is some fundamental difference in the  
> schema being
> used.
>
> Another bit of interest. I did notice that the ESRI server would not  
> respond
> using gzip compression no matter how the IIS server was configured.  
> So I
> removed that request from the underlying WMS calls to see if that  
> would
> help. All that changed is that I noticed a WMS request with version  
> 1.4,
> then another one with 1.0 before it crapped out and died with the same
> error.
>
> Anyways, if anyone has any tips or advice, I would be grateful. If  
> the HTTP
> requests and subsequent responses would be useful, let me know and  
> I'll go
> grab them (they are on another box not connected to the internet).
>
> Thanks,
> moverton
> --
> View this message in context: http://www.nabble.com/Geottols-WMS-connection-with-ESRI-Server-tp25348001p25348001.html
> Sent from the geotools - dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


------------------------------------------------------------------------------
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
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
moverton

Re: [geotools-dev] Geottols WMS connection with ESRI Server

Reply Threaded More More options
Print post
Permalink
Thanks all for the initial info and direction.

I have indeed tried just a quick WMS client with both 2.4.x and 2.5.x branches, and just changing out the allows me to process a request and parse through the capabilities document correctly.

Jody, you are indeed correct that the program I have inherited does significantly more than just WMS interactions. I have started looking into upgrading to the newest 2.5.7 branch, but I do foresee a fair amount of work in upgrading. The combination of the data model changing, and the gratuitous use of hacks by the previous owners of the code base make it a daunting task.

As to the GTCloneUtils, I believe it was deprecated in the 2.4.x branch, but still used for object cloning in our code base. I noticed that the underlying objects in question do implement Cloneable, so I am unsure whether or not I don't need to handle that or not anymore. I apologize for being vague, but I haven't looked at that part of the code in a while. When I get back to those errors again, I will be able to be more specific there.

At this point, I am trying to determine if the upgrade is really the best path for the project, or if there might be a way to hack together something to deal with the capabilities document that ESRI provides.

Thanks all for your insight and help,

~Moverton
Jody Garnett-2

Re: [geotools-dev] Geottols WMS connection with ESRI Server

Reply Threaded More More options
Print post
Permalink

On 10/09/2009, at 2:50 AM, moverton wrote:

> Thanks all for the initial info and direction.
>
> I have indeed tried just a quick WMS client with both 2.4.x and 2.5.x
> branches, and just changing out the allows me to process a request  
> and parse
> through the capabilities document correctly.
>
> Jody, you are indeed correct that the program I have inherited does
> significantly more than just WMS interactions. I have started  
> looking into
> upgrading to the newest 2.5.7 branch, but I do foresee a fair amount  
> of work
> in upgrading. The combination of the data model changing, and the  
> gratuitous
> use of hacks by the previous owners of the code base make it a  
> daunting
> task.
>

Well let us consider going the other direction; you could back port  
the fixes for the gt-wms plugin. The plugin is pretty darn standalone  
- the only change recently has been from "Style" to "StyleImpl" as a  
geoapi interface we were using was removed.

> As to the GTCloneUtils, I believe it was deprecated in the 2.4.x  
> branch, but
> still used for object cloning in our code base. I noticed that the
> underlying objects in question do implement Cloneable, so I am unsure
> whether or not I don't need to handle that or not anymore. I  
> apologize for
> being vague, but I haven't looked at that part of the code in a  
> while. When
> I get back to those errors again, I will be able to be more specific  
> there.

No worries - user list is here for discussion. In general clone is not  
used much by modern java programs (since the API contract is odd  
enough you can almost never trust people to get it right). We have  
explicit deep copy visitors for expression and style which should be  
used instead.

> At this point, I am trying to determine if the upgrade is really the  
> best
> path for the project, or if there might be a way to hack together  
> something
> to deal with the capabilities document that ESRI provides.

See above.  You can also review the various support organisations  
listed on the wiki; I imagine it would be 1-2 days work to backport  
the wms fixes and issue a new 2.4.x release.

Jody

------------------------------------------------------------------------------
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
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
moverton

Re: [geotools-dev] Geottols WMS connection with ESRI Server

Reply Threaded More More options
Print post
Permalink
In reply to this post by Jody Garnett-2
I have to admit, I kind of like the idea of pack porting the new code to the old release. I will do some work there and see what I can come up with. Thanks for the suggestion!

~Moverton