Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

MySQL and Geo data + search??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    MySQL and Geo data + search??

    Working with the Geographic Search. Using MySQL, the search always returns nothing. Is this a known issue with MySQL right now? I tried with my own table, then even used the ones exactly as described in the MySQL Specific tasks section... Like the DDL below.
    CREATE TABLE geogtest (
    KeyValue VarChar(25) NOT NULL,
    Location geometry NOT NULL,
    PRIMARY KEY (
    KeyValue
    )
    ) ENGINE=InnoDB ;

    Using lon and lat fields I can get things to come up in an Alternate View - just not in the Geographic Search.

    Am I missing something? Or is there a known issue with MySQL ?

    Thanks!

    #2
    Re: MySQL and Geo data + search??

    From the v11 notes:

    Unfortunately, the internal support for geospatial data storage and comparison operations varies greatly from database to database. Alpha Five Version 11 introduces a portable syntax for working with geographic data that is supported for those databases that have sufficient internal support for the core data types and operations. At release time, Alpha Five Version 11 supports geographic data in Microsoft SQL Server, Oracle, DB2, PostgreSQL and (to some extent) MySQL.

    I think this will answer your question.
    Frank

    Tell me and I'll forget; show me and I may remember; involve me and I'll understand

    Comment


      #3
      Re: MySQL and Geo data + search??

      Thank you sir. That's the answer that I feared. That said, it makes sense... It might be worthwhile for the docs to note what parts are supported in Portable SQL and what are not. In MySQL's case, this currently appears to be the Select by radius or Select by polygon type of functions. Which in turn, make the Geographic Search a "no-workie". If anyone has any workaround ideas, I'm open to them. Failing that, it looks like if I want that functionality I get to write it in native SQL and work around it that way. Or do without. In at least one case, switching DB's is not a palatable option.
      Thanks again!

      Comment


        #4
        Re: MySQL and Geo data + search??

        I built a system using MySQL geospatial fields in A5 version 10, which does not support those geospatial fields. It was difficult but I used various custom stored functions to arrive at proper polygon and radius searches. In V11 those field types are recognized and my task would be easier but I would still have to use the custom functions because MySQL does not fully comply with the geo-spatial specification like SQL Server does.
        Steve Wood
        See my profile on IADN

        Comment


          #5
          Re: MySQL and Geo data + search??

          Jeff,

          I think you are missing something. mainly a location field. A location field which contains the geography info that is required (not long and lat) for the polygon and radius searches. You do need the longitude and latitude to update the location field though. It absolutely works fine in MySQL. There is some stuff in the wiki about bulk geocoding a DB. My guess is that if you did not update the location field for each record, so you have no location data. Use geometry as the data type for the location field in MySQL. The long and latitude are not geometry types, but (decimal, 18,5) Look at the sample airport db (although this is for sql server).

          Bill
          Last edited by Bill Griffin; 10-05-2011, 02:57 PM.
          Bill Griffin
          Parkell, Inc

          Comment


            #6
            Re: MySQL and Geo data + search??

            Bill -

            I obviously AM missing something... (grin). I did put in a location field (see the DDL in the OP above) and I followed the exact script given just below that in the MySQL specific tasks page to load a point. Then no workie when I tried a Geographical Search on a nearby center. Long and Lat were just fields that I added later to try to work AROUND the lack of the location working in the search. I've tried all sorts of permutations of the Geometry data type, search set up etc.

            That said, by your comment, am I to understand that you have it WORKING with MySQL?? As in doing a Geographical Search? If so could you please post me the DDL that you are using that you _know_ to be working? I swear I tried the example EXACTLY as written in the docs with no joy. If you've got it working, you've got my undivided attention! (grin)

            Comment


              #7
              Re: MySQL and Geo data + search??

              Jeff,

              I am on my way out the door and won't be back till tomorrow afternoon. I used the sample airport db (less the geography field, imported it into MySQL and updated the location field with the script for bulk geocoding. I am certainly no sql (or xbasic) wiz and I was able to get this done. I will get to this as soon as I get in tomorrow.

              Bill
              Last edited by Bill Griffin; 10-05-2011, 03:29 PM.
              Bill Griffin
              Parkell, Inc

              Comment


                #8
                Re: MySQL and Geo data + search??

                Bill -

                Any help is VERY much appreciated. I'll go down that road and see if I can get there as well.

                THANKS!

                Comment


                  #9
                  Re: MySQL and Geo data + search??

                  UPDATE - (especially to Bill)
                  I got the data loaded and SOME of the searches work now. The reason that I didn't think that they were working before was that I was doing Radius searches. Those still are No Workie... I tried a Polygon search and voila - we have success! Still playing with it to determine what works and what doesn't. Big thanks to Mr. Griffin for keeping me at it. If anyone else has MySQL working - can you please verify whether radius searches are working for you or not? Who knows, there may be yet another piece to the puzzle.

                  Comment


                    #10
                    Re: MySQL and Geo data + search??

                    Update - Big thanks to Bill - I think that I have things working. I am still working on what exactly the root causes were. I have 3 "suspects" right now. I will run some tests today and confirm things. Suffice it to say that it CAN be done. I will edit this post with some final recommendations as soon as I can.

                    BOTTOM LINE - You CAN do this with MySQL!! I would certainly advise getting on the latest version of MySQL. I am running 5.5 successfully. For me 5.0.26 looked like it supported stuff but did not work properly. It sounds like there is more work going on in this area - but don't give up if you're working on a MySQL project. If anyone else is having trouble, upgrade to the latest and give it a go. And yell if it still has issues!
                    Last edited by Jeff Blackwell; 10-06-2011, 11:22 AM.

                    Comment


                      #11
                      Re: MySQL and Geo data + search??

                      Working my way through this part of v11 and found this reference for MySQl geo data searching that is quite informative.

                      http://www.scribd.com/doc/2569355/Ge...rch-with-MySQL

                      Michael

                      Comment


                        #12
                        Re: MySQL and Geo data + search??

                        That does look interesting. My problem was chiefly just getting MySQL to the proper version. Life got a LOT easier after that! The Alpha stuff pretty much handles things from there. Thanks for that info Michael. That does look helpful in some of the stuff I'm playing with.

                        Comment

                        Working...
                        X