Turfjs / turf

A modular geospatial engine written in JavaScript and TypeScript
https://turfjs.org/
MIT License
9.27k stars 938 forks source link

_turf_turf__WEBPACK_IMPORTED_MODULE_6__.gridSectionGeoJson is not a function #2348

Closed tejaslende closed 1 year ago

tejaslende commented 2 years ago

@turf/turf 6.5.0 webpack 5

I'm using turf in a react js project, the sample code could be very simple:

const grid = turf.gridSectionGeoJson( [SW.lng, SW.lat, NE.lng, NE.lat], cellSide, {units: 'kilometers'} ); gridSectionGeoJson not found on webpack module 6 Thanks for the help!

tmcw commented 1 year ago

What function are you trying to use? This code sample includes the function gridSectionGeoJson. As far as I can tell, that isn't a Turf function, isn't in any documentation or examples. So the fact that it doesn't exist is expected. Maybe you're looking for the squareGrid function?

tejaslende commented 1 year ago

Thank you for your email.

On Tue, Nov 8, 2022 at 2:54 AM Tom MacWright @.***> wrote:

What function are you trying to use? This code sample includes the function gridSectionGeoJson. As far as I can tell, that isn't a Turf function, isn't in any documentation or examples. So the fact that it doesn't exist is expected. Maybe you're looking for the squareGrid http://turfjs.org/docs/#squareGrid function?

— Reply to this email directly, view it on GitHub https://github.com/Turfjs/turf/issues/2348#issuecomment-1306213044, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZUSWPD5WYBRARFK7FHAFADWHFXQDANCNFSM6AAAAAARDEMCUM . You are receiving this because you authored the thread.Message ID: @.***>

-- Best Regards, Tejas Lende

Blockchain Developer

+91 7387295900 @. @.>* https://www.sweply.com/

[image: facebook] https://www.facebook.com/sweplyhq [image: twitter] https://twitter.com/SweplyP [image: linkedin] https://www.linkedin.com/company/sweply [image: instagram] https://www.instagram.com/sweplyhq/

The content of this email is confidential and intended for the recipient specified in the message only. It is strictly forbidden to share any part of this message with any third party, without the written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.

tejaslende commented 1 year ago

Hi Tom, Hope you are well.

Yes, I am looking for a square grid with a custome size of the grid. I checked with current the shared square gird https://turfjs.org/docs/#squareGrid but while applying Geojason it's moving while selecting of gird and did not provide the actual lat, long.

Thank you. Tejas

On Tue, Nov 8, 2022 at 11:38 AM Tejas Lende @.***> wrote:

Thank you for your email.

On Tue, Nov 8, 2022 at 2:54 AM Tom MacWright @.***> wrote:

What function are you trying to use? This code sample includes the function gridSectionGeoJson. As far as I can tell, that isn't a Turf function, isn't in any documentation or examples. So the fact that it doesn't exist is expected. Maybe you're looking for the squareGrid http://turfjs.org/docs/#squareGrid function?

— Reply to this email directly, view it on GitHub https://github.com/Turfjs/turf/issues/2348#issuecomment-1306213044, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZUSWPD5WYBRARFK7FHAFADWHFXQDANCNFSM6AAAAAARDEMCUM . You are receiving this because you authored the thread.Message ID: @.***>

-- Best Regards, Tejas Lende

Blockchain Developer

+91 7387295900 @. @.>* https://www.sweply.com/

[image: facebook] https://www.facebook.com/sweplyhq [image: twitter] https://twitter.com/SweplyP [image: linkedin] https://www.linkedin.com/company/sweply [image: instagram] https://www.instagram.com/sweplyhq/

The content of this email is confidential and intended for the recipient specified in the message only. It is strictly forbidden to share any part of this message with any third party, without the written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.

-- Best Regards, Tejas Lende

Blockchain Developer

+91 7387295900 @. @.>* https://www.sweply.com/

[image: facebook] https://www.facebook.com/sweplyhq [image: twitter] https://twitter.com/SweplyP [image: linkedin] https://www.linkedin.com/company/sweply [image: instagram] https://www.instagram.com/sweplyhq/

The content of this email is confidential and intended for the recipient specified in the message only. It is strictly forbidden to share any part of this message with any third party, without the written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.

tejaslende commented 1 year ago

Hi Tom, I Hope you are well.

We are waiting for your response. Any update for us? Thank you.

Best Regards, Sameer Choudhari

Project Manager

+91 9021855330 @. @.>* https://www.sweply.com/

[image: facebook] https://www.facebook.com/sweplyhq [image: twitter] https://twitter.com/SweplyP [image: linkedin] https://www.linkedin.com/company/sweply [image: instagram] https://www.instagram.com/sweplyhq/

The content of this email is confidential and intended for the recipient specified in the message only. It is strictly forbidden to share any part of this message with any third party, without the written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.

On Tue, Nov 8, 2022 at 11:47 AM Tejas Lende @.***> wrote:

Hi Tom, Hope you are well.

Yes, I am looking for a square grid with a custome size of the grid. I checked with current the shared square gird https://turfjs.org/docs/#squareGrid but while applying Geojason it's moving while selecting of gird and did not provide the actual lat, long.

Thank you. Tejas

On Tue, Nov 8, 2022 at 11:38 AM Tejas Lende @.***> wrote:

Thank you for your email.

On Tue, Nov 8, 2022 at 2:54 AM Tom MacWright @.***> wrote:

What function are you trying to use? This code sample includes the function gridSectionGeoJson. As far as I can tell, that isn't a Turf function, isn't in any documentation or examples. So the fact that it doesn't exist is expected. Maybe you're looking for the squareGrid http://turfjs.org/docs/#squareGrid function?

— Reply to this email directly, view it on GitHub https://github.com/Turfjs/turf/issues/2348#issuecomment-1306213044, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZUSWPD5WYBRARFK7FHAFADWHFXQDANCNFSM6AAAAAARDEMCUM . You are receiving this because you authored the thread.Message ID: @.***>

-- Best Regards, Tejas Lende

Blockchain Developer

+91 7387295900 @. @.>* https://www.sweply.com/

[image: facebook] https://www.facebook.com/sweplyhq [image: twitter] https://twitter.com/SweplyP [image: linkedin] https://www.linkedin.com/company/sweply [image: instagram] https://www.instagram.com/sweplyhq/

The content of this email is confidential and intended for the recipient specified in the message only. It is strictly forbidden to share any part of this message with any third party, without the written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.

-- Best Regards, Tejas Lende

Blockchain Developer

+91 7387295900 @. @.>* https://www.sweply.com/

[image: facebook] https://www.facebook.com/sweplyhq [image: twitter] https://twitter.com/SweplyP [image: linkedin] https://www.linkedin.com/company/sweply [image: instagram] https://www.instagram.com/sweplyhq/

The content of this email is confidential and intended for the recipient specified in the message only. It is strictly forbidden to share any part of this message with any third party, without the written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.

tmcw commented 1 year ago

I can't understand your previous message. Can you try to be more clear, explain in more detail, or use a different translation service?

tejaslende commented 1 year ago

Hi Tom,

We are building a prototype like nextearth.io, please check the reference link below - Ref link - https://app.nextearth.io/buy-land?_gl=1%2a1ye1xro%2a_ga%2aMTc2NjI5NzAyMi4xNjY0NjE5ODI0%2a_ga_RQLMVQQQ70%2aMTY2OTAxMjk1OS4zMi4wLjE2NjkwMTI5NTkuMC4wLjA. https://app.nextearth.io/buy-land?_gl=1%2a1ye1xro%2a_ga%2aMTc2NjI5NzAyMi4xNjY0NjE5ODI0%2a_ga_RQLMVQQQ70%2aMTY2OTAxMjk1OS4zMi4wLjE2NjkwMTI5NTkuMC4wLjA.

We want to create a square tile and what we wanted to place on Mapbox. So that users can come and select tiles and buy them from our platform, the same as next earth.

Please let me know if you have any solution to it. As we tried square gird https://turfjs.org/docs/#squareGrid, but er are not able to expand to the whole map.

On Tue, Nov 15, 2022 at 7:05 PM Tom MacWright @.***> wrote:

I can't understand your previous message. Can you try to be more clear, explain in more detail, or use a different translation service?

— Reply to this email directly, view it on GitHub https://github.com/Turfjs/turf/issues/2348#issuecomment-1315319675, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZUSWPFS5RRH6RSWKKY6AKTWIOGRNANCNFSM6AAAAAARDEMCUM . You are receiving this because you authored the thread.Message ID: @.***>

-- Best Regards, Tejas Lende

Blockchain Developer

+91 7387295900 @. @.>* https://www.sweply.com/

[image: facebook] https://www.facebook.com/sweplyhq [image: twitter] https://twitter.com/SweplyP [image: linkedin] https://www.linkedin.com/company/sweply [image: instagram] https://www.instagram.com/sweplyhq/

The content of this email is confidential and intended for the recipient specified in the message only. It is strictly forbidden to share any part of this message with any third party, without the written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.

tmcw commented 1 year ago

Ah, okay - for creating a grid of the whole world for a crypto scam, your best options would be: