Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nettopologysuite]

A C#/.NET port of JTS Topology Suite, a Java library for GIS operations, (OpenGIS compliant).

0
votes
0answers
6 views

How to convert “linear” polygons to lines using NetTopologySuite?

If I have set of polygons representing country rivers, how to convert them to their linear representation using NetTopologySuite. I did some digging but i was unable to find exact function like Create ...
0
votes
1answer
74 views

Merge feature data rows of a shapefile

I'm using NetTopologySuite to read a shapefile like below code: private FeatureDataTable GetFeatureTableFromShapefile(string shapeFilePath) { GeoAPI.GeometryServiceProvider....
1
vote
2answers
284 views

Using SqlGeometry.MakeValid to get a counter-clockwise polygon in SQL Server

The data I've loaded from a shapefile into a geometry column in SQL Server (using NetTopologySuite) is not producing valid GeoJSON when I export it because it doesn't follow the right-hand rule. I ...
1
vote
0answers
147 views

NearestNeighbour with NetTopologySuite with wgs84

I've got a list of polygons in wgs84 WKB, I read them into NetTopologySuite Igeometries put them into an STRtree and then use the NearestNeighbour function to get the closest polygon to a point (also ...
1
vote
0answers
46 views

This functionality is not supported by Default spatial service. DevArt dotConnect for PostgreSQL error

I want to get geometry data as binary. Its give me an error {"This functionality is not supported by Default spatial service."}. I am searching but nothing found about it. var ilces = db.MaksIlces....
1
vote
0answers
83 views

{“Cannot convert value”} error while save geometry data to postgresql table

I want to add a record to postgresql table with DevArt dotConnect for PostgreSQL component. I use Entity Framework 6 and I add a kind of NuGet packages to my project. SharpMap, NetTopologySuite,GeoAPI....
1
vote
0answers
106 views

Speed up union for tessellating polygons

I'm doing a union of a large number of complicated polygons using nettopologysuite and it is very slow. As these polygons are perfectly tessellating is there something I can do to speed things up? ...
2
votes
1answer
1k views

How to determine if one polygon is contained in another?

Using the Net Topology Suite, what is the easiest way to determine if one polygon is entirely contained in another? Given two independent polygons, A and B, they may overlap, or they may not. If they ...
5
votes
0answers
310 views

How to add geometries using EntityFramework 6, EF designer from database, npgsql and postgis?

I have a postgre database with postgis geometries that i would like to access using Entity framework and npgsql. I tried to go for the "EF designer from database" , but when doing so i only get the ...
1
vote
1answer
473 views

Fixing orientation in Net Topology Suite

I have a MultiPolygon that was created by reading from a GeoJSON string. string geoJson = getGeoJson(); var rdr = new GeoJsonReader(); var multiPolygon = rdr.Read<MultiPolygon>(geoJson); My ...
1
vote
1answer
161 views

How do I obtain the shape at a specific coordinate using NTS

I'm using the .NET NTS library and have the code together to load a KML file. This gives me an instance of IGeometry. Along with this data being loaded, I also have coordinates that I'd like to look ...
0
votes
0answers
331 views

Splitting polygon into three equal parts using NetTopologySuite and C#?

I have a polygon, I want to split it into three equal parts, I have a scenario as below: User must select a vertex on polygon User must add direction to start split on Based on the node and direction ...
1
vote
2answers
136 views

NetTopologySuite polygon is not valid

Can anyone tell me why when I load the following polygon into NetTopologySuite its not valid? When I load it the IsValid property is False MULTIPOLYGON(((120.399269 16.46649, 120.397217 16.46594, 120....
2
votes
1answer
100 views

Style geometry in shapefile with NTS

I am using NTS to generate a shapefile based on users' selection of data in a web interface. Each item selected is represented by a linestring and all relevant dbf data is exported nicely and the user ...
4
votes
3answers
3k views

How do I transform a point using NetTopologySuite?

I'm exploring how we can use NetTopologySuite to address a geoprocessing task. based on some code sample I found, I was able to piece together a sample application that reads a shapefile and checks if ...
0
votes
2answers
1k views

How two add line from point A to B

I am trying to draw a line between two lines. I could create points by using the createPoint Method using System; using System.Collections.Generic; using System.ComponentModel; using System....
3
votes
1answer
848 views

How to tell if a line intersects a polygon not only at endpoints?

How do I do this in .net topology suite or jts? Please see image. Any other library that can I run on .NET is fine, or even a general algorithm if there is no option. For example this answer is only ...
0
votes
3answers
782 views

MS Sql Server 2012 UnionAggregate geometry fails in ArcMap [closed]

I have following two geometries. Geometry 1 (G1): MULTIPOLYGON (((148.134707676 -34.1519003565, 148.143738823 -34.1540810687, 148.14648294 -34.1396863245, 148.143196834 -34.1392361445, 148.140859243 ...
2
votes
1answer
1k views

Intersection between two LineString gives “Non-noded intersection”

I am using NTS in my application and I have two line strings which are as follows: Line String 1: LINESTRING (51055.227410858584 52102.041513978584, 51073.39084032347 52096.46568847251, 51183....
2
votes
2answers
2k views

What is the problem with the polygon? Getting a *“found non-noded intersection”* exception error

I am working on a GIS program in which I needed to find the difference between the two polygons so, I decided to used NetTopologySuite (NTS) to find the difference. It seems to be working on some of ...
5
votes
2answers
2k views

Calculate distance of point along a line using NetTopologySuite

I am looking to calculate the distance along a line of a point using NetTopologySuite. Indications are that the distanceOp may have something to do with it, given that I can a point on a line closest ...
3
votes
2answers
2k views

Get Point at distance on a LineString using NetTopologySuite

I am quite sure there is a function in NTS that actually gets us a point at a distance along a line starting at first vertex. I am using NetTopologySuite version 1.12.1. In Shapely, the python ...
15
votes
1answer
4k views

What is a “non-noded intersection”?

Can someone provide a precise definition of what a "non-noded intersection" is? There are various GIS platforms and toolkits that have errors with this text, and Google search results for this tend to ...
2
votes
1answer
155 views

how to judge the side from a point to a linestring

I'm working with NTS (NetTopologySuite), I get point geometry and a directed linestring, how to judge the side of the point locate with the linestring? one the left side, right side, or just on the ...
1
vote
1answer
855 views

How to convert a CompositeCurve to a NetTopologySuite MultiLineString?

I would like to use NetTopologySuite to convert a CompositeCurve to a MultiLineString. I would like to find some code which shows how to convert this to a MultiLineString: <gml:CompositeCurve ...
3
votes
1answer
7k views

how to reproject the coordinate system from WGS84 to UTM with ProjNET

I'm new to ProjNET and NetTopologySuite, I get some points with Lon/Lat in WGS84, and the distance between two points is not with the unit of meter, so I want to reproject the coordinate system from ...
1
vote
1answer
2k views

How can I make a buffer with xxx meter by NetTopologySuite

I am very new in NetTopologySuite, I work with the coordinatesystem in WGS84 by lon/lat, with the NetTopologySuite. I found the Buffer function to create a buffer with a distance, but how can I make a ...
4
votes
2answers
1k views

Why isn't valid geometry not valid in NetTopologySuite when close to poles?

I have a Polygon which crosses the south pole: Polygon in WKT: POLYGON((5.86826073458095 75.6638564054071,-16.5436836399021 63.2220742891438,-19.3664667294083 59.846221066959,-21.7009816876343 56....