GIS: need to add data to a shape file - gis

I tried posting this question earlier but was unsuccessful so I'm trying again
I imported a shape (set of points) file into postgres and have a table (hist_info) with additional data also in postgres. I tried creating a VIEW with data that I need from each files but for a reason I can't figure out as to why my GIS layer (created in geoserver) is blank. A SELECT * FROM new_view shows there is data in the table created by the VIEW....
So my questions are
1. What data must I include in the VIEW in order for the newly created VIEW will display as points and show the added data when a point is clicked on?
What is the best way to combine the two files so that I can display the data from the hist_info table when someone click on one of the points on the map displayed in their browse?
Thanks for the help!!
Regards
Chris

You need to insert a record in the geometry_columns table or GeoServer won't read your view's geometry. Have a look at this:
http://docs.geoserver.org/stable/en/user/data/postgis.html#publishing-a-postgis-view

Related

How can I regroup multiple tlogRow in talend to one file where I can see all my rows?

I am working on a MongoDB database ETL, I need to prosses the data and move it to the PostgreSQL database, I used the tExtractJson in talent to extract all the documents and subdocuments but I am having a problem in regrouping all the rows into one output so that I can load my tables in Postgres DB.
to load only one table I need information from multiple tlogRows
I tried a tmap but it requires a main component and other are lookup one
I solved this using a tBufferOutput in the first job, and did the same thing once again on a second job and used a tInputBuffer to recover the result of the first job.
enter image description here
enter image description here

How do i refresh csv data set in quicksight and not replace the data set as this loses my calcs

I am looking to refresh a data set in quicksight, this is in Spice. The data set comes from a csv file that has been updated and now has more data than the original file I uploaded.
I can't seem to find a way to simply repoint to the same file with same format. I know how to replace the file but whenever i do this it states that it can't create some of my calculated fields and so drops multiple rows of data!
I assume I'm missing something obvious but I can't seem to find the right method or any help on the issue.
Thanks
Unfortunately, QuickSight doesn't support refreshing file data-sets to my knowledge. One solution, however, is to put your CSV in S3 and refresh from there.
The one gotcha with this approach is that you'll need to create a manifest file pointing to your CSV. This isn't too difficult and the QuickSight documentation is pretty helpful.
You can replace the datasource by going into the Analysis and clicking on the pencil icon as highlighted in Step 1. By replacing dataset, you will not lose any new calculated fields that might have been calculated already on the old dataset.
If you try to replace the data source by going into the Datasets as highlighted below, you'll lose all calculated fields and modifications etc
I don't know when this was introduced but you can now do this exact thing through the "Edit Dataset", starting either from the Dataset page or from the 'pencil' -> Edit dataset inside an Analysis. It is called "update file" and will result in an updated dataset (additional or different data) without losing anything from your analysis including calculated fields, filters etc.
The normal caveat applies in that the newer uploaded file MUST contain the same column names and datatypes as the original - although it can also contain additional columns if needed.
Screenshots:

Spotfire help! Trying to manually plot "regression" line on top of bar chart. Is there a way to manually input data points?

Am creating a bar chart in spotfire and would like to plot a line on top of the chart that acts as a trend line but need to manually enter the data points. Is there a way to do so? Have not found any documentation on such thing. Would really appreciate some help with this!! Thanks!
Since the points will be static, I would put the points in a column in excel and embed the data into your analysis. Then you can change your chart type to combination (line and bar) and plot your newly added data as a line.
You will need a column in both tables which will be used as the relation and set up the relation via Edit > Data Table Properties > Relations.
Relations are like keys to link two separate data sources. In database terms, it's a KEY. For example, take a look at THIS MODEL. These tables are related based off the Activity Code.
Here are some other helpful references.
https://docs.tibco.com/pub/spotfire/7.0.1/doc/html/md/md_working_with_data_tables.htm
https://en.wikipedia.org/wiki/Relational_model

Access VBA to find & move recurring value

Good Morning,
I'm fairly new to Access VBA and I've been trying to find a solution to a problem:
I've created a form from which users upload an excel file to a database. File open prompt appears, user selects the file, temp table gets created and data gets pulled to this table. From there a set of macros populate the required fields and push the complete set to a perm table and then temp table gets deleted. Now I would like to take it a step further and try and count how many times a value has been uploaded to the table...
Lets say that the value appears in the table twice already, then if user tries to upload the same value for the third time it will be uploaded to a different table. Bear in mind that the file which users will upload may contain values that will be uploaded for the first, second, third, etc. time.
Do you have any suggestions or solutions to my problem? Is it even possible? If yes then how can I make Access to distinguish which records are being uploaded for the first, second, third, etc. time and follow appropriate paths?
I've been scouting the internet for several days now, but no one seems to have such issue.
Thank you in advance for replies.
I'm not sure I follow. You are essentially trying to prevent inserting duplicate data to a production table and if a duplicate is encountered at the record to a different table?

Talend Multiple Lookups

I'm starting to learn Talend and I'm facing this problem: I have several ID's as an input and I want to make a lookup for each of these ID's to output the obtain data in a Json output.
Here's an image showing what I want to achieve:
http://i.stack.imgur.com/GLVLf.png
I have a tXMLMap with a lookup to the table where I want to find the villains from the villainID's list. The image shows how I can get the ID and Name for one of the villainID's and output it in it's respective json field but this method only works for one ID lookup at a time.
What's the best way to achieve this?
Thanks!
You should be able to copy your second input table 8 times and link all of those back into the tXMLMap component and link those by key as you already have done and join those up to where it needs to go in the XML mapping.
Alternatively you could use a tMap component in a previous step and use that to generate waveNvillainN's dispName by joining the id of your lookup table to all of the waveNvillainN's ids. This should then leave you with all of the necessary fields to populate the XML mapping.
This is the way I could find out to solve this issue, I think it's the same that #garpitmzn and #ydaetskcoR meant but I'm not sure. This works perfectly and was easy to implement but I'd just hope there was a way to have less clutter of components.
http://i.stack.imgur.com/x3AHM.png
http://i.stack.imgur.com/PBeZn.png