i'm trying to convert coordinates from Monte Mario italy 1 (EPSG 3003) to WGS84 (EPSG 4326). These coordinates are contained in a csv file. To do that i'm using QGIS (2.0.1 dufour). So i open the file opening "layer" menu and i select "Add delimited text layer". Then i open the file specifying the source and QGIS autodetects the columns which contain the coordinates. After this i specify the coordinatea format as EPSG 3003. QGIS open the layer perfectly. Then i try to save the file as "delimited text" specifying that i want it in EPSD 4326 format. The output file is just the same as the input one. What's wrong ?
Did you try to repoject your data via GDAL_transform in the console:
Create a shape file within qGIS and then reproject from -s_srs "EPSG:3003" -t_srs "EPSG:4326".
Actually i solved this. I start creating a SHP file from the file in format CSV. This can be done by the ogr2ogr. Still using ogr2ogr by the shell i used the command ogr2ogr -s_srs EPSG:3003 -t_srs EPSG:4326 -f CSV [Dest file].csv [Source file].shp -lco GEOMETRY=AS_YX.
I had the same problem and I don't Why QGIS works like that.
The QGIS does convert from one coordinate to the other. Instead of reading the CSV file, try reading the shape files. Generally, the shape files contain more information than any other files..It is easy to read a shape file using java or python.
Follow the below steps,
Read the shape file
Save it as a text file
Convert it to the required format you want
Related
I have a lammps_file.data and I need to convert it to Gromacs files (gro and top) to run my simulations.
Does anyone know how to do this?
Another choice is to convert from lammps to charmm files (psf and pdb). Once I get the charmm files I can just use Topotools to get the gromacs files I need.
Thanks
Indeed, NOW I am trying to do the same myself.
So far, you can use intermol , this should work fine to convert LAMMPS data files to Gromacs files. Once you install intermol, and you ceate a path to the intermol converter, you can use a command like:
python2.7 $conv/convert.py --lmp_in topology.data --gromacs -v
CHECK the format of your data file, I still having problemst to convert it.
If you wish to create the psf file,
you would need VMD (google it), then open the tcl terminal and write :
topo readlammpsdata topology.data full
animate write psf topology.psf
The 1st line is for loading yur LAMMPS data file, if you are in the folder where
that files is located
2nd convert the data to psf CHARMM
Also, you could try this. In this paper, they provide a tood to conver
CHARMM topologies to gromacs here. Thus, you convert to psf, then to gro top.
I want to open my 3D point cloud in MATLAB. But they are in .las files. How can I display them in MATLAB???
I heard about .ply file can open 3D point data on MATLAB. So I want to know how to convert las files to ply files.
There is a .las file reader for matlab here:
https://es.mathworks.com/matlabcentral/fileexchange/48073-lasdata
Once you have the data in matlab you can use these point cloud tools, which are part of the computer vision toolbox:
https://es.mathworks.com/help/vision/3-d-point-cloud-processing.html
If you want to embrace the open source force, I'm writing a Python (easy transition from matlab) library for point cloud processing:
https://github.com/daavoo/pyntcloud
You can use the free and open-source CloudCompare software.
On the command line:
CloudCompare -O file_to_convert.las -C_EXPORT_FMT PLY -SAVE_CLOUDS
Take care to the order of the options: it seems that -SAVE_CLOUDS must be at the end.
That will result in a binary-format PLY file in the same directory as the file to convert, named using the original filename and the date of export, like: file_to_convert_2019-07-18_13h32_06_751.ply
I found no way to specify the output file name (should you find one please comment below).
Should you want a more predictable name, add option -NO_TIMESTAMP before the option -SAVE_CLOUDS (but then you risk overwriting files so be careful).
More help (such as how to export in ASCII-format) in the documentation.
I timed this on powerful PC, it took 170s to convert a 2.7GB LAS file with 102M points (XYZ,intensity,time).
if you have LAStools installed, you can use las2txt to convert your *.las/*.laz files into *.xyz format which MeshLab can import natively as a point cloud, which may then be converted into a Mesh.
There are a multitude of caveats to that depending on the source of your data-set.
I am trying to open a CSV file in QGIS using the Delimited Text plugin. I’m working with Windows 8 and QGIS 2.18.1.
My CSV file has around 4.000 points to be plotted, but when I try to open it from QGIS it only shows the first 20 lines. Those 20 lines are perfect but I have no idea why the rest of my csv wont open.
Look at this picture of the Delimited Text window to check if im doing everything right.
Also, here is a part of my csv file, showing the last line read by the QGIS (I dont know how to upload the file, so I sent a prntScr)
Thanks in advance for any help!
I have converted the .tiff file into ascii format with the help of ArcGIS, now i want to open that same file in WEKA, and it is asking me to open file in .arff format which i am clueless on how to convert ascii file into that, as format for ascii file is .TXT.
It's difficult to see the issue without some sample data or error message, but it appears that the file can't be read into Weka in its current state.
You could try formatting the dataset to comply with the Attribute-Relation File Format.
Failing this, you could also format the dataset into a Comma-Delimited File Format with header information on the first row, and data underneath. CSV Files are accepted into Weka quite fine.
Hope this Helps!
Considering that you are working with satellite imagery and that you know R, you could try something like this:
library(raster)
library(foreign)
library(RWeka)
dir.satellite <- '../tiffs' # Folder with your satellite TIF files
# Read them from their full paths
bands <- list.files(file.path(dir.satellite), full.names = T,
pattern = '.TIF$')
stkTIF <- raster::stack(bands) # group them into a rasterStack object
# Write the WEKA arff file
write.arff(as.matrix(stkTIF),
file = file.path(dir.satellite, 'your_file_name.arff'))
i am trying to generate street map of a city from openstreetmap data. i have used osm2wkt tool but it converts it into wkt file. is there any way to convert in map rather than in wkt file.
A printed map? An online "slippy" map?
Obviously osm2wkt is not the tool you want if you don't want wkt.
To custom-design your own online slippy maps you can use TileMill.
If you just want to get a PNG or SVG or PDF of one place, you can just go to http://www.openstreetmap.org/ , browse to the place you want, and use the "Export" tab.
As stated on the osm2wkt site you can use OpenJump to visualise WKT data. You can find a tutorial (PDF) here.
First, go to http://www.openstreetmap.org/ and select the coordinates of the area you want. Then, choose export . It will give some file in .osm format like map.osm.
Now we have to convert the map.osm file to map.wkt file. Use osm2wkt jar for that purpose. Download that jar file from http://www.tm.kit.edu/~mayer/osm2wkt/.
Now, use the following command.
java -jar osm2wkt.jar map.osm
Now, open the file with OpenJump. And save it in .wkt format by selecting points in the map as you want.