-
Notifications
You must be signed in to change notification settings - Fork 15
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
pgInsert hang with SPDF #12
Comments
This works: |
Hi Malcolm, I'm not able to replicate the issue. Do you see any messages printed in the R console prior to the hang/crash? |
Running using Rscript in a terminal gives the following:
|
Same crash when writing spatial polygons when running:
|
For points I can use the pgMakePts workaround, but for polygons I can't see a way to add a polygons column after writing a non-geometric data frame. |
Could it be an issue with your
If so you may need to check/re-install your system GEOS package. |
Thanks. It looks like regos is the problem, but reinstalling did not fix it. |
If you install the package |
Working after building the latest system geos from source. Thanks for the package. |
Good to see that the problem is solved! @imprompt, for the record, could your give your previous and current versions of |
yum install geos: installed v3.4.1, which caused problem |
Thanks! |
I have RStudio running R v3.5.0 with rpostgis 1.4.1 running under CentOS 7.5 connecting to a postgres DB:
Problem: pgInsert() hangs with no feedback when using spatial data.
What works:
test <- data.frame(x=0, y=0, a=1)
pgInsert(conn, name=c("public", "test_table1"), data.obj=test)
What doesn't work (hangs or crashes R):
coordinates(test) <- ~x + y
pgInsert(conn, name=c("public", "test_table2"), data.obj=test)
The database has the postgis extension
What would be the best way to diagnose the problem?
The text was updated successfully, but these errors were encountered: