Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'd like to use shapefile (.shp) data in Java.
A sample file I have looks like this:
0105000000010000000102000000070000003085EF7995215FC0E0A2FEADF6E648400439100E8D215FC0B04AF9E80BE7484048CC79E78C215FC0F885E4F20CE74840B86EEC078C215FC0E80213FC12E74840A4B69A9694215FC07011B67744E7484008E900F396215FC04867DE1949E7484004D90A7EA1215FC0A8F7E1AE4BE74840
How can I can extract/decode all points (lat/lon) in this shapefile in java?
Pretty bad question my friend. Try to provide SSCCE.
If that binary you posted is really an .shp (file with the associated "helper" files such as .shx, .prj, etc), you can use a library such as GeoTools to read the file.
Attempting to read the file "by hand" with RandomAccessFile is unnecessary unless you really want to reinvent the wheel.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
My question is simple:
Is it possible to use a program via Java? Meaning, can I for example code in java exactly what I want my Microsoft Word file do? Add paragraphs, lists,import a picture, etc?
Short answer: Yes. Some programs allow you to use scripts and such, that is the beauty of open source software.
To actually edit the document you can use Apache POI which is an API for Microsoft Documents. Granted it cannot handle .docx but simple text documents. You may also want to take a look at docx4java which supports .docx, .pptx and .xlsx files.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I want to create file String.xml. What is the best way to do this?
In my server I have some Strings that I want to set them from some file (like String.xml), because I need to support languages.
if you're writing a plain Java EE application, you can take a look at this tutorial.
If you are using a framework, nearly everyone of them include an internalization (i18n) plugin that allows you to define languages.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want my program to support all the formulas that one can use in Excel file into java code.
The requirement was that all the functions that are supported by excel both mathematical and logical like (add, multiply, substract or 'OR', 'IF') and others like Vlookup etc into java with the same format?
Is there any way to achieve that?
The Apache NPOI Project seems to support Excel formulas. Some examples are available here.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I 'm starting to learn Java I / O and i started with Random Access File,I cant find any good information about using Random Access File if some one cant give me some good references to how it works Does it read/write binary or text files? how can i do this? witch are the most correct ways to read/write in files,thanks to all :)
Maybe you are looking for a tutorial like this?
http://examples.javacodegeeks.com/core-java/io/randomaccessfile/java-randomaccessfile-example/
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I would like to know the steps in making a java speech recognizer/API WITHOUT using sphinx or anything else. I want to build from the ground up!!! Also a Text to speech from the ground up. 100% my own. I know it's going to be a lot of work. I just want to know.
First you want your sound-input as bytestream, how to do so is explained by oracle:
http://docs.oracle.com/javase/tutorial/sound/capturing.htmlNext, you write the logic and algorithms to analyze and process the byte stream.
http://en.wikipedia.org/wiki/Speech_recognition#Algorithms
Good luck.