I have a shapefile to be used as training data for the L4A Crop mask product. I already did the fixing process using the python /var/www/html/scripts/check_shp.py -f PH_BUK_LC_PI_201803.shp, and it said the overlapping areas were fixed.
Is there a way to check if there is something wrong with my system if not with my shapefile?
PS: Actually I’m using a remote desktop server and accessing it through remmina desktop.
I’m wondering because I used the same shp file in another local desktop, and it uploaded
successfully.
I’m not sure I understand. After fixing the shapefile, do you still get an error saying that it’s invalid? And it’s working on another installation (or on the same installation, but uploaded from a different computer)?
Yes I still get an error saying that the shape files are invalid after running the check_shp.py to fix it.
On the other hand, the shape files used are working on another installation (local desktop computer).
I also had an access to the Universite Catholique de Louvain Sen2Agri web interface, and the said shape files successfully uploaded.
That’s strange, and it shouldn’t happen. Do other shapefiles work on that system?
I made a couple of fixes to that script a while ago. Just to check, can you either send me the version you have, or compare it to the one on the computer where it’s working?
Yes, it sounds like something specific to your system.
I had an issue like this once, and restarting the httpd service fixed it. The operating system provides it with a private temporary directory, and for some reason the process was no longer able to access it.
Please try something like sudo yum install strace, then sudo strace -fp "$(pidof httpd)" 2>&1 | tee log.txt while you upload the file. The log will be large, but it should contain information about any OS-level system calls that fail.