Replies: 20 comments
|
I am using Martin 0.17.0. |
|
I am having a bit of trouble to reproduce this. Could you give me
If thait is not possible:
Tip The file-size is not a good indicator of data being present as using the |
|
This is my table definition This is a sample data by query |
|
This is the full log of martin-cp |
|
It seems to be related to how the bbox is handled. If I ommit it, it is emmitted as it should
Here is the bbox that you have selected. It does not include the linestring. http://bboxfinder.com/#72.004000,0.829000,137.834000,55.827000 I think you have a bug either in your coordiante conversion or lat/lon issue? |
|
maybe also something is different in how you store the coordiantes. But check first that the bbox actually contains what you want to select |
|
I think it is related to the coordinate system of z,x,y calculated by martin-cp. I checked the source code of martin-cp and it is based on the epsg:3857 coordinate system to generate z,x,y, but my custom function is based on epsg:4490 |
|
This is a sample data |
|
As I said, proper insert statement with which projection both insereted data and table geometry collumn is. Otherwise, we are talking past each other |
|
This is an insert statement,thanks |
query result |
|
so actually, the bbox you have is this http://bboxfinder.com/#0.829000,72.004000,55.827000,137.834000 not the bbox that I accidentally thought you had. we look into these tile ranges: TileRect {
zoom: 1,
min_x: 1,
min_y: 0,
max_x: 1,
max_y: 0,
},
TileRect {
zoom: 2,
min_x: 2,
min_y: 1,
max_x: 3,
max_y: 1,
},
TileRect {
zoom: 3,
min_x: 5,
min_y: 2,
max_x: 7,
max_y: 3,
},
TileRect {
zoom: 4,
min_x: 11,
min_y: 5,
max_x: 14,
max_y: 7,
},
TileRect {
zoom: 5,
min_x: 22,
min_y: 10,
max_x: 28,
max_y: 15,
},
TileRect {
zoom: 6,
min_x: 45,
min_y: 20,
max_x: 56,
max_y: 31,
},
TileRect {
zoom: 7,
min_x: 90,
min_y: 41,
max_x: 112,
max_y: 62,
},
TileRect {
zoom: 8,
min_x: 180,
min_y: 82,
max_x: 224,
max_y: 124,
},
TileRect {
zoom: 9,
min_x: 360,
min_y: 164,
max_x: 448,
max_y: 249,
},
TileRect {
zoom: 10,
min_x: 720,
min_y: 329,
max_x: 897,
max_y: 499,
},
]example range, not containing any values Select x,y,10 as z FROM generate_series(720, 897) as x, generate_series(329, 499) as y where length(f_lrdl_4490(x,y,10)) != 0Could you select if your function returns values for these ranges? If none of these match, either your custom projection logic is wrong or we generate the rectangles. |
|
I executed this sql and returned 0 records. |
|
Also, what I asked before but never got an aswer: What is the SRD of the table? I somewhat assume SELECT UpdateGeometrySRID('pdc_lrdl','smgeometry',4490); |
|
Have you tried writing your function as we recomend here: https://maplibre.org/martin/sources-pg-functions.html#simple-function Your projection logic seems.. sus. |
yes,the srid of table is 4490. |
I've tried this way of writing, but the released service has a big offset under EPSG:4490. |
|
I know about 4490, but how does this offset affect us as a tileserver? You should not tamper with that offset as you likely know. |
|
I convered it to an discussion as I currently don't see clear evidence of a feauture, doc improvement or bug. |


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This is my custom function to achieve the conversion of 4490 coordinate system
It can be accessed and loaded normally, the following is a screenshot of the loading
This is the configuration file config.yaml of martin-cp
This is the command I used to generate tiles using martin-cp
The generated f_lrdl_4490.mbtiles file is only 12MB. After publishing it to the service, I found that there is data only when z=1, x=1, y=0. Through database query, I found that the data returned by f_lrdl_4490(1, 1, 0) is indeed 12MB. Can martin-cp only generate the first level for custom functions?
All reactions