This project is read-only.

WMS parameters

Jul 23, 2012 at 3:37 PM
Edited Jul 23, 2012 at 3:38 PM

In DemoMap from the latest DotSpatial version I set the bellow address on WMS Server Parameters window:

http://services.geopedia.si/wms/wms_4ype79g8?request=GetCapabilities

Clicking on the Get capabilities button produces bellow error:

************** Exception Text **************System.NullReferenceException: Object reference not set to an instance of an object.   at DotSpatial.Plugins.WebMap.WMS.WMSClient.ParseLayer(XmlNode xmlLayer) in C:\dotspatial-67177_SPATIAL\DotSpatial.Plugins.WebMap\WMS\WMS.cs:line 530   at DotSpatial.Plugins.WebMap.WMS.WMSClient.ParseLayer(XmlNode xmlLayer) in C:\dotspatial-67177_SPATIAL\DotSpatial.Plugins.WebMap\WMS\WMS.cs:line 478   at DotSpatial.Plugins.WebMap.WMS.WMSClient.ParseCapability(XmlNode xnCapability) in C:\dotspatial-67177_SPATIAL\DotSpatial.Plugins.WebMap\WMS\WMS.cs:line 324   at DotSpatial.Plugins.WebMap.WMS.WMSClient.ParseCapabilities(XmlDocument doc) in C:\dotspatial-67177_SPATIAL\DotSpatial.Plugins.WebMap\WMS\WMS.cs:line 230

Please for help while this address is working well with another GIS tool.

Regards, Vojko

Jul 23, 2012 at 8:32 PM

It looks like that service doesn't follow the correct standard for v1.3. I can tell there is some commented out code that would produce a CRS, but the actual implementation produces a SRS. You can view http://services.geopedia.si/wms/wms_4ype79g8?request=GetCapabilities to see this. V 1.3 is expecting a CRS in the BoudingBox tag.

Jul 24, 2012 at 11:45 AM
Edited Jul 24, 2012 at 1:23 PM

Now layers from our WMS provider can be seen with this both command:

http://services.geopedia.si/wms/wms_4ype79g8?request=GetCapabilities&VERSION=1.3.0

http://services.geopedia.si/wms/wms_4ype79g8?request=GetCapabilities&VERSION=1.3.0&WIDTH=447&HEIGHT=334&LAYERS=b2&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=506000,113000,535000,137000&CRS=EPSG:3912

But map is not visible it shows only a small point.

When I run SpatiaLite GUI command Show Spatial Metadata it shows SRID EPSG code 2170 and MGI / Slovenia Grid with these data:

+proj=tmerc +lat_0=0 +lon_0=15 +k=0.9999 +x_0=500000 +y_0=0 +ellps=bessel +towgs84=577.326,90.129,463.919,5.137,1.474,5.297,2.4232 +units=m +no_defs 

But these are only standard data for EPSG2170 while loading shp into database must declare 2170 srid number.


Our WMS provider uses the EPSG:3912 which data can you see here: 

http://www.epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:crs:EPSG::3912&reportDetail=short&style=urn:uuid:report-style:default-with-code&style_name=OGP%20Default%20With%20Code&title=EPSG:3912

My shapes are with these projections data:

PROJCS["gauss_krueger_SLO", GEOGCS["GCS_Hermannskogel", DATUM["D_Hermannskogel", SPHEROID["Bessel_1841", 6377397.155, 299.1528128]], PRIMEM["Greenwich", 0.0], UNIT["degree", 0.017453292519943295], AXIS["Longitude", EAST], AXIS["Latitude", NORTH]], PROJECTION["Transverse_Mercator"], PARAMETER["central_meridian", 15.0], PARAMETER["latitude_of_origin", 0.0], PARAMETER["scale_factor", 0.9999], PARAMETER["false_easting", 500000.0], PARAMETER["false_northing", -5000000.0], UNIT["m", 1.0], AXIS["x", EAST], AXIS["y", NORTH], AUTHORITY["EPSG","21700"]]

I just tested this link http://sourceforge.net/projects/jump-pilot/files/OpenJUMP/1.5.2/
where declare WMS with http://services.geopedia.si/wms/wms_4ype79g8?request=GetCapabilities
and load my SHP file and all match exactly as it should be.

I think that this problem is about "reprojection" as we are discussing in http://dotspatial.codeplex.com/discussions/362778#post889245

Regards, Vojko

Jul 27, 2012 at 10:27 AM

I am sorry for bad information on projection data, now I have veryfied projection data from our national map provider.

This is projection GK D48 data for original CEV_PLIN.SHP which we like to transform:
 
PROJCS["D48_Slovenia_TM",GEOGCS["GCS_D48",DATUM["D_D48",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",-5000000.0],PARAMETER["Central_Meridian",15.0],PARAMETER["Scale_Factor",0.9999],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]

 

And this is projection file for our CEV_PLIN_GOOGLE.SHP witch exactlly match with Google Satelite from your DemoMap:

GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]


Now I really want if you could see how to run projection on fly or any other with above projections data.

Is there any hope to work with maps from our local provider? At last I reported that this command:

http://services.geopedia.si/wms/wms_4ype79g8?request=GetCapabilities&VERSION=1.3.0

works OK, I see there all the layers to choose but map is not visible it shows only a small point.

Regards, Vojko

How could I send you small SHP files?

Jul 27, 2012 at 10:32 AM

Sorry mudnug to reply but I do not know how to send you two small zip files. So I go this way.
If you have time please see my problems with projection.

I am sorry for bad information on projection data, now I have veryfied projection data from our national map provider.

This is projection GK D48 data for original CEV_PLIN.SHP which we like to transform:

PROJCS["D48_Slovenia_TM",GEOGCS["GCS_D48",DATUM["D_D48",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",-5000000.0],PARAMETER["Central_Meridian",15.0],PARAMETER["Scale_Factor",0.9999],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]

And this is projection file for our CEV_PLIN_GOOGLE.SHP witch exactlly match with Google Satelite from your DemoMap:

GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]


Now I really want if you could see how to run projection on fly or any other with above projections data.

Is there any hope to work with maps from our local provider? At last I reported that this command:

http://services.geopedia.si/wms/wms_4ype79g8?request=GetCapabilities&VERSION=1.3.0

works OK, I see there all the layers to choose but map is not visible it shows only a small point.

Regards, Vojko

See attached SHP files?

----- Original Message -----
From: [email removed]
To: [email removed]
Sent: Monday, July 23, 2012 9:32 PM
Subject: Re: WMS parameters [DotSpatial:387783]

From: mudnug

It looks like that service doesn't follow the correct standard for v1.3. I can tell there is some commented out code that would produce a CRS, but the actual implementation produces a SRS. You can view http://services.geopedia.si/wms/wms_4ype79g8?request=GetCapabilities to see this. V 1.3 is expecting a CRS in the BoudingBox tag.

Jul 27, 2012 at 8:19 PM

That's a bug or missing feature. See http://dotspatial.codeplex.com/workitem/22174