Is it possible to store a geometry datatype in mysql 5.6 by using Hibernate-Spatial API? - hibernate-spatial

I would like to persist co-ordinates of polygon shape in Mysql5.6. I have seen tutorial for Postgresql. http://www.hibernatespatial.org/documentation/02-Tutorial/01-tutorial4/
But They haven't specified any sample code for mysql. So I feel fear to start with. Please suggest me, Is it possible to persist a single polygon shape in mysql database ?
Regards,
ArunRaj.

Yes, We can store and retrieve the spatial datatype by hibernate spatial API. The tutorial Which i was mentioned is enough to store and retrieve the spatial data.

Related

Data redaction by oracle

In my current project i have a challenge regarding data redaction. we do not get data from Client because they have sensitive information in some of the columns. So to get the data from them we decided to encrypt the data and then it will come to us.
I am struggling to find an inbuilt algorithm in oracle which encrypt the data. One of the main objective of mine is:
1.) Length of my original input should remain the same after data redaction.
2.) Data type of my original input should remain after data redaction.
Can you please give me your input to achieve this.
Thanks and Regards
Ankit.
There are various options to encrypt your data, you can build your own PLSQL procedures using the DBMS_CRYPTO builtin package.
https://docs.oracle.com/cd/E11882_01/appdev.112/e40758/d_crypto.htm#ARPLS65670
Or if you use Enterprise Edition of oracle:
transparent data encryption:
https://docs.oracle.com/cd/E11882_01/network.112/e40393/asotrans.htm#ASOAG600
and if you have 12c, you can use Oracle Data Redaction:
http://www.oracle.com/technetwork/articles/database/data-redaction-odb12c-2331480.html
The advantage of the last one is that the data is not touched inside the database, Oracle Data Redaction acts as an upper layer masking data on the fly before it is returned to the application.

Using FME to convert oracle sdo.geometry to SQL geometry datatype

Hi I have to take the sdo_geometry field from an Oracle database and transfer the data to a SQL database (probably a geometry spatial data type). Could you help me on how to use FME for that purpose? Do I need FME to do this?
FME will certainly help make things easier, but it's possible to do your data ETL without it. You'll need to handle each of the different OGS types yourself, if you want to get around having to use a tool that is aware of the geometric datatypes like FME.

Oracle to Apache Cassandra data migration

I am working on an Apache Cassandra data migration. I have couple of tables which I need to move to the Cassandra column family with data - what is the best way to do this?
I have seen Apache Sqoop, will it help me? If yes, then what are the steps?
There is no silver bullet to migrate data from Oracle (or any RDBMS) to Cassandra. The way your data is modeled in Cassandra is fundamentally different from a relation database schema. Tools might help you to some degree, but you'll first have to create a new data model that will match the way you're going to read and write data into Cassandra. This article gives you a good start with Cassandra data modeling: http://www.datastax.com/dev/blog/basic-rules-of-cassandra-data-modeling

Suggestion technology/design on this BIGDATA usecase

I am new to big data technologies and design so looking for help from java world.
I have concept of tags and tagcombinations.
For example U.S.A and Pen are two tags AND if they come together in some definition then register a tagcombination(U.S.A-Pen) for that..
tags (U.S.A, Pen, Pencil, India, Shampoo)
tagcombinations(U.S.A-Pen, India-pencil, U.S.A-Pencil, India-Pen, India-Pen-Shampoo)
millions of tags
billions of tagcombinations
one tagcombination generally have 2-8 tags....
Every day we get lakhs of new tagcombinations to write
daily crores of queries to find matching combination by set of tags
Query need to support :
one tag or set of tags appears in how many tagcombinationids ????
If i query for Pen,India then it should return two tagcombinaions (India-Pen, India-Pen-Shampoo))..Query will be fired by application in realtime.
Please suggest a solution which is distributed with java client and can
handle scale of data i am looking for..
Already tried on cassandra but not able toconclude that as right match for my problem..
Thanks
Naresh
I suggest you look into Apache Lucene project:
http://lucene.apache.org/
You won't be able to use Cassandra directly for this but if you store your data inside Cassandra, you can use Solr to add extra indexes on top of your data. DataStax has a bundle solution called DataStax Enterprise that has Cassandra/Solr together:
http://www.datastax.com/what-we-offer/products-services/datastax-enterprise

Coordinates conversion

I am working over a small component for a web portal that show polygons over a map, using OpenLayers, Google Maps, and another proprietary source .
The user has the points in PSAD56 (UTM) datum and I need to change it to WGS84 in order to use with Google Maps. I have at hand both Oracle 9i without spatial extensions and postgis.
Can Oracle locator or Postgis make this transformation? Or is there an open source that can do that?
You could load the user data into Postgis. How you do that depends on which data format they use. shp2pgsql script if the points are available as shapefile.
To transform your geometries into WGS84, you then run
ST_Transform(the_geom,4326)
Bolivia could be either in
PSAD56 / UTM zone 19S ... EPSG:24879 or
PSAD56 / UTM zone 20S ... EPSG:24880
You'll have to ask your user.
OpenLayers can also transform between coordinate systems and projections using the Proj4JS library. Note this is probably only viable if you have relatively small amounts of data to transform.

Resources