Comments (13)
I've ran into this exact issue as well. For now I'm sticking with 1.7.4 until things get smoothed out.
from geoapi.
@Gonkers did that work?
@FObermaier is there any way to make this work with the released packages on Nuget? Having to add myget feeds isn't the greatest.
from geoapi.
I think 1.7.5 isn't binary-compatible with 1.7.4 because the coordinate system stuff was split out for licensing reasons. If that's the case, then I would expect it to work after all your dependencies are recompiled.
from geoapi.
Hm. I did a clean and then a rebuild (and even explicitly added the GeoApi.CoordinateSystems
package).
from geoapi.
Actually when I do a 'Peek Definition' it brings me to a file ProjNet4GeoAPI so maybe there's some interaction there.
from geoapi.
Yeah, if I'm not mistaken and there is a binary incompatibility, the latest stable ProjNet4GeoAPI appears not to have anticipated it because its upper-bound on the GeoAPI dependency version is specified as 1.8.0.
from geoapi.
Could you try this package:
https://www.myget.org/feed/nettopologysuite/package/nuget/ProjNET4GeoAPI
from geoapi.
Using ProjNET4GeoAPI v1.4.0-pre014 made no difference for me.
from geoapi.
@Gonkers could you show the csproj (esp. the geoapi reference part and the target framework) and the packages.config (if there is one).
I just set up a new project, added that reference and everything seems ok.
from geoapi.
Web.config
<Reference Include="GeoAPI, Version=1.7.5.0, Culture=neutral, PublicKeyToken=a1a0da7def465678, processorArchitecture=MSIL">
<HintPath>..\packages\GeoAPI.Core.1.7.5\lib\net45\GeoAPI.dll</HintPath>
</Reference>
<Reference Include="GeoAPI.CoordinateSystems, Version=1.7.5.0, Culture=neutral, PublicKeyToken=a1a0da7def465678, processorArchitecture=MSIL">
<HintPath>..\packages\GeoAPI.CoordinateSystems.1.7.5\lib\net45\GeoAPI.CoordinateSystems.dll</HintPath>
</Reference>
<Reference Include="NetTopologySuite, Version=1.14.0.0, Culture=neutral, PublicKeyToken=f580a05016ebada1, processorArchitecture=MSIL">
<HintPath>..\packages\NetTopologySuite.1.14\lib\net45\NetTopologySuite.dll</HintPath>
</Reference>
<Reference Include="NetTopologySuite.IO, Version=1.14.0.0, Culture=neutral, PublicKeyToken=f580a05016ebada1, processorArchitecture=MSIL">
<HintPath>..\packages\NetTopologySuite.IO.1.14.0.1\lib\net45\NetTopologySuite.IO.dll</HintPath>
</Reference>
<Reference Include="NetTopologySuite.IO.GeoTools, Version=1.14.0.0, Culture=neutral, PublicKeyToken=f580a05016ebada1, processorArchitecture=MSIL">
<HintPath>..\packages\NetTopologySuite.IO.1.14.0.1\lib\net45\NetTopologySuite.IO.GeoTools.dll</HintPath>
</Reference>
<Reference Include="NetTopologySuite.IO.MsSqlSpatial, Version=1.14.0.0, Culture=neutral, PublicKeyToken=f580a05016ebada1, processorArchitecture=MSIL">
<HintPath>..\packages\NetTopologySuite.IO.1.14.0.1\lib\net45\NetTopologySuite.IO.MsSqlSpatial.dll</HintPath>
</Reference>
<Reference Include="NetTopologySuite.IO.PostGis, Version=1.14.0.0, Culture=neutral, PublicKeyToken=f580a05016ebada1, processorArchitecture=MSIL">
<HintPath>..\packages\NetTopologySuite.IO.1.14.0.1\lib\net45\NetTopologySuite.IO.PostGis.dll</HintPath>
</Reference>
<Reference Include="NetTopologySuite.IO.ShapeFile, Version=1.14.0.0, Culture=neutral, PublicKeyToken=f580a05016ebada1, processorArchitecture=MSIL">
<HintPath>..\packages\NetTopologySuite.IO.1.14.0.1\lib\net45\NetTopologySuite.IO.ShapeFile.dll</HintPath>
</Reference>
<Reference Include="NetTopologySuite.IO.ShapeFile.Extended, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\NetTopologySuite.IO.1.14.0.1\lib\net45\NetTopologySuite.IO.ShapeFile.Extended.dll</HintPath>
</Reference>
<Reference Include="ProjNET, Version=1.4.0.0, Culture=neutral, PublicKeyToken=a1f5bdcd9c6f5740, processorArchitecture=MSIL">
<HintPath>..\packages\ProjNET4GeoAPI.1.4.0-pre014\lib\net45\ProjNET.dll</HintPath>
</Reference>
Packages.config
<package id="GeoAPI" version="1.7.5" targetFramework="net462" />
<package id="GeoAPI.CoordinateSystems" version="1.7.5" targetFramework="net462" />
<package id="GeoAPI.Core" version="1.7.5" targetFramework="net462" />
<package id="NetTopologySuite" version="1.14" targetFramework="net462" />
<package id="NetTopologySuite.IO" version="1.14.0.1" targetFramework="net462" />
<package id="ProjNET4GeoAPI" version="1.4.0-pre014" targetFramework="net462" />
from geoapi.
You are mixing NTS 1.14 with GeoAPI 1.7.5.
That is bound to fail. Try the IO packages from the myget stream where you got the ProjNET package from. They are bundled differently, though.
from geoapi.
Okay thanks for the suggestion. I'll try that.
from geoapi.
Should be fixed in the latest packages now, see NetTopologySuite/ProjNet4GeoAPI#31 for the test I ran.
Feel free to reopen if that didn't actually fix it for you.
from geoapi.
Related Issues (20)
- Get permissions from all contributors (at least all who have made significant changes) to agree to license change. HOT 6
- Relicense GeoAPI.Core under BSD3 HOT 1
- Should ILineString include Count? HOT 5
- Is the GeoAPI 1.7.5 Nuget package missing dll's? HOT 1
- It looks like GeoAPI.Geometries.IGeometry.Intersection doesn't carry over data in the UserData property. HOT 4
- Remove GeometryServiceProvider.Instance HOT 4
- Remove obsolete interfaces, classes and members HOT 1
- Future of Coordinate class HOT 1
- [question] Typescript definition for geoapi HOT 1
- CoordinateXY.CompareTo(object) is incorrect HOT 3
- Remove ICloneable implementations across the board
- Target just .NET Standard 2.0
- Remove reflection-based GeometryServiceProvider.Instance bootstrap HOT 1
- Remove redundant interface members HOT 2
- Replace notable interfaces with abstract classes, for multiple reasons HOT 8
- Reconsider use of SerializableAttribute HOT 2
- Remove (standalone) GeoAPI HOT 13
- support .NET core 3.0 HOT 2
- Serialization BUG
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoapi.