We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
then use st_centroid to calculate centre after
The text was updated successfully, but these errors were encountered:
convert geojson to mysql_shape column type #28
b51db26
Working on this. Here's my SQL:
UPDATE parcels_geojson SET temp1 = coordinates;
UPDATE parcels_geojson SET temp1 = REPLACE(temp1, '], [', '||');
UPDATE parcels_geojson SET temp1 = REPLACE(temp1, '[[[[', 'MULTIPOLYGON(((');
UPDATE parcels_geojson SET temp1 = REPLACE(temp1, ']]]]', ')))');
UPDATE parcels_geojson SET temp1 = REPLACE(temp1, ', ', ' ');
UPDATE parcels_geojson SET temp1 = REPLACE(temp1, '||', ',');
UPDATE parcels_geojson SET temp1 = REPLACE(temp1, '[[', '((');
UPDATE parcels_geojson SET temp1 = REPLACE(temp1, ']]', '))');
UPDATE parcels_geojson SET temp1 = REPLACE(temp1, '],[', '),(');
UPDATE parcels_geojson SET temp1 = REPLACE(temp1, '[]', NULL) WHERE temp1 = '[]';
// needed to add first point again at the end UPDATE parcels_geojson SET temp2 = CONCAT(SUBSTRING(temp1, 16, 36),')))');
UPDATE parcels_geojson SET temp1 = REPLACE(')))', temp2);
UPDATE parcels_geojson SET multi_poly = ST_GeomFromText(temp1);
Sorry, something went wrong.
No branches or pull requests
then use st_centroid to calculate centre after
The text was updated successfully, but these errors were encountered: