amillb / pgMapMatch

map-matching of GPS traces
MIT License
77 stars 20 forks source link

Required EPSG Formats #20

Closed tmationmax closed 2 years ago

tmationmax commented 4 years ago

Hi,

I want to use my own data with the package and loaded it into a DB. My GPX file contains coordinates in EPSG 4326, but the table EPSG 28992.

If I execute like that I get:

No streets found within the tolerance of the trace.
You might want to check the projection of the streets table and trace, or the gpsError configuration parameter.
Skipping match. Need at least 3 points in trace

If I convert the table geometries to 4326 I get:

Exception: Streets SRID is 4326. You should use a projected coordinate system. Project your streets geometry column and try again.

Whats the right solution for this issue?

amillb commented 4 years ago

Both the streets and the GPS traces need to be in the same projection (in meters or feet).

So you could convert the coordinates on your GPX file, or you could import the GPX file to a postgres table.