kekscom / osmbuildings

OSM Buildings Classic 2.5D
http://osmbuildings.org
BSD 2-Clause "Simplified" License
505 stars 140 forks source link

Strange height difference #67

Closed gijs closed 9 years ago

gijs commented 10 years ago

I'm experiencing some really strange height differences.

I have buildings data in GeoJSON format for all of the Netherlands. The western part of the country seems to render at a normal height:

screen shot 2014-09-02 at 15 01 15

The more I pan to the east, the higher the buildings get:

screen shot 2014-09-02 at 15 01 27

Samples of the GeoJSON are supplied below.

I'm not sure where to look for the cause of this problem. Could it be (re-) projection related? The source projection is EPSG:28992 (RD New) Or could it be a precision problem?

Thanks in advance for any help/advice.

Gijs

Amsterdam (http://www.zonnegrens.nl/map/?lat=52.37322&lon=4.89247&z=20):

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "height": 17,
        "bool": false
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              4.89993354239804,
              52.3708367341733
            ],
            [
              4.89987439194275,
              52.3707422006873
            ],
            [
              4.89987379990658,
              52.3707412904921
            ],
            [
              4.8998051891983,
              52.3707580577633
            ],
            [
              4.89987972075926,
              52.370877325849
            ],
            [
              4.89987883720171,
              52.3708775558929
            ],
            [
              4.89989920249943,
              52.3709097438037
            ],
            [
              4.89990847531739,
              52.370907741757
            ],
            [
              4.90000157132016,
              52.3708876508629
            ],
            [
              4.89998040176527,
              52.3708538149097
            ],
            [
              4.89994747595286,
              52.37086092351
            ],
            [
              4.89991800906693,
              52.370867282381
            ],
            [
              4.8999030157715,
              52.3708433223598
            ],
            [
              4.89993354239804,
              52.3708367341733
            ]
          ]
        ]
      }
    },

Dinxperlo (http://www.zonnegrens.nl/map/?lat=51.86382&lon=6.48785&z=20):

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "height": 27,
        "bool": false
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              6.48636699131263,
              51.863480483069
            ],
            [
              6.48634792934116,
              51.8634829177912
            ],
            [
              6.48636493128138,
              51.8635358298366
            ],
            [
              6.48640392817895,
              51.8635310331113
            ],
            [
              6.48641455059114,
              51.8635640941815
            ],
            [
              6.48644038397621,
              51.8636445018674
            ],
            [
              6.48653999779212,
              51.863632575497
            ],
            [
              6.48651416423625,
              51.8635521678334
            ],
            [
              6.48645799502885,
              51.863558896233
            ],
            [
              6.48643035406145,
              51.8634728423866
            ],
            [
              6.48641147640918,
              51.8634750956128
            ],
            [
              6.48636699131263,
              51.863480483069
            ]
          ]
        ]
      }
    },
kekscom commented 10 years ago

Sorry for seeing this too late. I'll check!

gijs commented 10 years ago

Thanks, that'd be great!

kekscom commented 10 years ago

I've tried a checkout of version 0.1.9a and it works fine with you data. Could you make sure to use the same verson or latest release 0.2.0b - but you would need to adapt your data service to TMS like schema then.

gijs commented 9 years ago

I've tried with that version as well, and it seems that you're right. Sorry for the late response and thanks for helping me out.