A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/maps/documentation/javascript/dds-datasets/create-dataset below:

Create and manage a dataset | Maps JavaScript API

Skip to main content Create and manage a dataset

Stay organized with collections Save and categorize content based on your preferences.

Datasets let you upload geospatial data from a local file or from Google Cloud Storage to the Google Maps Platform. You can then associate a dataset with one or more map styles in the Cloud console. After associating the dataset with a maps style, use the data-driven styling API to dynamically style your maps application.

You can also use a REST API to upload your geospatial data to a dataset. For more information, see Maps Datasets API

Configure roles

To create and manage datasets in a Google Cloud project, you must hold either the Owner or Editor IAM role on the project.

Note: If you created the project, then you have the Owner role on the project. The IAM page of the Google Cloud console shows the project owners and editors.

Alternatively, you can assign the following IAM roles to a user account or service account that you use to manage datasets:

For more information, see Grant an IAM role by using the Google Cloud console.

Data source for a dataset

After you create a dataset, upload the data to the dataset from

Google Cloud Storage

or from a local file.

Prerequisites

When creating a dataset:

When uploading data:

Note: Depending on the size of the data file, the upload can take minutes or even hours to complete. If there is an error with the upload, you will get an error message. Don't attempt to delete the dataset until it has returned a response from the upload operation. Note: Map tiles created with data uploaded using the Maps Datasets API may drop or simplify dense or complex data at low zoom levels. For example, when a user zooms out to a state or country (for example, zoom level 5-12), the tiled data may look different than when zoomed into a city or neighborhood (for example, zoom level 13-18). This happens in order to keep tiles slim and performant using the tiles with a map renderer. Tip: If your data file is large and has many attributes in it that you don't need for styling, and you would like to optimize rendering performance, edit the file to remove the unneeded attributes. Reducing the number of attributes reduces the size of the map's tiles, thereby improving rendering performance. Data preparation best practices

If your source data is complex or large, such as dense points, long linestrings or polygons (often source file sizes larger than 50 MB fall into this category), consider simplifying your data before uploading to achieve the best performance in a visual map.

Here are some best practices for preparing your data:

  1. Minimize feature properties. Only keep feature properties needed to style your map, for example "id" and "category". You can join additional properties to a feature in a client application using data-driven styles on a unique identifier key. For example, see See your data in real time with Data-driven styling.
  2. Use simple data types for property objects where possible, such as integers, to minimize tile size and improve map performance.
  3. Simplify complex geometries prior to uploading a file. You can do this in a geospatial tool of your choice, such as the open source Mapshaper.org utility, or in BigQuery using ST_Simplify on complex polygon geometries.
  4. Cluster very dense points prior to uploading a file. You can do this in a geospatial tool of your choice, such as the open source turf.js cluster functions, or in BigQuery using ST_CLUSTERDBSCAN on dense point geometries.

See additional guidance about datasets best practices in Visualize your data with Datasets and BigQuery.

GeoJSON requirements

Maps JavaScript API supports the current GeoJSON specification. Maps JavaScript API also support GeoJSON files that contain any of the following object types:

Maps JavaScript API does not support GeoJSON files that have data in a coordinate reference system (CRS) other than WGS84.

For more information on GeoJSON, see RFC 7946 compliant.

KML requirements

Maps JavaScript API has the following requirements:

The following KML features are not supported:

CSV requirements

For CSV files, the supported column names are listed below in order of priority:

For example, your file contains columns named x, y, and wkt. Because x and y have a higher priority, as determined by the order of supported column names in the list above, the values in the x and y columns are used and the wkt column is ignored.

In addition:

Handle data upload errors

When uploading data to a dataset, you might experience one of the common errors described in this section.

GeoJSON errors

Common GeoJSON errors include:

KML errors

Common KML errors include:

CSV errors

Common CSV errors include:

Create a dataset

To create a dataset:

  1. In the Google Cloud console, go to the Datasets page.
  2. Click Create Dataset.
  3. Enter the dataset name. The name must be unique among all datasets.
  4. Optionally enter a dataset Description.
  5. Click Continue. The Import data page appears.
  6. Select the Upload source of the data used to populate the dataset as Desktop, meaning a local file on your system, or Google Cloud Storage bucket.
  7. Select the File format.
  8. Click Continue to review your settings.
  9. Click Create. The Datasets page appears showing your new dataset. The status should be Processing.

    If the data uploads successfully:

    If there is an error in the upload:

View or modify a dataset

After you create a dataset, you can view or modify the dataset:

  1. In the Google Cloud console, go to the Datasets page.
  2. Click the name of the dataset. The Dataset details page appears.
    1. Click the Details tab to see information about the dataset. On this tab you can also edit the dataset name and description.
    2. Click the Preview tab to see your dataset on a map (datasets with a state of COMPLETED or REVERTED only).
    3. Click the Table Data tab to see all attributes of the dataset (datasets with a state of COMPLETED or REVERTED only). These are the attributes that you can use to style the dataset on the map.
    4. Click the Download button to download the data to a local file.
    5. Click the Delete button to delete the dataset.
    6. Click the Import Data File button to upload new data to the dataset.

      Uploading new data to the dataset creates a new version of the dataset. If the new data uploads successfully:

      • The status of the new version of the dataset is set to COMPLETED.
      • The new version becomes the "active" version and is the version used by your app.

      If there is an error in the upload:

      • The status of the new dataset version is set to a status other than COMPLETED. For example, if there is a previous "active" version, the status of the dataset is set to REVERTED.
      • The previously "active" dataset version stays as the "active" version and is the version used by your app.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-09 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-09 UTC."],[[["Google Maps Platform Datasets enable dynamic map styling by uploading custom geospatial data from local files or Google Cloud Storage."],["Datasets require specific user roles for management and support various file formats like GeoJSON, KML, and CSV with defined prerequisites for data structure and size."],["Data preparation is crucial for optimal performance, involving simplifying geometries, minimizing feature properties, and using simple data types."],["CSV, GeoJSON, and KML files have specific requirements for data structure and supported features to ensure successful data uploads."],["Creating, viewing, and modifying datasets can be managed through the Google Cloud console, providing tools for data upload, preview, and attribute examination."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4