!fJlCtKdpMHgXoEvxTO:matrix.org

OSGeo General

525 Members
Open Source Geospatial Foundation - chat about anything | http://www.osgeo.org | code of conduct: https://www.osgeo.org/code_of_conduct/ | Logs at https://view.matrix.org/alias/%23general:osgeo.org46 Servers

Load older messages


SenderMessageTime
15 Apr 2024
@latot:matrix.orglatotstill, be able to have consistency on the results only in UTM is enough for most cases, I think this is so useful that would be great to know which spatial operations has this.21:27:22
@robe:osgeo.orgRegina Obealthough thinking about it more, hmm that might not help much21:27:32
@latot:matrix.orglatotso we don't need to rely on 4326 that much21:27:34
@latot:matrix.orglatot
In reply to @robe:osgeo.org
although thinking about it more, hmm that might not help much
why?
21:27:44
@robe:osgeo.orgRegina ObeWhen you go from degrees to unit preserving all bets are off for longish areas21:28:19
@robe:osgeo.orgRegina Obe pramsey: Thought on what latot is asking? 21:28:52
@robe:osgeo.orgRegina Obe@lalot using ST_Segmentize in geography is very useful. What I do is ST_Segmentize(geog, 10000)::geometry - -then reproject to other units as needed21:29:48
@latot:matrix.orglatot
In reply to @robe:osgeo.org
When you go from degrees to unit preserving all bets are off for longish areas
sorry, can't get very well the idea of that, not enough translation skills!
21:30:11
@robe:osgeo.orgRegina Obecause if you do straight up ST_Transform(geog::geometry,whatever) for longish areas, it will be off, because you need to consider more curvature of earth21:30:36
@robe:osgeo.orgRegina ObeIt's hard even if you are an english speaker, I find it hard to think of too, so I'm probably not expressing the concept well21:31:14
@robe:osgeo.orgRegina ObeTake for example the picture in the docs here -- https://postgis.net/docs/en/ST_Segmentize.html21:31:34
@robe:osgeo.orgRegina Obeif you start off with a really long line, and you try to transform to another spatial reference, you still end up with a straight line21:32:00
@robe:osgeo.orgRegina Obe The problem with trying to segmentize in planar space though, is those points you get along the 2 point line for large linestring is not on the linestring, so you would still get wrong answers trying to do ST_Transform( ST_Segmentize(ST_GeomFromText(''',4326), 0.0001), some_measure_preserving) 21:34:43
@robe:osgeo.orgRegina Obebut anyway when you are at that point, the measure preserving would probably be still wrong, since it wouldn't properly support your long linestring anyway. Not sure there is a formula you can use to determine when it's safe and not safe21:35:34
@robe:osgeo.orgRegina Obe pramsey: might have some ideas on that 21:35:43
@robe:osgeo.orgRegina ObeHey I just realized we are talking in general channel -- we should be talking in #postgis channel21:36:13
@latot:matrix.orglatotI thought this channel was for this topic, to keep postgis and gdal ones, only for their respective topics21:36:49
@robe:osgeo.orgRegina Obeoh nevermind, maybe my head is too much in PostGIS I assumed you were talking about PostGIS specifically21:37:22
@latot:matrix.orglatotdon't worry, ppl in postgis channel is a lot more flexible with it, is usual to use that channel for general talk too21:38:16
@latot:matrix.orglatotcoherence between CRS in this way seems pretty hard... even if there is a safe way to do it, is like can only be handled for two CRS, while more CRSs exists, the max distance for st_segmentize would decrease until is not useful... Still would be great be able to handle on the transformations, a safe way to transform linestrings21:40:23
@latot:matrix.orglatottime to go here, time to gym!22:12:20
@latot:matrix.orglatotsee later all, thx :D22:12:34
16 Apr 2024
@telegram_746203488:t2bot.ioAdrián Isidro Yoris changed their display name from Adrian to Adrián Isidro Yoris.07:45:07
@telegram_1248944140:t2bot.ioJavier Jimenez ShawHere are my two cents: I think there are two different problems regarding the reprojection of a polyline. One is the segments connecting the points. They are usually a "straight line" in the selected CRS. That straight line does not have to be a great circle. They are different depending on the projection. The typical example is that the shortest distance (a great circle) is a non straight line in a map. There are tons of examples in the Internet (the line between New York and Lisbon). For the Mercator projection the line between two points is a loxodromic curve, that has a constant bearing. How does any algorithm that add points to a polyline is depending on the algorithm, that may change. Using the great circle (or geodesic) does not have to be always the needed way. Linear interpolation is a common practice, but you should know it is not the shortest distance. That can produce the issue of two lines that intersect in one projection but not in another one. Well, the question is how are you connecting the dots, specially if the points are far apart. Another different problem is the distortion of any projection. That means that measuring a distance or an area on a projected map (like using a ruler on a printed map and applying the scale) has always some distortion, and does not match that measurement in the "Real World (TM)". If the area of use is small, and the proper projection is selected, the distortion can be small. If your distances are big, then you have to deal with it. That means for instance that the area of a country does not have a "unique answer"... depends on the CRS used (or the ellipsoid used if you measure in geographic coordinates doing some complicated trigonometry). That said, mathematically speaking, if you create "infinite" points in a polyline (the segments are differential), and ignoring singularities and antimeridians in the projections, two lines intersect in the same points, regardless of the projection. But of course, this is undoable in a computer.07:52:29
@irc_libera.chat_hightower3:osgeo.org@irc_libera.chat_hightower3:osgeo.org left the room.11:16:38
@irc_libera.chat_hightower2:osgeo.orghightower2 joined the room.13:19:54
@irc_libera.chat_andreaerdna:osgeo.org@irc_libera.chat_andreaerdna:osgeo.org joined the room.18:37:15
@irc_libera.chat_andreaerdna:osgeo.org@irc_libera.chat_andreaerdna:osgeo.org left the room.18:38:59
@irc_libera.chat_phma:osgeo.orgphma left the room.20:39:21
@irc_libera.chat_phma:osgeo.orgphma joined the room.20:40:13

Show newer messages


Back to Room ListRoom Version: