[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fdo-commits
Subject:    [fdo-commits] r6435 - branches/3.7/Providers/WMS/Src/Provider
From:       svn_fdo () osgeo ! org
Date:       2012-04-09 4:17:25
Message-ID: 20120409041725.CE6A7390398 () trac ! osgeo ! org
[Download RAW message or body]

Author: samwang
Date: 2012-04-08 21:17:25 -0700 (Sun, 08 Apr 2012)
New Revision: 6435

Modified:
   branches/3.7/Providers/WMS/Src/Provider/FdoWmsCapabilities.cpp
Log:
Reviewed by Romica Dascalescu<Romica.Dascalescu@autodesk.com> 
Ticket 818: WMS provider: Prevent empty CRS or SRS names added to layer's CRS name \
collection

This defect happens when the layer CRS name specified in the response of WMS serivce \
returned by "Get Capabilities" request is empty. For example,  \
http://wms.alaskamapped.org/bdl?version=1.3.0.

So this leads to problem, when user try to serialize the spatial context to an XML \
file. What we do is simply filter out empty CRS name and not add it to collection. 

Verified for both 32 bit and 64 bit provider.


Modified: branches/3.7/Providers/WMS/Src/Provider/FdoWmsCapabilities.cpp
===================================================================
--- branches/3.7/Providers/WMS/Src/Provider/FdoWmsCapabilities.cpp	2012-04-05 \
                16:26:29 UTC (rev 6434)
+++ branches/3.7/Providers/WMS/Src/Provider/FdoWmsCapabilities.cpp	2012-04-09 \
04:17:25 UTC (rev 6435) @@ -150,7 +150,7 @@
 	for (FdoInt32 i=0; i<cntNames; i++)
 	{
 		FdoStringP crsName = crsNames->GetString (i);
-		if (names->IndexOf (crsName) == -1)
+		if (crsName != L"" && names->IndexOf (crsName) == -1)
 		{
 			names->Add (crsName);
 		}

_______________________________________________
fdo-commits mailing list
fdo-commits@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic