Giter VIP home page Giter VIP logo

Comments (13)

Gonkers avatar Gonkers commented on September 23, 2024 1

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.

kjeremy avatar kjeremy commented on September 23, 2024 1

@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.

airbreather avatar airbreather commented on September 23, 2024

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.

kjeremy avatar kjeremy commented on September 23, 2024

Hm. I did a clean and then a rebuild (and even explicitly added the GeoApi.CoordinateSystems package).

from geoapi.

kjeremy avatar kjeremy commented on September 23, 2024

Actually when I do a 'Peek Definition' it brings me to a file ProjNet4GeoAPI so maybe there's some interaction there.

from geoapi.

airbreather avatar airbreather commented on September 23, 2024

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.

FObermaier avatar FObermaier commented on September 23, 2024

Could you try this package:
https://www.myget.org/feed/nettopologysuite/package/nuget/ProjNET4GeoAPI

from geoapi.

Gonkers avatar Gonkers commented on September 23, 2024

Using ProjNET4GeoAPI v1.4.0-pre014 made no difference for me.
image

from geoapi.

FObermaier avatar FObermaier commented on September 23, 2024

@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.

Gonkers avatar Gonkers commented on September 23, 2024

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.

FObermaier avatar FObermaier commented on September 23, 2024

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.

Gonkers avatar Gonkers commented on September 23, 2024

Okay thanks for the suggestion. I'll try that.

from geoapi.

airbreather avatar airbreather commented on September 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.