Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DotSpatial.Topology vs. DotSpatial.GeoAPI #14

Open
ragapack opened this issue Dec 19, 2016 · 0 comments
Open

DotSpatial.Topology vs. DotSpatial.GeoAPI #14

ragapack opened this issue Dec 19, 2016 · 0 comments

Comments

@ragapack
Copy link

ragapack commented Dec 19, 2016

Hi Felix,

As I need to correct some bugs in my application I switched to DS1.9 using the actual changeset
https://github.com/DotSpatial/DotSpatial/tree/5fcdd48792659b71b06458b8843e68486d07699e
In this set some expression errors are fixed.
In this set the DotSpatial.Topology is not included it use the DotSpatial.GeoAPI

I downloaded your last DotSpatial.Plugins.BruTileLayer version for 1.9 and compiled with DS 1.9 from the nuget package of DS
But somthing seems diferente between the two 1.9 versions.
I get an error at the DotSpatial.Controls.MapFrame.cs

// First draw all the vector content
            foreach (IMapLayer layer in Layers)
            {
                if (layer.VisibleAtExtent(ViewExtents)) layer.DrawRegions(args, regions);
            }


System.MissingMethodException was unhandled by user code
HResult=-2146233069
Message=Método não encontrado: 'DotSpatial.Topology.Coordinate DotSpatial.Data.Extent.get_Center()'.
Source=DotSpatial.Plugins.BruTileLayer
StackTrace:
em DotSpatial.Plugins.BruTileLayer.BruTileLayer.DrawRegions(MapArgs args, List1 regions) em DotSpatial.Controls.MapFrame.Initialize(List1 regions) na C:\Dev\Source\DotSpatial-5fcdd48792659b71b06458b8843e68486d07699e\Source\DotSpatial.Controls\MapFrame.cs:linha 322
em DotSpatial.Controls.MapFrame.Initialize() na C:\Dev\Source\DotSpatial-5fcdd48792659b71b06458b8843e68486d07699e\Source\DotSpatial.Controls\MapFrame.cs:linha 356
em DotSpatial.Controls.MapFrame.ResetBuffer() na C:\Dev\Source\DotSpatial-5fcdd48792659b71b06458b8843e68486d07699e\Source\DotSpatial.Controls\MapFrame.cs:linha 285
em DotSpatial.Controls.MapFrame.set_ViewExtents(Extent value) na C:\Dev\Source\DotSpatial-5fcdd48792659b71b06458b8843e68486d07699e\Source\DotSpatial.Controls\MapFrame.cs:linha 807
em DotSpatial.Controls.MapFrame.LayerColection_LayerAdded(Object sender, LayerEventArgs e) na C:\Dev\Source\DotSpatial-5fcdd48792659b71b06458b8843e68486d07699e\Source\DotSpatial.Controls\MapFrame.cs:linha 1272
em System.EventHandler1.Invoke(Object sender, TEventArgs e) em DotSpatial.Symbology.LayerEventList1.OnLayerAdded(Object sender, LayerEventArgs e) na C:\Dev\Source\DotSpatial-5fcdd48792659b71b06458b8843e68486d07699e\Source\DotSpatial.Symbology\LayerEventList.cs:linha 368
em DotSpatial.Symbology.LayerEventList1.OnIncludeComplete(T item) na C:\Dev\Source\DotSpatial-5fcdd48792659b71b06458b8843e68486d07699e\Source\DotSpatial.Symbology\LayerEventList.cs:linha 241 em DotSpatial.Serialization.BaseCollection1.Add(T item) na C:\Dev\Source\DotSpatial-5fcdd48792659b71b06458b8843e68486d07699e\Source\DotSpatial.Serialization\BaseCollection.cs:linha 67
em DotSpatial.Controls.MapLayerCollection.Add(IMapLayer layer) na C:\Dev\Source\DotSpatial-5fcdd48792659b71b06458b8843e68486d07699e\Source\DotSpatial.Controls\MapLayerCollection.cs:linha 120
em _xmlGeo01.Form1._buttonAddOSMLayer_ExecuteEvent(Object sender, ExecuteEventArgs e) na C:\Dev\Source\DevXmlGeo01\DevXmlGeo01_v19\Form1.vb:linha 2191
em RibbonLib.Controls.Events.ExecuteEventsProvider.Execute(ExecutionVerb verb, PropertyKeyRef key, PropVariantRef currentValue, IUISimplePropertySet commandExecutionProperties)
InnerException:

Trying to compile the DotSpatial.Plugins.BruTileLayer with the
https://github.com/DotSpatial/DotSpatial/tree/5fcdd48792659b71b06458b8843e68486d07699e
set, I get an error message in relation of coordinates in your code.
If you have any idea how to solve this please let me know.
Thank you
Thomas Erbacher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant