Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin Display Issues #7

Open
mruknowme opened this issue Jan 28, 2023 · 1 comment
Open

Admin Display Issues #7

mruknowme opened this issue Jan 28, 2023 · 1 comment

Comments

@mruknowme
Copy link

Installed the plugin and added:

"location": {
      "columnType": {
        "type": "specificType",
        "args": [
          "geometry(POINT,4326)"
        ]
      },
      "type": "json",
      "fieldRenderer": "postgis"
    }

In the admin UI it was showing error in place of this field "no permission to see this field"

Then, just out of curiosity I added normal JSON location2 field using the Admin UI. When saved it changed schema.json record to this:

"location": {
      "columnType": {
        "type": "specificType",
        "args": [
          "geometry(POINT,4326)"
        ]
      },
      "type": "json",
      "fieldRenderer": "postgis",
      "isSpatial": true,
      "srid": 4326,
      "coord_dimension": 2,
      "f_table_schema": "public",
      "geoType": "POINT"
    }

The Admin UI now just shows textarea with null.

Questions:

  1. How do I specify location? Shouldn't there be a UI map to choose a location?
  2. How do I query by location using REST or better GraphQL?
@am2222
Copy link
Owner

am2222 commented May 5, 2023

@mruknowme
So we have a lot of limitations with core of strapi related to custome fields.
1- I should check that error and see if that is a bug with newer versions of strapi

2- querying using rest api on the geometry object is not possible! Since strapi does not allow us to modify their query builder object. I need to come up with set of predefined rest apis to allow to perform spatial queries. Maybe I should add OGC's feature api specs to the plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants