Comments (4)
Hi @ignasva ,
You understand the code correctly. I hardcoded it because spilling onto disk actually is not very time efficient.
To solve this, you don't have to make your own GeoSpark build. Here is an easy workaround (but not perfect):
You can directly use GeoSpark Maven Coordinate. Since you checked the code, you may notice that all SpatialRDD attributes are "public". You can directly call the attribute in your code and set to the persist level you want. For example,
myPointRDD.rawPointRDD.persist(MEMORY_AND_DISK_SER);
myPointRDD.indexedRDD.persist(MEMORY_AND_DISK_SER);
Of course, making your own build may give you the perfect control.
Thanks,
Jia
from sedona.
Hi @jiayuasu,
At first this sounded like a good idea, however, apparently you cannot change the storage level after a Spark RDD is cached. This is the resulting exception:
java.lang.UnsupportedOperationException: Cannot change storage level of an RDD after it was already assigned a level
Anyway, it would be awesome to be able to control the storage level in future releases. Keep up the good work!
from sedona.
Hi @ignasva ,
Thanks for pointing this out. I should give the granular control back to the user. I will change the cache strategy in GeoSpark.
Thanks,
Jia
from sedona.
Solved in GeoSpark 0.4.0
from sedona.
Related Issues (20)
- No geo metadata found with geoparquet HOT 2
- Issue using RS_FromGeoTiff (1.5.0) HOT 2
- Can't make `st_MakeLine` work in Spark SQL HOT 2
- Zeppelin + Sql + Geometry viewer HOT 2
- Read Geometry Type from Jdbc/beeline
- Sedona website `latest-snapshot` page has a warning message saying it's not the latest snapshot
- Sedona website right sidebar menu is missing the title
- Unable to read GeoJson with Polygons and Multipolygons HOT 2
- H3 functions missing methods on Databricks: `java.lang.NoSuchMethodError: com.uber.h3core.H3Core...` HOT 5
- RS_AsBase64 returns empty string HOT 3
- Request for addition of function: `ST_LineLocatePoint` HOT 6
- rs_setbandnodatavalue not working as expected HOT 2
- Error reading file greater than 2GB HOT 1
- Installing apache-sedona Python package does not install all dependencies (Sedona 1.5.0) HOT 2
- [Feature] Add ST_IsValidDetail as built-in function.
- 1.5.0 spark shaded protobuf version conflict with application HOT 2
- Support of 3D?
- Feature request: ST_Snap HOT 1
- Microsoft Fabric HOT 26
- Apache Sedona backend for Ibis project?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sedona.